/* ============================================================
   ULTRA-MODERN WORK SCHEDULE v3.0
   Card-like schedule tables with beautiful status badges
   
   EASY COLOR CHANGE: Edit the --msch-* variables at top!
   ============================================================ */

/* ===== CUSTOMIZE COLORS HERE ===== */
:root {
    /* Table header colors (default: blue) */
    --msch-header-start: #3b82f6;
    --msch-header-end: #2563eb;
    
    /* Try these instead:
    Green:  #10b981 and #059669
    Purple: #8b5cf6 and #7c3aed
    Red:    #ef4444 and #dc2626
    Orange: #f59e0b and #d97706
    */
    
    /* Cell styling */
    --msch-cell-bg: #ffffff;
    --msch-cell-hover: #f0f9ff;
    --msch-text: #374151;
    
    /* Status badge colors */
    --msch-approved: #10b981;
    --msch-approved-dark: #059669;
    --msch-pending: #f59e0b;
    --msch-pending-dark: #d97706;
    --msch-rejected: #ef4444;
    --msch-rejected-dark: #dc2626;
    --msch-cancelled: #6b7280;
    --msch-cancelled-dark: #4b5563;
    
    /* Spacing & borders */
    --msch-padding: 16px;
    --msch-radius: 10px;
    --msch-gap: 8px;
}

/* ===== STATUS BADGES (Modern gradients) ===== */
.msch-status-approved {
    background: linear-gradient(135deg, var(--msch-approved), var(--msch-approved-dark));
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.msch-status-approved:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.msch-status-pending {
    background: linear-gradient(135deg, var(--msch-pending), var(--msch-pending-dark));
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.msch-status-pending:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.msch-status-rejected {
    background: linear-gradient(135deg, var(--msch-rejected), var(--msch-rejected-dark));
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.msch-status-rejected:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.msch-status-cancelled {
    background: linear-gradient(135deg, var(--msch-cancelled), var(--msch-cancelled-dark));
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
    transition: all 0.3s ease;
}

.msch-status-cancelled:hover {
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
    transform: translateY(-2px);
}

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

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

/* ===== TABLE WRAPPER (Card Container) ===== */
.msch-table-wrapper {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    margin-bottom: 28px;
}

/* ===== MAIN TABLE ===== */
.msch-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--msch-gap);
}

/* ===== HEADER (Gradient with rounded corners) ===== */
.msch-table thead tr {
    background: linear-gradient(135deg, var(--msch-header-start), var(--msch-header-end));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.msch-table th {
    padding: var(--msch-padding);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.msch-table th:first-child {
    border-top-left-radius: var(--msch-radius);
    border-bottom-left-radius: var(--msch-radius);
    padding-left: 20px;
}

.msch-table th:last-child {
    border-top-right-radius: var(--msch-radius);
    border-bottom-right-radius: var(--msch-radius);
    padding-right: 20px;
}

/* ===== BODY ROWS (Card-like) ===== */
.msch-table tbody tr {
    background: var(--msch-cell-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.msch-table tbody tr:hover {
    background: var(--msch-cell-hover);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-3px) scale(1.01);
}

.msch-table td {
    padding: var(--msch-padding);
    font-size: 14px;
    color: var(--msch-text);
}

.msch-table td:first-child {
    border-top-left-radius: var(--msch-radius);
    border-bottom-left-radius: var(--msch-radius);
    padding-left: 20px;
    font-weight: 600;
}

.msch-table td:last-child {
    border-top-right-radius: var(--msch-radius);
    border-bottom-right-radius: var(--msch-radius);
    padding-right: 20px;
}

/* ===== ALTERNATE ROW COLORS ===== */
.msch-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.msch-table tbody tr:nth-child(even):hover {
    background: var(--msch-cell-hover);
}

/* ===== COLOR VARIANTS ===== */
.msch-table-green { --msch-header-start: #10b981; --msch-header-end: #059669; }
.msch-table-purple { --msch-header-start: #8b5cf6; --msch-header-end: #7c3aed; }
.msch-table-red { --msch-header-start: #ef4444; --msch-header-end: #dc2626; }
.msch-table-orange { --msch-header-start: #f59e0b; --msch-header-end: #d97706; }
.msch-table-dark { --msch-header-start: #374151; --msch-header-end: #1f2937; }

/* ===== IMAGES ===== */
.msch-image-responsive {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.msch-image-responsive:hover {
    transform: scale(2.5);
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--msch-header-start);
}

.msch-owner-image {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --msch-padding: 12px;
        --msch-radius: 8px;
        --msch-gap: 6px;
    }
    
    .msch-table-wrapper {
        padding: 16px;
    }
    
    .msch-table th,
    .msch-table td {
        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 badges */
.schedule-approved {
    background: linear-gradient(135deg, var(--msch-approved), var(--msch-approved-dark)) !important;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.schedule-pending {
    background: linear-gradient(135deg, var(--msch-pending), var(--msch-pending-dark)) !important;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.schedule-rejected {
    background: linear-gradient(135deg, var(--msch-rejected), var(--msch-rejected-dark)) !important;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.schedule-cancelled {
    background: linear-gradient(135deg, var(--msch-cancelled), var(--msch-cancelled-dark)) !important;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

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

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

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

.work-schedule-table thead tr {
    background: linear-gradient(135deg, var(--msch-header-start), var(--msch-header-end));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.work-schedule-table th {
    padding: 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.work-schedule-table th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding-left: 20px;
}

.work-schedule-table th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-right: 20px;
}

.work-schedule-table tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.work-schedule-table tbody tr:hover {
    background: #f0f9ff;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-3px);
}

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

.work-schedule-table td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding-left: 20px;
}

.work-schedule-table td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-right: 20px;
}

.table-wrapper {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

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

.owner-image-responsive {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid #e5e7eb;
}

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