/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* ボタン */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ナビゲーションタブ */
.nav-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 40px;
}

.nav-tab {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

/* タブコンテンツ */
.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 統計カード */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 14px;
    color: #666;
}

/* ダッシュボード */
.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.task-list-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item-compact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-item-compact:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.task-item-compact h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.task-item-compact p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.task-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
}

/* テスター稼働状況 */
.tester-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tester-status-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.tester-status-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.tester-status-item .task-count {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.tester-status-item .completed {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

/* セクションヘッダー */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #667eea;
}

/* フィルターバー */
.filter-bar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    min-width: 80px;
    white-space: nowrap;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    min-width: 140px;
}

.filter-group input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

/* テーブル */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: #667eea;
    color: white;
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.badge-priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.badge-priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.badge-priority-low {
    background: #dbeafe;
    color: #2563eb;
}

.badge-status {
    padding: 6px 12px;
    font-size: 12px;
}

.badge-status-unassigned {
    background: #e5e7eb;
    color: #374151;
}

.badge-status-notstarted {
    background: #fef3c7;
    color: #92400e;
}

.badge-status-assigned {
    background: #dbeafe;
    color: #2563eb;
}

.badge-status-progress {
    background: #fef3c7;
    color: #d97706;
}

.badge-status-completed {
    background: #d1fae5;
    color: #059669;
}

.badge-status-hold {
    background: #fce7f3;
    color: #be185d;
}

/* テスターグリッド */
.testers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tester-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tester-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tester-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.tester-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
}

.tester-info p {
    font-size: 13px;
    color: #666;
}

.tester-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.tester-status.active {
    background: #d1fae5;
    color: #059669;
}

.tester-status.inactive {
    background: #fee2e2;
    color: #dc2626;
}

.tester-skills {
    margin-bottom: 16px;
}

.tester-skills h4 {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background: #e0e7ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.tester-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
    margin-bottom: 16px;
}

.tester-stat {
    text-align: center;
}

.tester-stat .number {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.tester-stat .label {
    font-size: 11px;
    color: #666;
}

.tester-actions {
    display: flex;
    gap: 8px;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
}

/* フォーム */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.required {
    color: #ef4444;
}

/* タスク詳細 */
.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
}

.detail-value {
    flex: 1;
    color: #333;
}

/* レスポンシブ */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 8px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-tabs {
        padding: 0 20px;
        overflow-x: auto;
    }

    .nav-tab {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .tab-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group label {
        width: 100%;
    }

    .filter-group select,
    .filter-group input[type="text"] {
        width: 100%;
        min-width: auto;
    }

    .table-container {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }

    .testers-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* 空状態 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
}

/* タスクセクション */
.task-section {
    margin-bottom: 40px;
}

.section-header {
    padding: 16px 20px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    font-size: 20px;
}

.section-header span {
    font-weight: 700;
}

/* タスクカード（未アサイン強調表示用） */
.task-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.task-card {
    transition: all 0.2s;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* タスクリストセクション */
.task-list-section {
    display: flex;
    flex-direction: column;
}

.task-list-item {
    transition: all 0.2s;
}

.task-list-item:hover {
    border-color: #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* 役割選択画面 */
.role-selection-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.role-selection-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
}

.role-selection-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.role-selection-header i {
    font-size: 48px;
    margin-bottom: 16px;
}

.role-selection-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.role-selection-header p {
    font-size: 14px;
    opacity: 0.9;
}

.role-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 40px;
}

.role-selection-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-selection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.role-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: white;
}

.role-selection-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.role-selection-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.role-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.role-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.role-features i {
    color: #10b981;
    font-size: 12px;
}

.role-selection-footer {
    background: #f8f9fa;
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.role-selection-footer p {
    font-size: 13px;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 古いログイン画面スタイル（未使用だが互換性のため残す） */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.login-header i {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
}

.login-box form {
    padding: 40px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-with-icon input {
    padding-left: 44px;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-selector-three {
    grid-template-columns: 1fr 1fr 1fr;
}

.role-option {
    cursor: pointer;
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.role-card i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 12px;
}

.role-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.role-card p {
    font-size: 12px;
    color: #666;
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: #667eea;
    background: #f5f7ff;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}

.demo-users {
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.demo-users h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.demo-list-three {
    grid-template-columns: 1fr 1fr 1fr;
}

.demo-section strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.demo-section ul {
    list-style: none;
    padding: 0;
}

.demo-section li {
    font-size: 12px;
    color: #666;
    padding: 4px 0;
    font-family: monospace;
}

/* ユーザー情報 */
.user-info {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 8px;
}

/* テスター選択・依頼者選択 */
.tester-selector,
.requester-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* 依頼者新規登録リンク */
.requester-register-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.requester-register-link:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tester-selector label,
.requester-selector label {
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tester-selector select,
.requester-selector select {
    padding: 8px 12px;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    background: white;
    color: #333;
    min-width: 200px;
    cursor: pointer;
}

.tester-selector select:focus,
.requester-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* テーブルソート */
.data-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 30px;
}

.data-table thead th.sortable:hover {
    background: rgba(102, 126, 234, 0.1);
}

.data-table thead th .sort-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #667eea;
}

.data-table thead th.sort-asc {
    background: rgba(102, 126, 234, 0.15);
}

.data-table thead th.sort-desc {
    background: rgba(102, 126, 234, 0.15);
}

/* 情報バナー */
.info-banner {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-banner i {
    font-size: 20px;
    color: #2196f3;
}

.info-banner p {
    margin: 0;
    font-size: 14px;
    color: #1565c0;
}

/* タスクカードグリッド */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.task-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.task-card-header {
    margin-bottom: 12px;
}

.task-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.task-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.task-card-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.task-card-requester {
    font-size: 12px;
    color: #999;
}

.task-card-date {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-card.priority-high {
    border-left-color: #ef4444;
}

.task-card.priority-medium {
    border-left-color: #f59e0b;
}

.task-card.priority-low {
    border-left-color: #3b82f6;
}

/* 管理者画面専用スタイル */
.header-admin {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.admin-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.chart-container {
    min-height: 300px;
}

.daily-summary {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.daily-summary h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.summary-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.testers-workload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tester-workload-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tester-workload-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tester-workload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.tester-workload-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.workload-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.workload-low {
    background: #d1fae5;
    color: #059669;
}

.workload-normal {
    background: #fef3c7;
    color: #d97706;
}

.workload-high {
    background: #fee2e2;
    color: #dc2626;
}

.tester-workload-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.workload-stat {
    text-align: center;
}

.workload-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.workload-stat-label {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.tester-current-tasks {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.tester-current-tasks h4 {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.current-task-item {
    font-size: 12px;
    color: #333;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-task-item i {
    color: #999;
}

.alert-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.alert-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    background: #fff5f5;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-item:hover {
    background: #fee2e2;
    transform: translateX(4px);
}

.alert-item.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.alert-item.warning:hover {
    background: #fef3c7;
}

.alert-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.alert-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.alert-item-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}

.alert-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.progress-ok {
    background: #d1fae5;
    color: #059669;
}

.progress-warning {
    background: #fef3c7;
    color: #d97706;
}

.progress-danger {
    background: #fee2e2;
    color: #dc2626;
}

/* レポート機能スタイル */
.report-controls {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.period-selector {
    display: flex;
    gap: 8px;
}

.period-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-btn:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.period-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.date-range-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-range-selector label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.date-range-selector input[type="date"] {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.report-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.report-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.report-card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.report-card-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.report-card-info p {
    font-size: 12px;
    color: #999;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.report-metric {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.report-metric-number {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.report-metric-label {
    font-size: 11px;
    color: #666;
}

.report-progress {
    margin-top: 16px;
}

.report-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.report-progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.report-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.modal-large .modal-content {
    max-width: 900px;
}

.report-period-info {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.report-summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.summary-info {
    flex: 1;
}

.summary-number {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 12px;
    color: #666;
}

.report-section {
    margin-bottom: 24px;
}

.report-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

/* レポートカードグリッド */
.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* レポート統計カード */
.report-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.report-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.report-stat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.report-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.report-stat-icon.tester {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.report-stat-icon.product {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.report-stat-icon.tasktype {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.report-stat-icon.requester {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.report-stat-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.report-stat-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.report-metric-item {
    text-align: center;
}

.report-metric-number {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.report-metric-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.report-progress-section {
    margin-top: 20px;
}

.report-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.report-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.report-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.breakdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.breakdown-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.breakdown-item-number {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.breakdown-item-label {
    font-size: 12px;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .demo-list {
        grid-template-columns: 1fr;
    }
    
    .demo-list-three {
        grid-template-columns: 1fr;
    }
    
    .role-selector-three {
        grid-template-columns: 1fr;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-charts {
        grid-template-columns: 1fr;
    }
    
    .testers-workload-grid {
        grid-template-columns: 1fr;
    }
    
    .report-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .period-selector {
        flex-direction: column;
    }
    
    .period-btn {
        width: 100%;
        justify-content: center;
    }
    
    .date-range-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .report-metrics {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   テスター稼働状況カード（改善版）
   ======================================== */
.tester-status-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.tester-status-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.tester-status-header {
    margin-bottom: 16px;
}

.tester-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tester-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.tester-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tester-work-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.tester-status-badge.status-active {
    background: #d4edda;
    color: #27ae60;
}

.tester-status-badge.status-inactive {
    background: #f8d7da;
    color: #e74c3c;
}

.tester-status-badge i {
    font-size: 8px;
}

.tester-status-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workload-indicator {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workload-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.workload-fill {
    height: 100%;
    transition: width 0.5s ease, background 0.3s ease;
    border-radius: 4px;
}

.workload-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.tester-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 4px;
    font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tester-stats-row {
        grid-template-columns: 1fr;
    }
}

.tester-status-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .tester-status-list {
        grid-template-columns: 1fr;
    }
}

/* 勤務予定管理タブのスタイル */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-navigation button {
    white-space: nowrap;
}

.week-navigation span {
    min-width: 200px;
    text-align: center;
}

/* カードスタイル */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.btn-block {
    width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .week-navigation {
        flex-wrap: wrap;
    }
}
