/* Controller Roster Styles */

/* Roster Header */
.roster-header {
    background-color: var(--cream);
    padding: 150px 0 50px 0;
    margin-top: 90px;
    text-align: center;
}

/* Roster Section */
.roster-section {
    background-color: var(--cream);
    padding: 40px 20px 80px 20px;
    min-height: 60vh;
}

.roster-container {
    max-width: 1400px;
    margin: 0 auto;
}

.roster-table-wrapper {
    background: white;
    border: 3px solid var(--dark);
    border-radius: 5px;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Roster Table */
.roster-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.roster-table thead {
    background-color: var(--red);
    color: var(--light);
}

.roster-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 700;
    border: 1px solid #fff;
    font-size: 0.9rem;
}

.roster-table .approved-header {
    background-color: var(--red);
}

.roster-table .position-col {
    font-size: 0.85rem;
    padding: 10px 8px;
}

.roster-table .logo-cell {
    background-color: var(--red);
    width: 80px;
}

.roster-logo {
    height: 50px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.roster-table tbody td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.roster-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.roster-table tbody tr:hover {
    background-color: #f0f0f0;
}

/* Position Status Cells */
.position-approved {
    background-color: #4CAF50 !important;
}

.position-not-approved {
    background-color: #fff !important;
}

/* Certification Cells with Icons */
.cert-cell {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.cert-approved {
    background-color: #d4edda !important;
}

.cert-not-approved {
    background-color: #f8d7da !important;
}

.check-icon {
    color: #28a745;
    font-size: 1.3rem;
}

.cross-icon {
    color: #dc3545;
    font-size: 1.3rem;
}

/* Rating Badge */
.rating-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    background-color: var(--red);
    color: white;
    text-align: center;
    min-width: 40px;
}

.rating-badge.rating-S1,
.rating-badge.rating-S2,
.rating-badge.rating-S3 {
    background-color: #17a2b8;
}

.rating-badge.rating-C1,
.rating-badge.rating-C2,
.rating-badge.rating-C3 {
    background-color: #28a745;
}

.rating-badge.rating-I1,
.rating-badge.rating-I2,
.rating-badge.rating-I3 {
    background-color: #6f42c1;
}

.rating-cell {
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    vertical-align: middle;
}

.solo-cell {
    font-weight: 600;
    color: var(--green);
}

.remarks-cell {
    font-style: italic;
    color: #666;
}

.loading-cell {
    padding: 40px !important;
    text-align: center;
    font-size: 1.1rem;
    color: #666;
}

.loading-cell.error {
    color: var(--red);
}

/* Admin Styles for Roster */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: #e9e9e9;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label span {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .roster-table {
        font-size: 0.8rem;
    }
    
    .roster-table th,
    .roster-table td {
        padding: 8px 5px;
    }
    
    .roster-logo {
        height: 35px;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .roster-section {
        padding: 20px;
    }
    
    .roster-table {
        border: 2px solid #000;
    }
    
    .roster-table tbody tr:nth-child(even) {
        background-color: #f0f0f0 !important;
    }
}
