/* ============================================================
   MODERN WORK SCHEDULE SYSTEM v2.0
   Prefix: msch- (Modern Schedule)
   Purpose: Professional schedule tables with status indicators
   January 2026
   ============================================================ */

/* ===== SCHEDULE STATUS BADGES ===== */
.msch-status-approved {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.msch-status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.msch-status-rejected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.msch-status-cancelled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.msch-link {
    text-decoration: none;
    color: inherit !important;
    transition: opacity 0.2s ease;
}

.msch-link:hover {
    opacity: 0.8;
}

.msch-no-schedule {
    color: #9ca3af;
    font-style: italic;
    font-size: 14px;
}

/* ===== WORK SCHEDULE TABLE ===== */
.msch-table-wrapper {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.msch-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    background: #fff;
}

.msch-table th,
.msch-table td {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
}

.msch-table th {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msch-table td {
    font-size: 14px;
    color: #374151;
}

.msch-table tbody tr {
    transition: all 0.2s ease;
}

.msch-table tbody tr:hover {
    background: #f9fafb;
}

/* ===== TABLE VARIANTS ===== */
.msch-table-green th {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.msch-table-purple th {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.msch-table-red th {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.msch-table-orange th {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.msch-table-dark th {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

/* ===== IMAGE CONTROLS ===== */
.msch-image-responsive {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.msch-image-responsive:hover {
    transform: scale(1.5);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.msch-owner-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #e5e7eb;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .msch-table-wrapper {
        padding: 16px;
    }
    
    .msch-table th,
    .msch-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .msch-status-approved,
    .msch-status-pending,
    .msch-status-rejected,
    .msch-status-cancelled {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .msch-image-responsive {
        width: 60px;
        height: 60px;
    }
    
    .msch-owner-image {
        width: 80px;
        height: 80px;
    }
}

/* ===== BACKWARD COMPATIBILITY ===== */

/* Old status classes */
.schedule-approved {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.schedule-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.schedule-rejected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.schedule-cancelled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.schedule-link {
    text-decoration: none;
    color: inherit !important;
}

.no-schedule {
    color: #9ca3af;
    font-style: italic;
}

/* Old table classes */
.work-schedule-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: #fff;
}

.work-schedule-table th,
.work-schedule-table td {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
}

.work-schedule-table th {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.work-schedule-table td {
    font-size: 14px;
    color: #374151;
}

.work-schedule-table tbody tr:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .work-schedule-table th,
    .work-schedule-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
}

.table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 24px;
}

.image-responsive {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.admenu-image-responsive {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.owner-image-responsive {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #e5e7eb;
}

/* ============================================================
   END MODERN WORK SCHEDULE
   All old class names still work for backward compatibility
   ============================================================ */
