/* Controller Roster Styles */

/* Roster Header */
.roster-header {
    position: relative;
    padding: 180px 0 100px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(125deg, rgba(200,16,46,0.2) 0%, rgba(247,250,255,0.05) 35%, rgba(27,94,60,0.2) 70%, rgba(7,11,18,0.95) 100%);
}

.roster-header .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?q=80&w=2000') center/cover;
    z-index: 1;
}

.roster-header .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 11, 18, 0.88) 0%, rgba(14, 22, 36, 0.88) 50%, rgba(27, 94, 60, 0.32) 100%);
    z-index: 2;
}

.roster-header .container {
    position: relative;
    z-index: 3;
}

.page-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-header-content .page-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-header-content .page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Roster Section */
.roster-section {
    background-color: var(--bg-primary);
    padding: 60px 20px 80px 20px;
    min-height: 60vh;
}

.roster-container {
    max-width: 1400px;
    margin: 0 auto;
}

.roster-table-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(200,16,46,0.25);
}

/* Roster Table */
.roster-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.roster-table thead {
    background: linear-gradient(90deg, #C8102E 0%, #F7FAFF 42%, #1B5E3C 76%, #070B12 100%);
    color: white;
}

.roster-table th {
    padding: 18px 12px;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.roster-table th:last-child {
    border-right: none;
}

.roster-table .approved-header {
    background: linear-gradient(90deg, #C8102E 0%, #F7FAFF 42%, #1B5E3C 76%, #070B12 100%);
}

.roster-table .position-col {
    font-size: 0.85rem;
    padding: 10px 8px;
}

.roster-table .logo-cell {
    background: linear-gradient(90deg, #C8102E 0%, #F7FAFF 42%, #1B5E3C 76%, #070B12 100%);
    width: 80px;
}

.roster-logo {
    height: 50px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.roster-table tbody td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.roster-table tbody tr {
    transition: background-color 0.2s ease;
}

.roster-table tbody tr:hover {
    background-color: var(--hover-bg);
}

.roster-table tbody tr:hover {
    background-color: var(--hover-bg);
}

/* Position Status Cells */
.position-approved {
    background-color: rgba(76, 175, 80, 0.1) !important;
}

.position-not-approved {
    background-color: transparent !important;
}

/* Certification Cells with Icons */
.cert-cell {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.cert-approved {
    background-color: transparent !important;
}

.cert-not-approved {
    background-color: transparent !important;
}

.check-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    background: linear-gradient(135deg, #2E8B57 0%, #3CB371 100%);
    color: #000;
    font-size: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(60, 179, 113, 0.6), 0 0 20px rgba(60, 179, 113, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.check-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(60, 179, 113, 0.8), 0 0 30px rgba(60, 179, 113, 0.5);
}

.cross-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    background: linear-gradient(135deg, #C8102E 0%, #FF4D57 100%);
    color: white;
    font-size: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(200, 16, 46, 0.6), 0 0 20px rgba(200, 16, 46, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cross-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.8), 0 0 30px rgba(200, 16, 46, 0.5);
}

/* Rating Badge */
.rating-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #C8102E 0%, #E63946 100%);
    color: white;
    text-align: center;
    min-width: 40px;
}

.rating-badge.rating-S1,
.rating-badge.rating-S2,
.rating-badge.rating-S3 {
    background: linear-gradient(135deg, #1B5E3C 0%, #2E8B57 100%);
}

.rating-badge.rating-C1,
.rating-badge.rating-C2,
.rating-badge.rating-C3 {
    background: linear-gradient(135deg, #D4AF37 0%, #C9A227 100%);
}

.rating-badge.rating-I1,
.rating-badge.rating-I2,
.rating-badge.rating-I3 {
    background: linear-gradient(135deg, #111C2E 0%, #2E8B57 100%);
}

.rating-cell {
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    vertical-align: middle;
}

.solo-cell {
    font-weight: 600;
    color: #28a745;
}

.remarks-cell {
    font-style: italic;
    color: var(--text-secondary);
}

.loading-cell {
    padding: 40px !important;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.loading-cell.error {
    color: #C8102E;
}

/* Admin Styles for Roster */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: var(--hover-bg);
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: var(--border-color);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .roster-header {
        padding: 140px 20px 80px 20px;
    }
    
    .page-header-content .page-title {
        font-size: 2rem;
    }
    
    .page-header-content .page-subtitle {
        font-size: 1rem;
    }
    
    .roster-table {
        font-size: 0.8rem;
    }
    
    .roster-table th,
    .roster-table td {
        padding: 10px 6px;
    }
    
    .roster-logo {
        height: 35px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .roster-section {
        padding: 20px;
    }
    
    .roster-table {
        border: 2px solid #000;
    }
    
    .roster-table tbody tr:hover {
        background-color: transparent !important;
    }
}

/* Dark Mode Specific Styles */
[data-theme="dark"] .roster-table-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .rating-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
