/* Mobile Overscroll Prevention */
html {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    height: 100%;
    overflow-x: hidden;
}

body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    max-width: 100vw;
}

/* Prevent pull-to-refresh and elastic scrolling on mobile */
@media (max-width: 768px) {
    html, body {
        overscroll-behavior-y: none;
        overscroll-behavior-x: none;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    /* Prevent page bouncing/stretching without breaking layout */
    body {
        position: relative;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100vh;
        max-height: 100vh;
    }
    
    /* Ensure main content respects viewport bounds */
    .main-content, .page-content, .container {
        max-height: calc(100vh - 120px); /* Account for navbar */
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Enhanced Billing Dashboard Styles */
.billing-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(139, 21, 56, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 16px rgba(139, 21, 56, 0.04);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.billing-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 21, 56, 0.08);
}

.billing-header {
    text-align: center;
    margin-bottom: 0.75rem;
    position: relative;
}

.billing-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8B1538, #d63384);
    border-radius: 2px;
}

.billing-header h4 {
    color: #8B1538;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.billing-header p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* Plan Status Cards */
.billing-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 21, 56, 0.05);
}

.plan-status {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.02), rgba(139, 21, 56, 0.05));
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(139, 21, 56, 0.08);
    transition: all 0.3s ease;
}

.plan-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.08);
}

.plan-status h5 {
    color: #8B1538;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.plan-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.status-trial { 
    background: linear-gradient(135deg, #e3f2fd, #bbdefb); 
    color: #1976d2; 
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}
.status-active { 
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9); 
    color: #2e7d32; 
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}
.status-cancelled { 
    background: linear-gradient(135deg, #ffebee, #ffcdd2); 
    color: #c62828; 
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.2);
}
.status-inactive { 
    background: linear-gradient(135deg, #f5f5f5, #eeeeee); 
    color: #666; 
    box-shadow: 0 2px 8px rgba(102, 102, 102, 0.2);
}

/* Trial Status */
.trial-status {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.trial-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.trial-status:hover::before {
    left: 100%;
}

.active-trial {
    background: linear-gradient(135deg, #4caf50, #66bb6a, #81c784);
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.cancelled-trial {
    background: linear-gradient(135deg, #ff9800, #ffb74d, #ffcc02);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.cancelled-trial .cancellation-notice {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    backdrop-filter: blur(10px);
}

.expired-trial {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1), rgba(139, 21, 56, 0.15));
    color: #8B1538;
    border: 1px solid rgba(139, 21, 56, 0.2);
}

/* Billing Actions */
.billing-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(139, 21, 56, 0.05);
    text-align: center;
}

.manage-billing-btn {
    background: linear-gradient(135deg, #8B1538, #a91a4a);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.2);
    margin-bottom: 1rem;
    width: 100%;
    max-width: 400px;
}

.manage-billing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.3);
    background: linear-gradient(135deg, #a91a4a, #8B1538);
}

.manage-billing-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.billing-note {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.trial-status h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.trial-status p {
    margin: 0.5rem 0;
    font-weight: 600;
}

/* Billing Details Grid */
.billing-details {
    margin-bottom: 2rem;
}

.billing-details > div {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 21, 56, 0.05);
    transition: all 0.3s ease;
}

.billing-details > div:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.08);
}

.billing-details h6 {
    color: #8B1538;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.billing-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.billing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(139, 21, 56, 0.02);
    border-radius: 8px;
    border-left: 4px solid #8B1538;
    transition: all 0.3s ease;
}

.billing-item:hover {
    background: rgba(139, 21, 56, 0.05);
    transform: translateX(2px);
}

.billing-item .label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.billing-item .value {
    font-weight: 700;
    color: #8B1538;
    font-size: 1rem;
}

/* Transactions */
.recent-transactions {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 21, 56, 0.05);
}

.transactions-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #8B1538 #f1f1f1;
}

.transactions-list::-webkit-scrollbar {
    width: 6px;
}

.transactions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: #8B1538;
    border-radius: 3px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(139, 21, 56, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(139, 21, 56, 0.05);
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(139, 21, 56, 0.05);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.1);
}

.transaction-date {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.transaction-details span {
    display: block;
    margin-bottom: 0.25rem;
}

.transaction-amounts {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.transaction-amounts .gross { color: #495057; font-weight: 500; }
.transaction-amounts .commission { color: #dc3545; font-weight: 600; }
.transaction-amounts .net { color: #28a745; font-weight: 700; }

/* Action Buttons */
.billing-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.billing-actions button {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.billing-actions .btn-secondary {
    background: linear-gradient(135deg, #8B1538, #a91d42);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

.billing-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #a91d42, #8B1538);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

.billing-actions .btn-outline {
    background: transparent;
    color: #8B1538;
    border: 2px solid #8B1538;
}

.billing-actions .btn-outline:hover {
    background: #8B1538;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

/* Subscription Prompt */
.subscription-prompt {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(255, 193, 7, 0.05));
    border: 2px solid rgba(220, 53, 69, 0.2);
    border-radius: 16px;
    margin: 1rem 0;
}

.prompt-header h4 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prompt-header p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.subscription-select-btn {
    background: linear-gradient(135deg, #8B1538, #a91d42);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

.subscription-select-btn:hover {
    background: linear-gradient(135deg, #a91d42, #8B1538);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

.prompt-warning {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
}

.prompt-warning p {
    color: #856404;
    margin: 0;
    font-size: 0.95rem;
}

/* Loading and Error States */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #8B1538;
}

.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8B1538;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    color: #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .billing-section {
        padding: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .billing-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trial-status {
        text-align: center;
    }
    
    .billing-info-grid {
        grid-template-columns: 1fr;
    }
    
    .billing-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .transaction-amounts {
        align-self: stretch;
        justify-content: space-between;
    }
}

/* Subscription Modal Header */
.subscription-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.modal-header-content {
    flex: 1;
}

.modal-header-actions {
    flex-shrink: 0;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-toggle-btn {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    border: 1px solid rgba(139, 21, 56, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
}

.language-toggle-btn:hover {
    background: rgba(139, 21, 56, 0.2);
    border-color: rgba(139, 21, 56, 0.5);
    transform: translateY(-1px);
}

/* Plan Cards Spacing Fix */
.plan-commission {
    text-align: center;
    margin: 1rem 0;
    font-size: 1rem;
}

.plan-commission span,
.plan-commission strong {
    margin-right: 0.25rem;
}

.plan-commission span:last-child {
    margin-right: 0;
}

/* Comparison Cards Spacing */
.calc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.calc-line span {
    white-space: nowrap;
}

.calc-line span:first-child {
    margin-right: 1rem;
}

/* Breakeven Info Spacing */
.breakeven-info {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    line-height: 1.5;
}

.breakeven-info strong {
    margin-right: 0.5rem;
}

/* Subject Dropdown Styles */
.subjects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .subjects-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .subjects-container {
        gap: 8px;
        margin-top: 12px;
        padding: 0;
    }
}

.semester-box {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.semester-box.expanded {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.semester-box:hover:not(.expanded) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.semester-box.expanded:hover {
    transform: translateY(-2px);
}

.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    cursor: pointer;
    font-weight: 700;
    color: white;
    user-select: none;
    transition: all 0.2s ease;
    font-size: 16px;
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(113, 23, 28, 0.2);
}

.semester-header:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 23, 28, 0.2);
    border-color: rgba(113, 23, 28, 0.4);
}

.semester-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #71171C;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown-arrow {
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #71171C;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.semester-header:hover .dropdown-arrow {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.expand-arrow {
    font-size: 14px;
    margin-left: 8px;
    color: #71171C;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-weight: 600;
}

.subject-options {
    transition: all 0.3s ease;
    overflow: hidden;
}

.subject-options.collapsed {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.subject-options.expanded {
    max-height: 300px;
    padding: 15px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    overflow-x: hidden;
}

.subject-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 14px;
}

.subject-options label:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    margin: 0 -5px;
    padding: 8px 5px;
}

.subject-options input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

/* Custom scrollbar for subject options */
.subject-options.expanded::-webkit-scrollbar {
    width: 8px;
}

.subject-options.expanded::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.subject-options.expanded::-webkit-scrollbar-thumb {
    background: #8B1538;
    border-radius: 4px;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subject-options.expanded::-webkit-scrollbar-thumb:hover {
    background: #A91B47;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tutor availability calendar styling */
.schedule-slot {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1px 0;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    box-sizing: border-box;
    min-height: 60px;
}

.schedule-slot:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.schedule-slot.available {
    background: #28a745;
    color: white;
    border-color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.schedule-slot.available::before {
    content: '✓';
    font-size: 20px;
    font-weight: 900;
}

.schedule-slot.available:hover {
    background: #218838;
    border-color: #218838;
}

.schedule-slot.booked {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    cursor: not-allowed;
    font-size: 20px;
    font-weight: 900;
}

.booked-text {
    font-weight: 700;
    font-size: 12px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.schedule-slot.class-slot {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-color: #2563eb;
    cursor: not-allowed;
    font-size: 20px;
    font-weight: 900;
}

.class-text {
    font-weight: 700;
    font-size: 12px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.week-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn {
    background: #8B1538;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #A91B47;
    transform: translateY(-1px);
}

.nav-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.current-week-info {
    text-align: center;
    color: #8B1538;
    font-weight: 700;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 6px;
    border: 2px solid #8B1538;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.day-header {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.day-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3px;
    color: white;
}

.day-date {
    font-size: 13px;
    font-weight: 600;
    color: white;
    line-height: 1.1;
}

.schedule-slot.booked:hover {
    background: #c82333;
    border-color: #c82333;
    transform: none;
}

/* Daily calendar styling */
.daily-calendar {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(139, 21, 56, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.nav-arrow {
    background: #8B1538;
    border: 2px solid #fff;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #fff;
    color: #8B1538;
    border-color: #8B1538;
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #666;
    border-color: #999;
}

.current-date {
    text-align: center;
    color: white;
    flex: 1;
}

.current-date #currentDayName {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #8B1538;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.current-date #currentDate {
    font-size: 16px;
    color: white;
    margin-top: 8px;
    font-weight: 500;
}

.available-slots {
    min-height: 120px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.time-slot-btn {
    background: white;
    border: 2px solid #8B1538;
    color: #8B1538;
    padding: 12px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.time-slot-btn:hover:not(.selected) {
    background: #8B1538;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 21, 56, 0.3);
}

button.time-slot-btn.selected,
.time-slot-btn.selected,
button[data-time].selected {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px #dc3545, 0 0 0 4px white !important;
    transform: translateY(-1px) !important;
    transition: all 0.2s ease !important;
}

/* Force selected state on desktop browsers */
button.time-slot-btn.selected:not(:hover),
.time-slot-btn.selected:not(:hover),
button[data-time].selected:not(:hover) {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

button.time-slot-btn.selected:hover,
.time-slot-btn.selected:hover {
    background: #c82333 !important;
    transform: translateY(-2px) !important;
}

/* NUCLEAR OPTION: Force time slot selection to work on desktop */
[data-time].selected,
.schedule-slot.selected,
.schedule-slot.available.selected,
.schedule-slot.booked.selected,
.weekly-schedule .schedule-slot.selected,
.daily-calendar .schedule-slot.selected,
button[data-time].selected,
div[data-time].selected,
span[data-time].selected {
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px #dc3545, 0 0 0 4px white !important;
    transform: translateY(-1px) !important;
    transition: all 0.2s ease !important;
}

/* Force selected state with ultra-high specificity */
[data-time].selected:not(:hover),
.schedule-slot.selected:not(:hover),
.schedule-slot.available.selected:not(:hover),
.schedule-slot.booked.selected:not(:hover),
.weekly-schedule .schedule-slot.selected:not(:hover),
.daily-calendar .schedule-slot.selected:not(:hover),
button[data-time].selected:not(:hover),
div[data-time].selected:not(:hover),
span[data-time].selected:not(:hover) {
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* Absolute nuclear option - target by style attribute */
[style*="background-color: rgb(220, 53, 69)"] {
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* Class card styling enhancements */
.class-details-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
    border-bottom: 1px solid rgba(139, 21, 56, 0.1);
}

.class-delivery-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.delivery-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.delivery-online {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.delivery-campus {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.campus-room {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.target-year {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.class-language {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .class-details-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .class-delivery-info {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .delivery-badge, .campus-room, .target-year, .class-language {
        font-size: 0.75rem;
    }
}

/* Tutor class card improvements */
.tutor-class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

.tutor-class-header h5 {
    margin: 0;
    color: #8B1538;
    font-size: 1.2rem;
}

.class-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view-enrollments {
    background: #8B1538;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-enrollments:hover {
    background: #6d1028;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.tutor-class-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.class-basic-info p {
    margin: 0.25rem 0;
    color: #666;
}

.tutor-class-delivery {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.tutor-class-delivery .delivery-badge,
.tutor-class-delivery .campus-room {
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .tutor-class-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .class-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .btn-view-enrollments,
    .btn-delete {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Reviews/Ratings styling improvements */
.rating-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 21, 56, 0.1);
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B1538;
    margin: 0;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.2rem;
}

.rating-date {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.rating-comment-text {
    background: rgba(139, 21, 56, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #8B1538;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    margin-top: 0.5rem;
}

/* User's own rating highlighting */
.rating-item.my-rating {
    background: rgba(139, 21, 56, 0.08);
    border: 2px solid rgba(139, 21, 56, 0.3);
    box-shadow: 0 3px 12px rgba(139, 21, 56, 0.15);
    position: relative;
}

.my-rating-badge {
    background: linear-gradient(135deg, #8B1538, #a91a4a);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(139, 21, 56, 0.3);
}

/* Star styling */
.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.star {
    color: #ffc107;
}

.star.empty {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .rating-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .reviewer-name {
        font-size: 1rem;
    }
    
    .rating-stars {
        font-size: 1.1rem;
    }
    
    .rating-comment-text {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

/* Tutor list time slots styling */
.time-slot {
    background: white;
    border: 2px solid #8B1538;
    color: #8B1538;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.time-slot:hover {
    background: #8B1538;
    color: white;
    transform: translateY(-1px);
}

.time-slot small {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 400;
}

.no-slots {
    text-align: center;
    color: rgba(255, 255, 255, 0.9) !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 30px 20px !important;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(185, 45, 60, 0.15)) !important;
    border-radius: 12px !important;
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    margin: 16px 0 !important;
    line-height: 1.4 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #8B1538 0%, #A91B47 50%, #7A1230 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Timezone Notice */
.timezone-notice {
    background: rgba(139, 21, 56, 0.9);
    color: white;
    padding: 8px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.timezone-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.timezone-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    .timezone-notice {
        padding: 6px 12px;
    }
    .timezone-content {
        font-size: 13px;
        gap: 6px;
    }
}

/* Filter Box */
.tab-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
}

.tab-header .session-type-tabs {
    margin-bottom: 0;
}

.filter-box {
    position: relative;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #8B1538;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.filter-toggle-btn:hover {
    background: rgba(139, 21, 56, 0.1);
    border-color: rgba(139, 21, 56, 0.4);
}

.filter-icon {
    font-size: 16px;
}

.filter-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.filter-toggle-btn.active .filter-arrow {
    transform: rotate(180deg);
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 200px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.filter-section {
    margin-bottom: 12px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8B1538;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select-small {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(139, 21, 56, 0.3);
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.filter-select-small:focus {
    outline: none;
    border-color: #8B1538;
    box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.1);
}

@media (max-width: 768px) {
    .tab-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-box {
        align-self: flex-end;
    }
    
    .filter-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
    
    .filter-toggle-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Header and Navigation */
.navbar-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #8B1538;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin: 20px;
}

/* Hamburger Menu */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    margin-right: 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(139, 21, 56, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #8B1538;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Side Menu */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #8B1538 0%, #A91B47 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.side-menu-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.side-menu-logo h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.side-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.side-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.side-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu-items {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    flex: 1;
}

.side-menu-items li {
    margin: 0;
}

.side-menu-items a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.side-menu-items a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.6);
    padding-left: 2rem;
    font-weight: bold;
    text-decoration: underline;
    color: white;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 1.5rem;
}

.side-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.side-menu-logout {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.side-menu-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Side Menu Mobile Responsiveness */
@media (max-width: 768px) {
    .side-menu {
        width: 280px;
        left: -280px;
    }
    
    .side-menu-header {
        padding: 1rem;
    }
    
    .side-menu-logo h3 {
        font-size: 1.2rem;
    }
    
    .side-menu-items a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .side-menu-items a:hover {
        padding-left: 1.5rem;
        font-weight: bold;
        text-decoration: underline;
        color: white;
    }
    
    .side-menu-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .side-menu {
        width: calc(100vw - 60px);
        left: calc(-100vw + 60px);
    }
    
    .side-menu-header {
        padding: 0.75rem;
    }
    
    .side-menu-logo h3 {
        font-size: 1.1rem;
    }
    
    .side-menu-items a {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .side-menu-items a:hover {
        padding-left: 1.25rem;
        font-weight: bold;
        text-decoration: underline;
        color: white;
    }
    
    .hamburger-menu {
        padding: 6px;
        margin-right: 10px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2.5px;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: rgba(139, 21, 56, 0.1);
    border: 2px solid rgba(139, 21, 56, 0.2);
    border-radius: 12px;
    color: #8B1538;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-language:hover {
    background: rgba(139, 21, 56, 0.2);
    border-color: rgba(139, 21, 56, 0.4);
    transform: translateY(-1px);
}

.btn-language:active {
    transform: translateY(0);
}

#languageIcon {
    display: inline-block;
    width: 24px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
}

/* French Flag */
.flag-fr {
    background: linear-gradient(to right, #0055A4 0%, #0055A4 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #EF4135 66.66%, #EF4135 100%);
}

/* British Flag - Simplified St. George's Cross */
.flag-gb {
    background: white;
    position: relative;
}

.flag-gb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Red cross - horizontal */
        linear-gradient(to bottom, transparent 40%, #C8102E 40%, #C8102E 60%, transparent 60%),
        /* Red cross - vertical */
        linear-gradient(to right, transparent 40%, #C8102E 40%, #C8102E 60%, transparent 60%);
}

#languageText {
    display: none;
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn-language {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    #languageText {
        display: none;
    }
    
    #languageIcon {
        font-size: 1.1em;
    }
}

/* Bottom navbar - only visible when logged in */
.navbar {
    background: rgba(139, 21, 56, 0.95);
    backdrop-filter: blur(15px);
    color: white;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    position: fixed;
    bottom: env(safe-area-inset-bottom, 16px);
    left: 16px;
    right: 16px;
    z-index: 1000;
    margin: 0;
    padding: 10px 14px; /* Increased padding to prevent border clipping */
    height: 64px; /* Slightly increased height to accommodate padding */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    contain: layout style;
    touch-action: manipulation;
}

/* Hide bottom navbar when modals are open */
.modal-open .navbar,
.modal-open #bottomNavbar {
    display: none !important;
}

/* Specific rule for booking modal */
body.modal-open #bottomNavbar {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Extra specific rule when booking modal is visible */
#bookingModal[style*="block"] ~ #bottomNavbar,
body:has(#bookingModal[style*="block"]) #bottomNavbar {
    display: none !important;
    visibility: hidden !important;
}

/* Remove hover effect to prevent mobile expansion issues */
@media (hover: hover) {
    .navbar:hover {
        box-shadow: 0 -12px 40px rgba(139, 21, 56, 0.3);
        background: rgba(139, 21, 56, 1);
    }
}

/* Add bottom padding to body when logged in to prevent content hiding behind navbar */
body.logged-in {
    padding-bottom: 100px;
}

/* Bottom navigation tabs */
.bottom-nav-tabs {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
    padding: 2px 6px; /* Reduced padding since navbar padding increased */
    overflow: visible; /* Allow borders to show */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bottom-nav-tabs::-webkit-scrollbar {
    display: none;
}

.bottom-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    white-space: nowrap;
    text-align: center;
    min-width: 100px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bottom-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.bottom-tab-btn.active {
    background: white;
    color: #8B1538;
    border: 2px solid white;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* Profile editing forms */
.profile-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Profile Header Styles */
.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.profile-title {
    flex: 1;
}

.profile-status-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 140px;
}

.profile-status-pill .status-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.profile-status-pill .status-value {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.profile-status-pill .status-value.complete {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
}

.profile-status-pill .status-value.incomplete {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.profile-header {
    margin-bottom: 25px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #8B1538;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid rgba(139, 21, 56, 0.2);
    border-radius: 12px;
    font-size: 16px; /* Prevents iOS zoom */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    min-height: 48px; /* Better touch target */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.language-checkboxes,
.subject-checkboxes {
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.language-checkboxes label,
.subject-checkboxes label {
    display: block;
    cursor: pointer;
    margin-bottom: 4px;
    padding: 2px 0;
}

.language-checkboxes input[type="checkbox"],
.subject-checkboxes input[type="checkbox"],
.subject-options input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid #A91B47;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-checkboxes input[type="checkbox"]:checked,
.subject-checkboxes input[type="checkbox"]:checked,
.subject-options input[type="checkbox"]:checked {
    background: #A91B47;
    border-color: #A91B47;
}

.language-checkboxes input[type="checkbox"]:checked::after,
.subject-checkboxes input[type="checkbox"]:checked::after,
.subject-options input[type="checkbox"]:checked::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    height: 100%;
}

/* Target Year Checkboxes */
.target-year-checkboxes {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.target-year-option {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.target-year-option input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid #A91B47;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.target-year-option input[type="checkbox"]:checked {
    background: #A91B47;
    border-color: #A91B47;
}

.target-year-option input[type="checkbox"]:checked::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    height: 100%;
}

.year-badge {
    background: rgba(139, 21, 56, 0.08);
    color: #8B1538;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(139, 21, 56, 0.2);
    transition: all 0.2s ease;
}

.target-year-option:hover .year-badge {
    background: rgba(139, 21, 56, 0.15);
    border-color: rgba(139, 21, 56, 0.3);
}

.target-year-option input[type="checkbox"]:checked + .year-badge {
    background: #8B1538;
    color: white;
    border-color: #8B1538;
}

/* Target Year Pills in Tutor Cards */
.tutor-target-years {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.target-year-pill {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
    display: inline-block;
}

/* Class tags row layout for tutor cards */
.class-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.class-tags-row .subject-tag {
    margin: 0;
}

.class-tags-row .target-year-pill {
    margin: 0;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(139, 21, 56, 0.3);
    letter-spacing: 0.3px;
}

/* Mobile responsiveness for tutor cards */
@media (max-width: 768px) {
    .class-card-tutor {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .class-header-new.card-header-student {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .class-info-main {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .class-title-main {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }
    
    .class-tags-row {
        gap: 6px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .class-tags-row .subject-tag {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }
    
    .class-tags-row .target-year-pill {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
    }
    
    .boxes-container {
        display: flex !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .enrollment-display, .pending-requests-indicator {
        flex: 1 !important;
        min-width: 90px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        hyphens: none !important;
        word-break: keep-all !important;
    }
    
    /* Mobile-friendly pending text */
    @media (max-width: 480px) {
        .pending-text {
            font-size: 0.65rem !important;
        }
        
        .pending-requests-indicator {
            min-width: 95px !important;
        }
    }
    
    .badge-container {
        align-self: stretch !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
    }
    
    .class-details-grid-new {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 1rem !important;
    }
    
    .detail-card {
        padding: 8px 6px !important;
        font-size: 0.75rem !important;
    }
    
    .detail-value {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
    }
    
    .detail-label {
        font-size: 0.7rem !important;
    }
    
    .class-buttons-bottom-right {
        display: flex !important;
        gap: 0.5rem !important;
        margin-top: 0.75rem !important;
        flex-wrap: wrap !important;
    }
    
    .btn-small {
        flex: 1 !important;
        min-width: 120px !important;
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .class-card-tutor {
        padding: 0.75rem !important;
    }
    
    .class-title-main {
        font-size: 1rem !important;
    }
    
    .class-tags-row {
        gap: 4px !important;
    }
    
    .class-tags-row .subject-tag {
        font-size: 0.7rem !important;
        padding: 3px 6px !important;
    }
    
    .class-tags-row .target-year-pill {
        font-size: 0.6rem !important;
        padding: 2px 4px !important;
    }
    
    .boxes-container {
        flex-direction: row !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }
    
    .enrollment-display, .pending-requests-indicator {
        text-align: center !important;
        padding: 0.5rem 0.4rem !important;
        flex: 1 !important;
        min-width: 85px !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        hyphens: none !important;
        word-break: keep-all !important;
    }
    
    .detail-card {
        padding: 6px 4px !important;
    }
    
    .detail-value {
        font-size: 0.8rem !important;
    }
    
    .detail-label {
        font-size: 0.65rem !important;
    }
    
    .btn-small {
        min-width: 100px !important;
        font-size: 0.75rem !important;
        padding: 6px 8px !important;
    }
}

.target-years-display {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Filter Note Styling */
.filter-note {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid rgba(139, 21, 56, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #555;
}

.filter-note a {
    color: #8B1538;
    text-decoration: none;
    font-weight: 600;
}

.filter-note a:hover {
    text-decoration: underline;
}

.language-checkboxes input[type="checkbox"]:hover,
.subject-checkboxes input[type="checkbox"]:hover,
.subject-options input[type="checkbox"]:hover {
    border-color: #8B1538;
    box-shadow: 0 0 5px rgba(169, 27, 71, 0.3);
}



/* Remove custom scrollbar styling */
.language-checkboxes::-webkit-scrollbar,
.subject-checkboxes::-webkit-scrollbar {
    width: auto;
}

.language-checkboxes::-webkit-scrollbar-track,
.subject-checkboxes::-webkit-scrollbar-track {
    background: transparent;
}

.language-checkboxes::-webkit-scrollbar-thumb,
.subject-checkboxes::-webkit-scrollbar-thumb {
    background: transparent;
}

.language-checkboxes::-webkit-scrollbar-thumb:hover,
.subject-checkboxes::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Optimized mobile navigation */
@media (max-width: 768px) {
    .navbar {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        right: 12px;
        height: 58px; /* Increased to prevent border clipping */
        padding: 9px 11px;
        border-radius: 18px;
    }
    
    .bottom-nav-tabs {
        padding: 1px 3px; /* Minimal padding to show borders */
        gap: 4px;
        height: 100%;
        justify-content: space-evenly;
        overflow: visible;
    }
    
    .bottom-tab-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
        min-width: 44px; /* Touch target minimum */
        min-height: 40px;
        border-radius: 14px;
        flex: 1;
        max-width: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profile-section {
        padding: 20px;
        margin: 10px;
    }
    
    .profile-header-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .profile-status-pill {
        align-self: flex-start;
        min-width: auto;
    }
    
    .language-checkboxes,
    .subject-checkboxes {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .navbar {
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        left: 8px;
        right: 8px;
        height: 54px; /* Increased to prevent border clipping */
        padding: 7px 9px;
        border-radius: 16px;
    }
    
    .bottom-nav-tabs {
        gap: 2px;
        padding: 1px 2px; /* Minimal padding to show borders */
        overflow: visible;
    }
    
    .bottom-tab-btn {
        font-size: 0.65rem;
        padding: 4px 6px;
        min-width: 38px;
        min-height: 36px;
        flex: 1;
        max-width: 90px;
        border-radius: 12px;
    }
    
    #tutorBottomTabs {
        max-height: 52px;
        gap: 2px;
        padding: 0 4px;
    }
    
    #tutorBottomTabs .bottom-tab-btn {
        padding: 6px 6px;
        font-size: 0.65rem;
        min-width: 55px;
        border-radius: 14px;
    }
}

/* Auth buttons should be visible */
#authButtons {
    display: flex !important;
    gap: 1rem;
}

#authButtons button {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #8B1538;
    color: white;
}

.btn-secondary {
    background: #f1f1f1;
    color: #333;
}

.btn-info {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-warning {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-info:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-warning:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

@media (max-width: 768px) {
    .navbar-header {
        padding: 0.75rem 1rem;
        margin: 10px;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-brand {
        flex-shrink: 0;
        order: -1;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
        margin: 0;
    }
}

.nav-brand h1 {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.nav-brand {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 65px;
        max-width: 150px;
    }
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px; /* Prevents iOS zoom */
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    min-height: 48px; /* Better touch target */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #7A1230, #9A1B3F);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #8B1538;
    border: 2px solid #8B1538;
    padding: 10px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    transform: translateY(-1px);
}

.btn-large {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.btn-large:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Landing Page */
.landing-section {
    background: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Auth Container */
.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(139, 21, 56, 0.15);
    border: 1px solid rgba(139, 21, 56, 0.1);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1.5rem;
        margin: 0 16px;
        max-width: calc(100% - 32px);
        border-radius: 16px;
    }
    
    .subjects-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 8px;
    }
    
    .semester-box {
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .subject-options.expanded {
        max-height: 200px;
    }
    
    .subjects-grid {
        max-height: 200px;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(139, 21, 56, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: #8B1538;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-tab-btn.active {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.3);
}

.auth-form-section {
    animation: fadeIn 0.3s ease;
}

/* Session Type Toggle Styling */
.session-type-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(139, 21, 56, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.session-type-btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: #8B1538;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.session-type-btn.active {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.3);
}

.session-content {
    animation: fadeIn 0.3s ease;
}

.auth-form h3 {
    text-align: center;
    color: #8B1538;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.name-row {
    display: flex;
    gap: 1rem;
}

.name-row input {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below their minimum content size */
    width: 100%; /* Ensures full width within flex container */
    font-size: 16px; /* Prevents iOS zoom */
}

@media (max-width: 480px) {
    .name-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .auth-header h2 {
        font-size: 2rem;
    }
    
    .auth-header p {
        font-size: 1rem;
    }
    
    .auth-form h3 {
        font-size: 1.3rem;
    }
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links .btn-text {
    background: none;
    border: none;
    color: #8B1538;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.auth-links .btn-text:hover {
    color: #5a0e23;
}

.form-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.password-requirements {
    margin-top: 0.5rem;
}

.password-requirements small {
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.admin-hint {
    text-align: center;
    margin-top: 1rem;
    padding: 10px;
    background: rgba(139, 21, 56, 0.05);
    border-radius: 8px;
}

.admin-hint small {
    color: #8B1538;
    font-weight: 500;
}

/* Navbar User Actions */
.user-actions-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-welcome-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.welcome-text {
    color: #8B1538;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.btn-logout {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-logout:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile responsive for user actions */
@media (max-width: 768px) {
    .user-welcome-section {
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .welcome-text {
        font-size: 0.85rem;
    }
    
    .user-role {
        font-size: 0.75rem;
    }
    
    .btn-logout {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .user-actions-container {
        gap: 0.75rem;
    }
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile-first modal responsive breakpoints */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 3% auto;
        padding: 1.5rem;
        border-radius: 16px;
        max-height: 85vh;
        min-height: auto;
    }
    
    .close {
        font-size: 28px;
        top: 12px;
        right: 16px;
        position: absolute;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.8);
        color: #8B1538;
        transition: all 0.2s ease;
    }
    
    .close:hover {
        background: #8B1538;
        color: white;
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .modal {
        padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    }
    
    .modal-content {
        width: calc(100vw - 20px);
        margin: 10px auto;
        padding: 1.25rem;
        border-radius: 12px;
        max-height: calc(100vh - 20px);
        min-height: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        animation: slideInMobile 0.3s ease;
    }
    
    .close {
        font-size: 24px;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        background: rgba(139, 21, 56, 0.1);
        color: #8B1538;
    }
}

@media (max-width: 375px) {
    .modal-content {
        width: calc(100vw - 16px);
        margin: 8px auto;
        padding: 1rem;
        border-radius: 8px;
        max-height: calc(100vh - 16px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInMobile {
    from { 
        transform: translateY(100px); 
        opacity: 0; 
        scale: 0.95; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
        scale: 1; 
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #e74c3c;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mobile-optimized form elements within modals */
@media (max-width: 768px) {
    .modal form {
        gap: 1rem;
        display: flex;
        flex-direction: column;
    }
    
    .modal h2, .modal h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        color: #8B1538;
        text-align: center;
    }
    
    .modal h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        color: #8B1538;
    }
    
    .modal p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        color: #333;
    }
    
    .modal .btn {
        padding: 14px 20px;
        font-size: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        min-height: 48px;
        font-weight: 600;
    }
    
    .modal input, .modal select, .modal textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 48px;
        border: 2px solid #e1e8ed;
        transition: border-color 0.2s ease;
    }
    
    .modal input:focus, .modal select:focus, .modal textarea:focus {
        border-color: #8B1538;
        outline: none;
        box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
    }
    
    .modal label {
        font-weight: 600;
        font-size: 0.95rem;
        color: #8B1538;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .modal form {
        gap: 0.75rem;
    }
    
    .modal h2, .modal h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .modal p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .modal .btn {
        padding: 12px 16px;
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }
    
    .modal input, .modal select, .modal textarea {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 44px;
    }
}
    
    .modal textarea {
        min-height: 80px;
    }
}

/* Enhanced mobile form styling */
@media (max-width: 768px) {
    .form-group {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .form-row {
        display: flex;
        flex-direction: column !important;
        gap: 1rem;
    }
}

/* Additional mobile styling for smaller screens */
@media (max-width: 480px) {
    .form-group {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        white-space: nowrap;
        line-height: 1.2;
    }
    
    .form-row {
        flex-direction: column !important;
        gap: 0.75rem;
    }
    
    .form-group.third-width {
        width: 100% !important;
        flex: none !important;
    }
}
    
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .form-actions .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .form-group {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-actions {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .form-actions .btn {
        padding: 12px 16px;
        font-size: 0.95rem;
        min-height: 44px;
    }
}

/* Mobile scrolling and overflow fixes */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on main containers */
    body {
        overflow-x: hidden;
    }
    
    /* Fix container overflows */
    .container, .main-content, .page-content {
        max-width: 100vw;
        overflow-x: hidden;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    
    /* Fix table overflows */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    /* Fix card container overflows */
    .cards-container {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Smooth scrolling for mobile */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .container, .main-content, .page-content {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .table-container {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
    }
    
    /* Ensure text doesn't cause overflow */
    h1, h2, h3, h4, h5, h6, p, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Comprehensive mobile grid fixes */
@media (max-width: 480px) {
    .admin-overview-grid,
    .analytics-grid,
    .classes-grid,
    .tutors-grid,
    .subjects-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 1rem;
    }
    
    /* Keep tutor stats horizontal on tablets */
    #tutorDashboard .header-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    
    #tutorDashboard .stat-card {
        padding: 12px 10px !important;
    }
    
    /* Other dashboards */
    .header-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .admin-overview-grid,
    .analytics-grid,
    .classes-grid,
    .tutors-grid,
    .subjects-grid {
        gap: 0.75rem !important;
        padding: 0 0.5rem;
    }
    
    /* Keep tutor stats horizontal but smaller */
    #tutorDashboard .header-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    
    /* Make tutor stat cards smaller */
    #tutorDashboard .stat-card {
        padding: 10px 8px !important;
        border-radius: 8px !important;
    }
    
    #tutorDashboard .stat-number {
        font-size: 1.5rem !important;
        margin-bottom: 4px;
    }
    
    #tutorDashboard .stat-label {
        font-size: 0.75rem !important;
        font-weight: 600;
        text-transform: uppercase;
        color: #666;
    }
    
    /* Other dashboards can remain single column */
    #studentDashboard .header-stats,
    #adminDashboard .header-stats {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* Ensure single column on very small screens */
    .grid, [class*="grid"], [class*="-grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile typography and spacing optimization */
@media (max-width: 768px) {
    /* Heading adjustments */
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }
    
    h4 {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }
    
    /* Paragraph and text adjustments */
    p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    /* Button improvements */
    .btn {
        padding: 12px 15px;
        font-size: 1rem;
        border-radius: 8px;
        min-height: 48px;
        font-weight: 600;
        letter-spacing: 0.025em;
    }
    
    .btn-large {
        padding: 16px 24px;
        font-size: 1.1rem;
        min-height: 52px;
    }
    
    .btn-small {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    /* Card content spacing */
    .card-content {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    /* List improvements */
    ul, ol {
        padding-left: 1.25rem;
        margin-bottom: 1rem;
    }
    
    li {
        margin-bottom: 0.4rem;
        line-height: 1.5;
    }
    
    /* Link improvements */
    a {
        text-decoration: none;
        color: #8B1538;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    a:hover, a:active {
        color: #A91B47;
        text-decoration: underline;
    }
}

@media (max-width: 480px) {
    /* Smaller screen adjustments */
    h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    h2 {
        font-size: 1.35rem;
        margin-bottom: 0.7rem;
    }
    
    h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .btn-large {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .card-content {
        padding: 1rem;
        gap: 0.6rem;
    }
    
    /* Tighter spacing for small screens */
    .section {
        margin-bottom: 1.5rem;
    }
    
    .component {
        margin-bottom: 0.75rem;
    }
}

input, select, textarea {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 48px; /* Better touch target */
    -webkit-tap-highlight-color: transparent;
}

input:focus, select:focus, textarea:focus {
    border-color: #8B1538;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

/* Password Toggle Styles */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: #8B1538;
}

.password-toggle-btn .eye-icon {
    width: 20px;
    height: 20px;
}

.password-toggle-btn.visible .eye-icon {
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Bio textarea specific fixes */
#editTutorBio {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    line-height: 1.5;
    resize: vertical;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    background-color: #ffffff;
    box-sizing: border-box;
}

#editTutorBio:focus {
    border-color: #8B1538;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

/* Mobile-specific bio textarea */
@media (max-width: 768px) {
    #editTutorBio {
        min-height: 150px;
        max-height: 250px;
        font-size: 16px;
        padding: 15px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap;
    }
    
    #editTutorBio:focus {
        transform: none;
        zoom: 1;
    }
}

/* Profile Setup */
.profile-setup {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-setup h3 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.subjects-section {
    margin: 1rem 0;
}

.subjects-section label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    color: #2c3e50;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.subjects-grid label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.subjects-grid label:hover {
    background-color: #f8f9fa;
}

.subjects-grid input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

/* Custom scrollbar for subjects grid */
.subjects-grid::-webkit-scrollbar {
    width: 8px;
}

.subjects-grid::-webkit-scrollbar-track {
    background: rgba(139, 21, 56, 0.15);
    border-radius: 4px;
}

.subjects-grid::-webkit-scrollbar-thumb {
    background: #8B1538;
    border-radius: 4px;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subjects-grid::-webkit-scrollbar-thumb:hover {
    background: #A91B47;
}

/* Dashboard */
.dashboard {
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 28px;
}

.user-details h1 {
    font-size: 24px;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-meta {
    color: #666;
    font-size: 14px;
}

.header-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    text-align: center;
}

/* Student dashboard with 2 cards positioned on the right */
#studentDashboard .header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    width: 100%;
    justify-items: center;
}

.header-stats .stat-card {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 21, 56, 0.1);
}

/* Ensure all dashboard stat cards are white with burgundy accents */
.dashboard-header .stat-card {
    background: rgba(255, 255, 255, 0.95) !important;
}

.pending-stats .stat-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(139, 21, 56, 0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #8B1538;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-tabs {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #666;
    font-size: 14px;
}

.tab-btn:hover {
    color: #8B1538;
    background: rgba(139, 21, 56, 0.1);
}

.tab-btn.active {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

/* Section Tabs for Upcoming Sessions */
.section-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.section-tab {
    padding: 10px 20px;
    border: none;
    background: rgba(139, 21, 56, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #8B1538;
    font-size: 14px;
}

.section-tab:hover {
    background: rgba(139, 21, 56, 0.2);
}

.section-tab.active {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(139, 21, 56, 0.3);
}

.upcoming-section {
    margin-top: 10px;
}

/* Students Modal Styles */
.students-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.enrolled-students-modal h4 {
    color: #8B1538;
    margin-bottom: 20px;
    text-align: center;
}

.students-section {
    margin-bottom: 25px;
}

.students-section h5 {
    color: #8B1538;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

.students-list {
    list-style: none;
    padding: 0;
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(139, 21, 56, 0.05);
    border-radius: 8px;
    border-left: 4px solid #8B1538;
}

.student-item.pending {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.student-meta {
    color: #666;
    font-size: 0.9rem;
}

.enrollment-date {
    color: #666;
    font-size: 0.85rem;
}

.modal-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
}

.class-actions {
    margin-top: 15px;
    text-align: center;
}

.tab-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 600px;
    animation: fadeInUp 0.4s ease;
}

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

/* Cards - Desktop view */
.classes-grid, .tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Desktop - keep multi-column layout */
@media (min-width: 1025px) {
    .classes-grid, .tutors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet view */
@media (min-width: 481px) and (max-width: 1024px) {
    .classes-grid, .tutors-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile view */
@media (max-width: 480px) {
    .classes-grid, .tutors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
        padding: 0 0.5rem;
    }
}

.class-card, .tutor-card, .booking-card, .user-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

/* Mobile-optimized cards */
@media (max-width: 480px) {
    .class-card, .tutor-card, .booking-card, .user-card {
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .class-title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .class-header {
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .class-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .class-details {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .class-actions {
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .class-actions .btn {
        font-size: 0.85rem;
        padding: 8px 14px;
        flex: 1;
        min-width: 120px;
    }
}

.class-card:hover, .tutor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* New Class Card Styles */
.class-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.class-title-section {
    flex: 1;
}

.class-title {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.class-tutor {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.class-enrollment-section {
    display: flex;
    align-items: center;
}

.enroll-btn {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

.enrollment-status {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.enrollment-status.enrolled {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.enrollment-status.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.enrollment-status.full {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-icon {
    font-weight: bold;
    font-size: 1rem;
}

.class-main-info {
    margin-bottom: 1rem;
}

.class-subject {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.class-datetime {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
    font-weight: 500;
}

.class-meta-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.meta-item {
    color: #666;
    font-size: 0.9rem;
}

.meta-item strong {
    color: #8B1538;
    font-weight: 700;
}

.class-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

/* Legacy styles for backward compatibility */
.class-card h5, .tutor-card h5, .booking-card h5, .user-card h5 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.class-card p, .tutor-card p, .booking-card p, .user-card p {
    margin-bottom: 0.5rem;
    color: #555;
}

.class-card strong, .tutor-card strong, .booking-card strong, .user-card strong {
    color: #8B1538;
    font-weight: 600;
}

/* Booking Lists */
.bookings-list, .schedule-list, .users-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.classes-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Responsive grid for classes list */
@media (max-width: 1199px) {
    .classes-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .classes-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.admin-booking {
    border-left: 4px solid #e74c3c;
}

/* Form Sections */
.form-section {
    background: 
        linear-gradient(rgba(139, 21, 56, 0.08), rgba(139, 21, 56, 0.05)),
        rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

.form-section h5 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Horizontal Class Enrollment Pending Requests */
.class-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B1538, #a91d47);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.class-avatar .avatar-initials {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.class-info-horizontal {
    flex: 1;
    min-width: 0;
}

.class-name-horizontal {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.class-details-horizontal {
    font-size: 0.85rem;
    color: #666;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.class-location-horizontal {
    font-size: 0.8rem;
    color: #8B1538;
    font-weight: 500;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile responsive adjustments for horizontal pending requests */
@media (max-width: 768px) {
    .class-details-horizontal,
    .class-location-horizontal {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .class-name-horizontal {
        font-size: 0.95rem;
    }
    
    .class-details-horizontal {
        font-size: 0.8rem;
    }
    
    .class-location-horizontal {
        font-size: 0.75rem;
    }
}

/* Form Layout Improvements */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group.half-width {
    flex: 1;
}

.form-group.third-width {
    flex: 1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(139, 21, 56, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23999" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Availability Calendar */
.availability-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pricing-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pricing-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.availability-calendar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hide mobile calendar on desktop */
.mobile-calendar {
    display: none;
}

.calendar-wrapper {
    overflow-x: auto;
    padding-bottom: 1rem;
}

.availability-help {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.weekly-schedule {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    min-width: 800px;
}

@media (max-width: 1024px) {
    .calendar-wrapper {
        overflow-x: auto;
    }
    
    .weekly-schedule {
        min-width: 900px;
    }
}

@media (max-width: 480px) {
    .availability-calendar {
        padding: 0.5rem;
        margin: 0;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .calendar-wrapper {
        overflow: visible;
        padding: 0;
    }
    
    .weekly-schedule {
        display: none !important;
    }
    
    .week-navigation {
        display: none !important;
    }
    
    .availability-help {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile-First Outlook-style Calendar */
    .availability-calendar::after {
        content: "";
        display: block;
        position: relative;
    }
    
    .mobile-calendar {
        display: block !important;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
        margin-top: 1rem;
    }
    
    .mobile-calendar-header {
        background: linear-gradient(135deg, #8B1538, #A91B47);
        color: white;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-calendar-nav {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .mobile-nav-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
    
    .mobile-current-day {
        text-align: center;
        flex: 1;
    }
    
    .mobile-day-name {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .mobile-day-date {
        font-size: 0.9rem;
        opacity: 0.9;
    }
    
    .mobile-time-slots {
        padding: 0;
        background: #fff;
    }
    
    .mobile-time-slot {
        display: flex;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #f1f1f1;
        cursor: pointer;
        transition: all 0.15s ease;
        position: relative;
        min-height: 60px;
    }
    
    .mobile-time-slot:last-child {
        border-bottom: none;
    }
    
    .mobile-time-slot:active {
        transform: scale(0.98);
        background: rgba(139, 21, 56, 0.05);
    }
    
    .mobile-time-label {
        font-size: 1rem;
        font-weight: 500;
        color: #374151;
        min-width: 80px;
        margin-right: 1rem;
    }
    
    .mobile-time-status {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-availability-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #e5e7eb;
        transition: all 0.2s ease;
    }
    
    .mobile-time-slot.available .mobile-availability-indicator {
        background: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }
    
    .mobile-time-slot.selected .mobile-availability-indicator {
        background: #8B1538;
        box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.2);
    }
    
    .mobile-time-slot.booked .mobile-availability-indicator {
        background: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }
    
    .mobile-time-slot.class-slot .mobile-availability-indicator {
        background: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }
    
    .mobile-time-slot.available {
        background: rgba(16, 185, 129, 0.02);
        border-left: 3px solid #10b981;
    }
    
    .mobile-time-slot.selected {
        background: rgba(139, 21, 56, 0.05);
        border-left: 3px solid #8B1538;
    }
    
    .mobile-time-slot.booked {
        background: rgba(239, 68, 68, 0.02);
        border-left: 3px solid #ef4444;
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    .mobile-time-slot.class-slot {
        background: rgba(37, 99, 235, 0.02);
        border-left: 3px solid #2563eb;
        cursor: not-allowed;
    }
    
    .mobile-status-text {
        font-size: 0.9rem;
        color: #6b7280;
        font-weight: 500;
    }
    
    .mobile-time-slot.available .mobile-status-text {
        color: #10b981;
    }
    
    .mobile-time-slot.selected .mobile-status-text {
        color: #8B1538;
    }
    
    .mobile-time-slot.booked .mobile-status-text {
        color: #ef4444;
    }
    
    .mobile-time-slot.class-slot .mobile-status-text {
        color: #2563eb;
        font-weight: 600;
    }
    
    /* Daily calendar mobile optimization */
    .daily-calendar {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(139, 21, 56, 0.2) !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        margin: 0.5rem !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .calendar-navigation {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .calendar-nav-buttons {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .current-date {
        order: -1 !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #8B1538 !important;
        padding: 0.5rem 0 !important;
    }
    
    .nav-arrow {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }
    
    .time-slots-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        gap: 0.75rem !important;
        margin-top: 1rem !important;
    }
    
    .daily-calendar .schedule-slot {
        padding: 1rem 0.75rem !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        text-align: center !important;
        transition: all 0.2s ease !important;
        border: 1px solid rgba(139, 21, 56, 0.2) !important;
        background: rgba(255, 255, 255, 0.8) !important;
    }
}

.time-column, .day-column {
    display: flex;
    flex-direction: column;
}

.time-header {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    padding: 12px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.weekly-schedule .time-slot {
    background: #f8f9fa;
    padding: 15px 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #e5e7eb;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 1px 0;
    min-height: 60px;
}

.weekly-schedule .schedule-slot {
    background: #ffffff;
    height: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.schedule-slot:hover {
    background: rgba(139, 21, 56, 0.1);
}

.schedule-slot.available {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.schedule-slot.available::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 14px;
}

.schedule-slot.booked {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    cursor: not-allowed;
}

.schedule-slot.class-slot {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    cursor: not-allowed;
}


.availability-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile-optimized availability legend */
@media (max-width: 480px) {
    .availability-legend {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .legend-color {
        width: 16px;
        height: 16px;
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available {
    background: linear-gradient(135deg, #10b981, #059669);
}

.legend-color.booked {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.legend-color.class {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.legend-color.unavailable {
    background: #ffffff;
    border: 2px solid #e5e7eb;
}

.availability-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tutor Card Enhancements */
.tutor-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Mobile-optimized tutor headers and cards */
@media (max-width: 480px) {
    .tutor-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .tutor-avatar-small {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .tutor-info h5 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .tutor-badges {
        gap: 0.25rem;
    }
    
    .tutor-badges .badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

.tutor-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.tutor-info h5 {
    margin-bottom: 5px;
}

.tutor-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tutor-details {
    margin-bottom: 15px;
}

.tutor-bio {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.availability-preview {
    background: rgba(139, 21, 56, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.availability-preview h6 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 600;
}

.time-slots-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}

.time-slot-preview {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.more-slots {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.no-slots {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Schedule Modal */
.schedule-modal {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.schedule-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-header {
    background: rgba(30, 58, 138, 0.05);
    padding: 20px;
    border-radius: 12px;
}

.tutor-schedule-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tutor-avatar-modal {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 28px;
}

.tutor-details-modal h4 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.modal-schedule-grid {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

/* Mobile-optimized schedule grid */
@media (max-width: 480px) {
    .modal-schedule-grid {
        grid-template-columns: 60px repeat(7, 1fr);
        gap: 0.5px;
        border-radius: 8px;
        font-size: 0.7rem;
    }
    
    .schedule-slot {
        min-height: 25px;
        padding: 2px;
        font-size: 0.6rem;
    }
    
    .time-label {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
}

.modal-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.legend-color.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Upcoming Sessions */
.upcoming-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid #8B1538;
    background: white;
    color: #8B1538;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Enhanced time displays for better distinction */
.session-timing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.prominent-time {
    font-size: 1.2rem;
    font-weight: 600;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    padding: 4px 8px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.prominent-date {
    font-size: 0.95rem;
    font-weight: 500;
    color: #7f1d1d;
    line-height: 1;
    padding: 2px 6px;
    background: rgba(127, 29, 29, 0.05);
    border-radius: 4px;
}

.session-card.today .prominent-time {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.15);
    border-color: rgba(185, 28, 28, 0.3);
    box-shadow: 0 2px 4px rgba(185, 28, 28, 0.1);
}

.session-card.today .prominent-date {
    color: #7f1d1d;
    background: rgba(127, 29, 29, 0.1);
}

/* Session type pills */
.session-type-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.private-pill {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    box-shadow: 0 2px 4px rgba(139, 21, 56, 0.2);
}

.group-pill {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.subject-pill {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    box-shadow: 0 2px 4px rgba(139, 21, 56, 0.2);
}

.pending-pill {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.cost-pill {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

/* Clean Pending Class Card Design */
.pending-class-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.pending-class-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.card-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.class-title-clean {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.status-pill-pending {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Details Grid */
.card-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.detail-box {
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.detail-value-large {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.3rem;
    line-height: 1;
}

.detail-label-small {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Footer */
.card-footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.info-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pending-class-card {
        padding: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .card-header-clean {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .class-title-clean {
        font-size: 1.1rem;
    }
    
    .status-pill-pending {
        align-self: flex-start;
    }
    
    .card-details-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .detail-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 6px;
    }
    
    .detail-value-large {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    
    .detail-label-small {
        font-size: 0.65rem;
    }
}

/* Student Pending Cards - Compact Design */
.student-pending-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.student-pending-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 21, 56, 0.15);
}

/* Card Header */
.card-header-student {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

/* Status Pills - Mobile First Design */
.status-pill, .countdown-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.3rem 0.6rem !important;
    border-radius: 16px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0.25rem 0 0 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Badge Container for Pills - Top Right Positioning */
.badge-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    min-width: max-content !important;
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Card Header Positioning */
.card-header-student {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    position: relative;
}

/* Card positioning for all card types */
.student-pending-card, .class-card, .class-card-tutor, .tutor-card {
    position: relative;
}

/* Tutor card header similar to student */
.class-card .class-header, .class-card-tutor .class-header, .class-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

/* Apply student-style header to tutor cards */
.class-card-tutor .class-header-new.card-header-student {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 1.5rem !important;
    gap: 1rem !important;
    position: relative !important;
}

/* Ensure class-info-main doesn't interfere with pills */
.class-info-main {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

/* Completed Status */
.status-pill.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Cancelled Status */
.status-pill.cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Today Countdown - Urgent */
.countdown-pill.today {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.4);
    animation: pulseToday 2s infinite;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

/* Soon Countdown - Moderate */
.countdown-pill.soon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Later Countdown - Low Priority */
.countdown-pill.later {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15), rgba(75, 85, 99, 0.1));
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Enhanced pulse animation */
@keyframes pulseToday {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.02);
    }
}

/* Mobile optimization - Fix pill display */
@media (max-width: 767px) {
    .card-header-student {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
        display: flex !important;
    }
    
    .class-info-main {
        flex: 1 !important;
        min-width: 0 !important;
        padding-right: 0.5rem !important;
    }
    
    .badge-container {
        flex-shrink: 0 !important;
        align-self: flex-start !important;
        margin-top: 0 !important;
        gap: 0.3rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        min-width: max-content !important;
    }
    
    .status-pill, .countdown-pill {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.6rem !important;
        border-radius: 14px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        flex-shrink: 0 !important;
    }
    
    .class-name-large {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .tutor-name-sub {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    /* Ensure card containers don't interfere */
    .student-pending-card, .class-card, .class-card-tutor, .tutor-card {
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Mobile tutor card header styling */
    .class-card-tutor .class-header-new.card-header-student {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .class-card-tutor .class-info-main {
        flex: 1 !important;
        min-width: 0 !important;
        padding-right: 0.5rem !important;
    }
    
    .class-card-tutor .badge-container {
        flex-shrink: 0 !important;
        align-self: flex-start !important;
        margin-top: 0 !important;
        gap: 0.3rem !important;
    }
    
    /* Ensure request type badges are visible */
    .request-type-badge {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .card-header-student {
        gap: 0.5rem !important;
    }
    
    .class-info-main {
        padding-right: 0.3rem !important;
    }
    
    .badge-container {
        gap: 0.2rem !important;
    }
    
    .status-pill, .countdown-pill {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 12px !important;
    }
    
    .class-name-large {
        font-size: 1rem !important;
    }
    
    .tutor-name-sub {
        font-size: 0.8rem !important;
    }
}

/* Tablet breakpoint */
@media (min-width: 768px) {
    .status-pill, .countdown-pill {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
    
    .badge-container {
        gap: 0.4rem;
        align-items: flex-end;
        justify-content: flex-start;
    }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
    .status-pill, .countdown-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
        border-radius: 18px;
    }
    
    .status-pill:hover, .countdown-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Large screen optimization */
@media (min-width: 1440px) {
    .badge-container {
        gap: 0.75rem;
    }
    
    .status-pill, .countdown-pill {
        font-size: 0.8rem;
        padding: 0.45rem 0.95rem;
    }
}

.class-info-main {
    flex: 1;
}

.badge-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.class-name-large {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8B1538;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.tutor-name-sub {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.class-description {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.description-link {
    color: #8B1538;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.description-link:hover {
    text-decoration: underline;
}

/* Card Info Boxes - Enhanced for perfect alignment */
.card-info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.info-box {
    background: rgba(139, 21, 56, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(139, 21, 56, 0.1);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.info-box:hover {
    background: rgba(139, 21, 56, 0.08);
    border-color: rgba(139, 21, 56, 0.2);
    transform: translateY(-2px);
}

/* Tablet responsive - maintain horizontal layout */
@media (max-width: 1024px) and (min-width: 769px) {
    .card-info-boxes {
        gap: 0.875rem;
    }
    
    .info-box {
        padding: 0.875rem;
        min-height: 75px;
    }
    
    .info-box-label {
        font-size: 0.75rem;
    }
    
    .info-box-value {
        font-size: 0.95rem;
    }
}

.info-box-label {
    font-size: 0.7rem;
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-box-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 4px;
}

/* Card Delivery Info */
.card-delivery-info {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.delivery-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.delivery-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-label,
.location-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.delivery-value,
.location-value {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

/* Card Details - Fallback */
.card-details-student {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.detail-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    text-align: right;
}

/* Card Footer */
.card-footer-student {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.review-btn {
    background: #059669 !important;
    border-color: #059669 !important;
}

.review-btn:hover {
    background: #047857 !important;
    border-color: #047857 !important;
}

.approve-btn {
    background: #059669 !important;
    border-color: #059669 !important;
}

.approve-btn:hover {
    background: #047857 !important;
    border-color: #047857 !important;
}

.enrolled-date {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.btn-cancel-compact {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel-compact:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-collected {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-collected:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-collected.collected {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.btn-collected.collected:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-collected-student {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.btn-collected-student:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.4);
}

.btn-collected-student.collected {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    box-shadow: 0 2px 4px rgba(31, 41, 55, 0.3);
}

.btn-collected-student.collected:hover {
    background: linear-gradient(135deg, #111827, #0f172a);
    box-shadow: 0 4px 8px rgba(31, 41, 55, 0.5);
}

/* Mobile Responsive for Student Cards */
@media (max-width: 768px) {
    .student-pending-card {
        padding: 1.25rem;
        margin: 0.75rem 0 1rem 0;
    }
    
    .card-header-student {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .class-name-large {
        font-size: 1.2rem;
    }
    
    .request-type-badge.class-request {
        align-self: flex-start;
    }
    
    /* Mobile info boxes - Keep horizontal layout */
    .card-info-boxes {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .info-box {
        padding: 0.75rem 0.5rem;
        min-height: 60px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .info-box-label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        color: #8B1538;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .info-box-value {
        font-size: 1rem;
        text-align: center;
        color: #2c3e50;
        font-weight: 700;
        line-height: 1.2;
    }
    
    /* Mobile delivery info */
    .card-delivery-info {
        padding: 0.75rem;
    }
    
    /* Mobile footer buttons */
    .footer-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.4rem;
        justify-content: flex-end;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .btn-cancel-compact, .btn-collected, .btn-collected-student {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 90px;
        flex: 1;
        max-width: 150px;
    }
}

/* Extra small screens - FORCE horizontal layout with flexbox */
@media (max-width: 480px) {
    .card-info-boxes {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.1rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        overflow: hidden !important;
        justify-content: space-between !important;
    }
    
    .info-box {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.6rem 0.4rem !important;
        min-height: 65px !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .info-box-label {
        font-size: 0.45rem !important;
        margin-bottom: 0.05rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        line-height: 1 !important;
    }
    
    .info-box-value {
        font-size: 0.55rem !important;
        line-height: 0.9 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        font-weight: 700 !important;
    }
}

/* Even more aggressive for very small screens */
@media (max-width: 400px) {
    .card-info-boxes {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.05rem !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    .info-box {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.5rem 0.3rem !important;
        min-height: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .info-box-label {
        font-size: 0.65rem !important;
    }
    
    .info-box-value {
        font-size: 1.2rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }
    
    /* Force larger fonts on mobile with maximum specificity */
    .student-pending-card .card-info-boxes .info-box .info-box-value {
        font-size: 1.2rem !important;
        font-weight: 800 !important;
    }
    
    .student-pending-card .card-info-boxes .info-box .info-box-label {
        font-size: 0.75rem !important;
        font-weight: 700 !important;
    }
}

/* Ultimate fallback for tiny screens */
@media (max-width: 375px) {
    .card-info-boxes {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.03rem !important;
        justify-content: space-between !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .info-box {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.5rem 0.2rem !important;
        min-height: 58px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    
    .info-box-label {
        font-size: 0.6rem !important;
        color: #7f8c8d !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
    }
    
    .info-box-value {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: #2c3e50 !important;
    }
}

/* Final override for super tiny screens */
@media (max-width: 360px) {
    .card-info-boxes {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.02rem !important;
        justify-content: space-between !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .info-box {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.4rem 0.2rem !important;
        min-height: 55px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .info-box-label {
        font-size: 0.6rem !important;
    }
    
    .info-box-value {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }
    
    /* Force larger fonts with maximum specificity */
    .student-pending-card .card-info-boxes .info-box .info-box-value {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
    }
    
    .student-pending-card .card-info-boxes .info-box .info-box-label {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
    }
}

/* NUCLEAR OPTION - Force horizontal layout no matter what */
@media (max-width: 320px) {
    .card-info-boxes {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.01rem !important;
        justify-content: space-between !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .info-box {
        flex: 1 1 33.333% !important;
        min-width: 0 !important;
        width: 33.333% !important;
        padding: 0.4rem 0.15rem !important;
        min-height: 52px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-align: center !important;
    }
    
    .info-box-label {
        font-size: 0.65rem !important;
        line-height: 0.8 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
    }
    
    .info-box-value {
        font-size: 1rem !important;
        font-weight: 800 !important;
        line-height: 0.8 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        font-weight: 700 !important;
    }
}
    
    .delivery-method,
    .delivery-location {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .delivery-label,
    .location-label {
        font-size: 0.8rem;
    }
    
    .delivery-value,
    .location-value {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .detail-row {
        padding: 0.5rem 0;
    }
    
    .card-footer-student {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .btn-cancel-compact, .btn-collected, .btn-collected-student {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        min-width: 85px;
        flex: 1;
        max-width: 140px;
        text-align: center;
    }
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

/* Session action buttons */
.session-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-cancel-session {
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-complete-session {
    padding: 8px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-cancel-session:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-complete-session:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Mobile-optimized filters and lists */
@media (max-width: 480px) {
    .upcoming-filter {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .upcoming-filter button {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .session-card {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .session-card h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .session-card p {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #8B1538;
    background: transparent;
    color: #8B1538;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
}

.filter-btn:hover {
    background: rgba(139, 21, 56, 0.1);
}

.filter-btn.active:hover {
    background: linear-gradient(45deg, #7A1230, #9A1B3F);
}

.upcoming-sessions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.session-card:hover {
    transform: translateY(-2px);
}

.session-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.session-info h5 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.session-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fbbf24;
    color: #1f2937;
    font-weight: 600;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.session-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.session-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Admin Styles */
.pending-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pending-bookings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-booking-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f59e0b;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-priority {
    display: flex;
    align-items: center;
    gap: 10px;
}

.priority-high {
    color: #dc2626;
    font-weight: bold;
}

.priority-medium {
    color: #f59e0b;
    font-weight: bold;
}

.priority-low {
    color: #059669;
    font-weight: bold;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-approve {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-approve:hover {
    background: linear-gradient(45deg, #059669, #047857);
    transform: translateY(-1px);
}

.btn-reject {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

/* Admin Dashboard Enhancements */
.admin-dashboard-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

.admin-section-header h4 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.admin-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 21, 56, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B1538;
    margin: 0;
}

.admin-card-meta {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.admin-card-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.admin-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8B1538;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-info-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* Overview Grid */
.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.admin-overview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 21, 56, 0.1);
}

.admin-overview-card h5 {
    color: #8B1538;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-overview-card h5::before {
    content: '📊';
    font-size: 1.4rem;
}

/* Export Section Styles */
.export-info-section {
    margin-top: 20px;
}

.export-info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #721c24;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.export-info-card h5 {
    color: #721c24;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.export-info-card p {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.export-info-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.export-info-card ul li {
    color: #333;
    margin: 8px 0;
    line-height: 1.4;
}

.export-info-card ul li strong {
    color: #721c24;
}

.export-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.export-btn:hover {
    background: linear-gradient(135deg, #8b2635, #721c24) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 28, 36, 0.3);
    transition: all 0.3s ease;
}

/* Filter Controls Enhancement */
.admin-filter-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 21, 56, 0.1);
}

/* New compact search and filter layout */
.admin-search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.admin-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    padding: 10px 40px 10px 12px;
    font-size: 0.9rem;
    color: #333;
    transition: border-color 0.2s ease;
}

.admin-search-input:focus {
    border-color: #8B1538;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(139, 21, 56, 0.6);
    pointer-events: none;
}

/* Filter dropdown */
.filter-dropdown-container {
    position: relative;
}

.filter-dropdown-btn {
    background: rgba(139, 21, 56, 0.1);
    border: 2px solid rgba(139, 21, 56, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #8B1538;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-dropdown-btn:hover {
    background: rgba(139, 21, 56, 0.15);
    border-color: #8B1538;
}

.filter-count {
    background: #8B1538;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.filter-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    padding: 15px;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #8B1538;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.filter-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: #333;
}

.filter-group select:focus {
    border-color: #8B1538;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.1);
}

.filter-actions {
    border-top: 1px solid rgba(139, 21, 56, 0.1);
    padding-top: 10px;
}

/* Legacy filter controls (still used in other admin sections) */
.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-controls select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #333;
    min-width: 150px;
}

.filter-controls select:focus {
    border-color: #8B1538;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

/* Dual Lists Layout for Admin Users */
.admin-dual-lists-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.admin-list-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(139, 21, 56, 0.1);
    min-height: 600px;
}

.admin-list-section .admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

.admin-list-section .admin-section-header h4 {
    margin: 0;
    color: #8B1538;
    font-size: 1.4rem;
    font-weight: 600;
}

.user-count {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.users-list {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.user-card {
    background: white;
    border: 1px solid rgba(139, 21, 56, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-card:hover {
    border-color: #8B1538;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.15);
}

.user-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-mini {
    width: 35px;
    height: 35px;
    background: #8B1538;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-details h6 {
    margin: 0 0 4px 0;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.user-details .user-email {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.user-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-student {
    background: #e3f2fd;
    color: #1976d2;
}

.role-tutor {
    background: #f3e5f5;
    color: #7b1fa2;
}

.user-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.user-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(139, 21, 56, 0.05);
    border-radius: 6px;
}

.user-stat-value {
    font-weight: 600;
    color: #8B1538;
    font-size: 1.1rem;
}

.user-stat-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.user-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.ban-btn {
    background: #dc3545;
    color: white;
}

.ban-btn:hover {
    background: #c82333;
}

.unban-btn {
    background: #28a745;
    color: white;
}

.unban-btn:hover {
    background: #218838;
}

.pagination-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
}

.pagination-info {
    margin-top: 8px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive design for dual lists */
@media (max-width: 1200px) {
    .admin-dual-lists-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-list-section {
        min-height: auto;
    }
}

/* Activity Feed Enhancement */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #8B1538;
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 21, 56, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.activity-meta {
    font-size: 0.85rem;
    color: #666;
}

/* Stats Enhancement */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.admin-stat-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(139, 21, 56, 0.1);
}

.admin-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8B1538;
    margin-bottom: 5px;
}

.admin-stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Analytics Dashboard */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.analytics-card h5 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.chart-placeholder {
    background: rgba(139, 21, 56, 0.05);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Revenue Stats */
.revenue-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.revenue-stats .stat-card {
    background: linear-gradient(135deg, #8B1538 0%, #A91B47 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .navbar-header {
        flex-direction: row;
        gap: 0.5rem;
        text-align: left;
        margin: 10px;
        padding: 0.75rem 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 15px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .header-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    #studentDashboard .header-stats {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        justify-items: stretch;
    }
    
    /* Preserve responsive grid for classes/tutors on tablets */
    .classes-grid, .tutors-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .dashboard-tabs {
        justify-content: center;
        padding: 15px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .weekly-schedule {
        grid-template-columns: 80px repeat(7, 1fr);
        font-size: 0.8rem;
    }
    
    .time-header, .day-header {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    
    .weekly-schedule .time-slot {
        padding: 12px 4px;
        font-size: 0.8rem;
        height: 60px;
        min-height: 60px;
    }
    
    .schedule-slot {
        height: 60px;
        min-height: 60px;
    }
    
    .availability-calendar {
        padding: 1rem;
    }
    
    .availability-legend {
        gap: 1rem;
    }
    
    .revenue-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .classes-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .classes-header .btn-primary {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .header-stats {
        grid-template-columns: 1fr;
    }
    
    #studentDashboard .header-stats {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }
    
    .stat-card {
        padding: 8px 6px !important;
        min-width: 0 !important;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    #studentDashboard .header-stats {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
    }
    
    .stat-card {
        padding: 6px 4px !important;
    }
    
    .stat-number {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .revenue-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .user-details h1 {
        font-size: 18px;
    }
    
    .user-meta {
        font-size: 12px;
    }
    
    .weekly-schedule {
        grid-template-columns: 60px repeat(3, 1fr);
        overflow-x: auto;
    }
    
    .availability-actions {
        flex-direction: column;
    }
}

/* Loading and Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.empty-state h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #f59e0b;
    color: white;
    font-weight: 600;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.commission-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.commission-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.meeting-area-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.meeting-area-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8B1538;
    font-weight: 600;
}

.meeting-area-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.meeting-area-input:focus {
    outline: none;
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.meeting-area-display {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(139, 21, 56, 0.05);
    border-radius: 8px;
    border-left: 4px solid #8B1538;
}

.meeting-area-display p {
    margin: 0;
    color: #666;
}

.commission-collected {
    border-left: 4px solid #22c55e;
}

.commission-badge {
    background: #22c55e;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.commission-amount {
    background: #8B1538;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
}

.session-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.complete-job-btn {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-job-btn:hover {
    background: linear-gradient(45deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #22c55e;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.history-info h5 {
    color: #8B1538;
    margin-bottom: 0.5rem;
}

.history-info p {
    margin: 0.25rem 0;
    color: #666;
}

.history-date {
    background: #22c55e;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.history-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.history-details p {
    margin: 0;
    color: #666;
}

.history-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Calendar Page Styles */
.calendar-page {
    min-height: 100vh;
    padding: 2rem 0;
}

.calendar-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calendar-header h2 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.calendar-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin: 0;
}

.calendar-actions {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.calendar-actions button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Mini Weekly Schedule for Tutor Cards */
.weekly-schedule-mini {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.day-slots {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.day-header-mini {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-align: center;
}

.slots {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.time-slot-mini {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.time-slot-mini.available {
    background: #22c55e;
    color: white;
    border-color: #16a34a;
}

.time-slot-mini.available:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.time-slot-mini.booked {
    background: #ef4444;
    color: white;
    border-color: #dc2626;
    cursor: not-allowed;
    opacity: 0.7;
}

.booking-modal-content {
    max-width: 500px;
    width: 90%;
}

/* Booking Modal specific sizing to prevent overflow */
#bookingModal .modal-content {
    max-height: 75vh;
    max-width: 600px;
    width: 90%;
    margin: 2% auto;
    overflow-y: auto;
}

#bookingModal .modal-body {
    max-height: calc(75vh - 120px);
    overflow-y: auto;
    padding: 1rem;
}

.booking-details {
    background: rgba(139, 21, 56, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #8B1538;
}

.booking-details p {
    margin: 0.5rem 0;
    color: #666;
}

@media (max-width: 768px) {
    .weekly-schedule-mini {
        justify-content: center;
    }
    
    .day-slots {
        min-width: 50px;
    }
    
    .day-header-mini {
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
    }
}

/* Help Page Styles */
.help-page {
    min-height: 100vh;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.help-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.help-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.help-header h1,
.help-header h2 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.help-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin: 0;
}

.help-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.help-card h3 {
    color: #8B1538;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-info {
    background: linear-gradient(45deg, rgba(139, 21, 56, 0.05), rgba(169, 27, 71, 0.05));
    border: 2px solid rgba(139, 21, 56, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.contact-email {
    font-size: 1.2rem;
    color: #8B1538;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(139, 21, 56, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: rgba(139, 21, 56, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.2);
}

.help-back-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.help-back-btn:hover {
    background: linear-gradient(45deg, #b91c1c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.help-back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

@media (max-width: 768px) {
    .help-header h1,
    .help-header h2 {
        font-size: 2rem;
    }
    
    .help-back-btn {
        position: static;
        margin: 0 auto 1rem auto;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .help-card {
        padding: 1.5rem;
        margin: 0 0.5rem 2rem 0.5rem;
    }
    
    .contact-email {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

    
    .time-slot-mini {
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
    }
}
/* Tutor Card Styles */
.tutor-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.15);
}

.tutor-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tutor-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 15px;
}

.tutor-info h5 {
    color: #8B1538;
    margin-bottom: 8px;
    font-size: 18px;
}

.tutor-badges {
    display: flex;
    gap: 8px;
}

.badge {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tutor-details {
    margin-bottom: 15px;
}

.tutor-details p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.tutor-bio {
    font-style: italic;
    background: rgba(139, 21, 56, 0.05);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #8B1538;
}

.availability-preview h6 {
    color: #8B1538;
    margin-bottom: 10px;
    font-size: 14px;
}

.time-slots-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.time-slot-preview {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.time-slot-preview:hover {
    background: #8B1538;
    color: white;
    transform: translateY(-1px);
}

.more-slots {
    background: rgba(139, 21, 56, 0.2);
    color: #8B1538;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Availability Calendar Styles */
.availability-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.pricing-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(139, 21, 56, 0.05);
    border-radius: 8px;
}

.pricing-section label {
    font-weight: 600;
    color: #8B1538;
}

.pricing-section input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 120px;
}

.availability-calendar h5 {
    color: #8B1538;
    margin-bottom: 10px;
}

.availability-help {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.calendar-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.weekly-schedule {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    min-width: 800px;
}

.time-column {
    background: #f5f5f5;
}

.day-column {
    background: white;
}

.time-header, .day-header {
    background: #8B1538;
    color: white;
    padding: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.time-slot {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    background: #f8f8f8;
    color: #666;
}

.schedule-slot {
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-slot:hover {
    background: rgba(139, 21, 56, 0.1);
}

.schedule-slot.available {
    background: #4CAF50;
}

.schedule-slot.available:hover {
    background: #45a049;
}

.schedule-slot.booked {
    background: #f44336;
    cursor: not-allowed;
}

.schedule-slot.class-slot {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: white !important;
    cursor: not-allowed;
}

.availability-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.available {
    background: #4CAF50;
}

.legend-color.booked {
    background: #f44336;
}

.legend-color.unavailable {
    background: #e0e0e0;
}

.availability-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Booking Card Styles */
.booking-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #8B1538;
}

.booking-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
}

.booking-header h6 {
    color: #8B1538;
    margin: 0;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #f59e0b;
    color: white;
    font-weight: 600;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.booking-details p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

/* Responsive styles */
@media (max-width: 768px) {
    .tutor-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tutor-badges {
        margin-top: 10px;
    }
    
    .time-slots-preview {
        justify-content: center;
    }
    
    .weekly-schedule {
        min-width: 600px;
    }
    
    .availability-actions {
        flex-direction: column;
    }
}

/* Booking Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    margin: 3% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar for modal body */
.modal-body {
    overflow-y: auto;
    padding: 20px 30px;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(139, 21, 56, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #A91B47, #8B1538);
}

.modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #8B1538 0%, #A91B47 100%);
    color: white;
    position: relative;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
}

.close:hover,
.close:focus {
    color: white;
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transform: translateY(-50%) rotate(90deg);
}

.modal-body {
    padding: 20px 30px;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

.tutor-info-display {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.1), rgba(128, 0, 32, 0.05));
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.tutor-mini-profile h5 {
    margin: 0 0 8px 0;
    color: #800020;
    font-weight: 600;
}

.tutor-mini-profile p {
    margin: 4px 0;
    color: #666;
    font-size: 0.9rem;
}

.form-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Create Class Button and Header Styling */
.classes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

.classes-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.classes-header .btn-primary {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    transition: all 0.3s ease;
}

.classes-header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

/* Enhanced Modal with Red/White/Black Theme */
.modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 3px solid #8B1538;
    box-shadow: 0 20px 60px rgba(139, 21, 56, 0.3);
}

.enrollment-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #8B1538 0%, #A91B47 100%);
    color: white;
    margin: 0;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.enrollment-modal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-header .close {
    color: #dc3545;
    font-size: 1.5rem;
    font-weight: bold;
    background: white;
    border: 2px solid #dc3545;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-header .close:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 0 2rem;
}

.enrollment-modal .modal-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    margin: 0;
    border-radius: 0 0 15px 15px;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.modal-footer .btn-primary {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    transition: all 0.3s ease;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

/* Tutor Class Actions Layout */
.class-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    gap: 0.75rem;
}

.class-action-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-enrollments {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(139, 21, 56, 0.25);
}

.btn-enrollments:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(139, 21, 56, 0.35);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .class-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .class-action-buttons {
        justify-content: center;
    }
    
    .btn-enrollments {
        align-self: center;
    }
}

/* Class Enrollment Viewer Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
}

.enrollment-modal {
    max-width: 1000px;
    width: 90vw;
    max-height: 80vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(139, 21, 56, 0.4);
}

.enrollment-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    min-height: 0;
}

.enrollment-stats {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    border-radius: 15px;
    border-left: 5px solid #8B1538;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B1538;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(139, 21, 56, 0.1);
}

.stat-label {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enrolled-students-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 0;
    flex: 1;
}

.student-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(139, 21, 56, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
    min-height: 50px;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.15);
}

.student-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

.avatar-initials {
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.student-info {
    flex: 1;
    padding-right: 1rem;
}

.student-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.student-email {
    margin: 0 0 0.8rem 0;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.student-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.student-year,
.student-spec {
    padding: 0.4rem 1rem;
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(139, 21, 56, 0.2);
}

.enrollment-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    min-width: 90px;
}

.enrollment-status {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    white-space: nowrap;
}

.enrollment-status.status-approved {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.enrollment-status.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.enrollment-status.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.enrollment-date {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
}

.enrollment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-approve {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-approve:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-reject {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .enrollment-modal {
        width: 95vw;
        max-height: 90vh;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(139, 21, 56, 0.25);
    }
    
    .enrollment-modal .modal-header {
        padding: 1.5rem 1rem;
    }
    
    .enrollment-modal .modal-header h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .enrollment-modal .modal-body {
        padding: 1rem;
        max-height: calc(90vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .enrollment-stats {
        padding: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    
    .stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        margin-top: 0.25rem;
    }
    
    .student-card {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        text-align: left;
    }
    
    .student-info {
        flex: 1;
        padding-right: 0;
    }
    
    .enrollment-info {
        align-items: flex-end;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .student-details {
        justify-content: flex-start;
    }
    
    .enrolled-students-list {
        gap: 1rem;
    }
    
    /* Section headers */
    .students-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    
    .enrollment-modal {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        box-shadow: none;
    }
    
    .enrollment-modal .modal-header {
        padding: 1rem 0.75rem;
        border-radius: 0;
    }
    
    .enrollment-modal .modal-header h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        word-break: break-word;
    }
    
    .enrollment-modal .modal-body {
        padding: 0.75rem;
        flex: 1;
        overflow-y: auto;
        max-height: calc(100vh - 120px);
    }
    
    .enrollment-stats {
        padding: 0.75rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
        align-items: stretch;
    }
    
    .stat-item {
        padding: 0.75rem 0.25rem;
        min-width: 0;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.1rem;
        line-height: 1.1;
        word-break: break-all;
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.1;
        margin-top: 0.25rem;
        word-break: break-word;
    }
    
    /* Fix the actual student cards from JavaScript */
    .student-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 8px !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        min-height: 60px !important;
        max-height: 70px !important;
    }
    
    .student-card .student-avatar {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }
    
    .student-card .avatar-initials {
        font-size: 0.8rem !important;
    }
    
    .student-card .student-info {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-align: left !important;
    }
    
    .student-card .student-name {
        font-size: 0.8rem !important;
        margin: 0 0 0.2rem 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .student-card .student-email {
        font-size: 0.65rem !important;
        color: #666 !important;
        margin: 0 0 0.2rem 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .student-card .student-details {
        display: flex !important;
        gap: 0.3rem !important;
        flex-wrap: wrap !important;
    }
    
    .student-card .student-year,
    .student-card .student-spec {
        font-size: 0.6rem !important;
        background: rgba(139, 21, 56, 0.1) !important;
        color: #8B1538 !important;
        padding: 0.1rem 0.3rem !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
    }
    
    .student-card .enrollment-info {
        flex-shrink: 0 !important;
        text-align: right !important;
        font-size: 0.6rem !important;
        min-width: 80px !important;
        max-width: 80px !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        height: 100% !important;
    }
    
    .student-card .enrollment-status {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.6rem !important;
        border-radius: 6px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        background: #28a745 !important;
        color: white !important;
        font-weight: 500 !important;
        border: none !important;
        display: inline-block !important;
        min-width: 70px !important;
        text-align: center !important;
    }
    
    .student-card .enrollment-date {
        font-size: 0.55rem !important;
        color: #666 !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .enrollment-modal .modal-header {
        padding: 1rem;
        border-radius: 0;
    }
    
    .enrollment-modal .modal-header h3 {
        font-size: 1.2rem;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .enrollment-modal .modal-body {
        padding: 0.75rem;
        flex: 1;
        overflow-y: auto;
    }
    
    .enrollment-stats {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .stats-row {
        flex-direction: row;
        gap: 0.25rem;
        justify-content: space-between;
    }
    
    .stat-item {
        padding: 0.5rem 0.2rem;
        min-width: 0;
        flex: 1;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.2rem;
        word-break: break-word;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.65rem;
        word-break: break-word;
        line-height: 1.1;
    }
    
    .enrolled-students-list {
        gap: 1rem;
    }
    
    .student-enrollment-card {
        padding: 0.5rem;
        border-radius: 6px;
        margin: 0 0 0.5rem 0;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        min-height: 50px;
        max-height: 70px;
    }
    
    .student-avatar {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .student-main-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .student-info h6 {
        font-size: 0.8rem;
        line-height: 1.1;
        margin: 0 0 0.2rem 0;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .student-email {
        font-size: 0.65rem;
        color: #666;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .student-details {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin: 0.2rem 0 0 0;
        font-size: 0.65rem;
        flex-wrap: wrap;
    }
    
    .student-details .enrollment-date,
    .student-details .detail-item {
        font-size: 0.7rem;
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.2;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .student-enrollment-card .enrollment-info {
        font-size: 0.65rem !important;
        word-break: break-all;
        overflow-wrap: anywhere;
        max-width: 100%;
        overflow: hidden;
    }
    
    .student-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        display: inline-block;
        margin: 0;
        white-space: nowrap;
    }
    
    .student-meta-right {
        flex-shrink: 0;
        text-align: right;
        font-size: 0.6rem;
        color: #666;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.2rem;
    }
    
    .student-status {
        flex-shrink: 0;
    }
    
    .enrollment-actions {
        display: flex;
        flex-direction: row;
        gap: 0.3rem;
        flex-shrink: 0;
    }
    
    .student-enrollment-card .student-meta {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.65rem !important;
        width: 100%;
        overflow: hidden;
    }
    
    .student-enrollment-card .student-meta * {
        font-size: 0.65rem !important;
        word-break: break-all;
        overflow-wrap: anywhere;
        text-align: left;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-approve, .btn-reject {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 4px;
        min-width: 50px;
        white-space: nowrap;
    }
    
    .modal-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.2rem !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white !important;
        border: 2px solid #dc3545 !important;
        color: #dc3545 !important;
    }
    
    .modal-close:hover {
        background: #dc3545 !important;
        color: white !important;
    }
    
    /* Modal close button styles for subscription modal */
    .modal-close-btn {
        background: none;
        border: none;
        color: #64748b;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 40px;
    }

    .modal-close-btn:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #dc2626;
    }

    .modal-close-btn svg {
        width: 20px;
        height: 20px;
    }
    }
    
    .student-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .student-avatar {
        width: 60px;
        height: 60px;
    }
    
    .avatar-initials {
        font-size: 1.2rem;
    }
    
    .student-name {
        font-size: 1.1rem;
    }
    
    /* Mobile optimization for session cards */
    .session-card {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .session-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 0 !important;
    }
    
    .session-type-pill {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.5rem !important;
        order: 2 !important;
    }
    
    .session-timing {
        order: 1 !important;
        flex: 1 !important;
    }
    
    .time-display {
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.2rem !important;
        color: #8B1538 !important;
    }
    
    .date-display {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #333 !important;
    }
    
    /* Main info section - horizontal layout */
    .session-details {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem 1rem !important;
        margin-bottom: 0 !important;
        font-size: 0.8rem !important;
    }
    
    .session-details p {
        margin: 0 !important;
        line-height: 1.4 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .session-details p strong {
        font-size: 0.7rem !important;
        color: #666 !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 0.1rem !important;
    }
    
    /* Make subject and price more prominent */
    .session-details p:first-child {
        grid-column: 1 / -1 !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #333 !important;
        border-bottom: 1px solid #eee !important;
        padding-bottom: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .session-details p:first-child strong {
        font-size: 0.75rem !important;
        color: #8B1538 !important;
    }
    
    /* Price styling */
    .session-details p:has(strong:contains("Price")) {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #28a745 !important;
    }
    
    .session-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
    }
    
    .btn-cancel-session,
    .btn-complete-session {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        flex: 1 !important;
        border-radius: 6px !important;
    }
    
}

/* Tutor Requests Page Styling */
.requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

.requests-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.requests-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-badge {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(139, 21, 56, 0.3);
}

/* Pending Requests Styles */
.pending-requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pending-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pending-requests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Desktop - ensure exactly 3 columns */
@media (min-width: 1024px) {
    .pending-requests-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Tablet - 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .pending-requests-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile - single column */
@media (max-width: 767px) {
    .pending-requests-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.pending-request-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.pending-request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Enhanced request card content styling */
.request-card h5, .pending-request-card h5 {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.request-card p, .pending-request-card p {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

.request-card strong, .pending-request-card strong {
    color: #8B1538;
    font-weight: 600;
}

.request-details {
    margin-bottom: 1.5rem;
}

.request-details .meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.request-details .meta-item:last-child {
    border-bottom: none;
}

.request-details .meta-item strong {
    color: #8B1538;
    font-weight: 700;
}

/* Modern Card Design for Pending Requests */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: auto;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 21, 56, 0.15);
}

/* Card Header */
.modern-card .card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(139, 21, 56, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.class-title-section {
    flex: 1;
}

.class-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8B1538;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.tutor-name {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.subject-badge {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Body */
.modern-card .card-body {
    padding: 1rem 1.5rem;
}

.class-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.detail-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Card Footer */
.modern-card .card-footer {
    padding: 1rem 1.5rem;
    background: rgba(139, 21, 56, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
}

.enrollment-date {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.btn-cancel-compact {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel-compact:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Mobile Responsive for Modern Cards */
@media (max-width: 768px) {
    .modern-card .card-header {
        padding: 1.25rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .status-badges {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .class-title {
        font-size: 1.2rem;
    }
    
    .modern-card .card-body {
        padding: 1rem 1.25rem;
    }
    
    .class-details-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .modern-card .card-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .btn-cancel-compact, .btn-collected, .btn-collected-student {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        min-width: 85px;
        flex: 1;
        max-width: 140px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modern-card .card-header,
    .modern-card .card-body,
    .modern-card .card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .class-title {
        font-size: 1.1rem;
    }
    
    .detail-item {
        gap: 0.5rem;
    }
    
    .detail-icon {
        font-size: 1rem;
        min-width: 20px;
    }
}

.request-type {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.type-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.private {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.type-badge.class {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.status-badge.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600 !important;
    font-size: 0.8rem;
    border: 2px solid #d97706 !important;
    opacity: 1 !important;
}

/* Pending stat cards styling */
.stat-card.pending-card {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(217, 119, 6, 0.05));
}

.pending-card .stat-number {
    color: #d97706;
    font-weight: 700;
}

.pending-card .stat-label {
    color: #92400e;
    font-weight: 500;
}

/* Profile Completion Warning */
.profile-warning-card {
    background: linear-gradient(135deg, #fef3c7, #fcd34d);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.warning-content h4 {
    color: #92400e;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.warning-content p {
    color: #78350f;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.warning-content .btn-primary {
    background: #d97706;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
}

.warning-content .btn-primary:hover {
    background: #b45309;
}

/* Incomplete profile section highlighting */
.form-section.incomplete {
    border: 2px solid #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(239, 68, 68, 0.02));
    border-radius: 8px;
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section.incomplete::before {
    content: "⚠️ INCOMPLETE";
    position: absolute;
    top: -10px;
    right: 15px;
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-section.incomplete h3 {
    color: #dc2626 !important;
    font-weight: 600;
}

.form-section.incomplete .form-group label {
    color: #dc2626;
    font-weight: 500;
}

/* Billing Section Optimizations */
.billing-section .billing-dashboard {
    margin-top: 0;
    padding: 0;
}

.billing-section .subscription-prompt {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.08), rgba(169, 27, 71, 0.05));
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.billing-section .prompt-header h4 {
    color: #8B1538;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.billing-section .prompt-header p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.billing-section .subscription-select-btn {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.billing-section .prompt-warning {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.billing-section .prompt-warning p {
    color: #dc2626;
    font-size: 0.85rem;
    margin: 0;
}

.billing-section .billing-overview {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(139, 21, 56, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
}

.billing-section .plan-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 21, 56, 0.1);
}

.billing-section .plan-status h5 {
    color: #8B1538;
    font-size: 1rem;
    margin: 0;
}

.billing-section .plan-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.billing-section .status-trial {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.billing-section .status-active {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
}

.billing-section .trial-status {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.billing-section .trial-status h6 {
    color: #059669;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.billing-section .trial-status p {
    color: #065f46;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.billing-section .trial-status small {
    color: #6b7280;
    font-size: 0.8rem;
}

.billing-section .billing-info-grid,
.billing-section .earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.billing-section .info-item {
    text-align: center;
    padding: 0.5rem;
    background: rgba(139, 21, 56, 0.03);
    border-radius: 6px;
}

.billing-section .info-item .value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #8B1538;
}

.billing-section .info-item .label {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

/* Mobile Responsiveness for Billing Section */
@media (max-width: 768px) {
    .billing-section .plan-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .billing-section .billing-info-grid,
    .billing-section .earnings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .billing-section .info-item {
        padding: 0.5rem;
    }
    
    .billing-section .info-item .value {
        font-size: 1rem;
    }
    
    .billing-section .subscription-prompt {
        padding: 1rem;
    }
    
    .billing-section .prompt-header h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .billing-section .billing-info-grid,
    .billing-section .earnings-grid {
        grid-template-columns: 1fr;
    }
    
    .billing-section .info-item .value {
        font-size: 0.9rem;
    }
    
    .billing-section .info-item .label {
        font-size: 0.75rem;
    }
    
    .billing-section .subscription-prompt {
        padding: 1rem 0.75rem;
        margin: 0.5rem 0;
    }
    
    .billing-section .prompt-header h4 {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .billing-section .prompt-header p {
        font-size: 0.8rem;
        margin-bottom: 0.875rem;
    }
    
    .billing-section .subscription-select-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .billing-section .prompt-warning {
        padding: 0.625rem;
        margin-top: 0.625rem;
    }
    
    .billing-section .prompt-warning p {
        font-size: 0.8rem;
    }
}

/* Clean Billing Dashboard Styles */
.billing-dashboard {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.1);
    overflow: hidden;
    border: 1px solid rgba(139, 21, 56, 0.1);
    position: relative;
    max-width: 800px;
}

/* Compact version for smaller size */
.billing-dashboard.compact {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(139, 21, 56, 0.08);
}

/* Plan Overview Section */
.plan-overview {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 0.75rem;
}

.plan-header {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 60px;
}

.plan-title {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: 70%;
}

.plan-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.commission-rate,
.subscription-price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.commission-rate span,
.subscription-price span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.commission-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.plan-status-pill {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.plan-status-pill .status-indicator {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-status-pill-center {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.plan-status-pill-center .status-indicator.enlarged {
    background: #28a745;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-indicator.status-active {
    background: #28a745;
    color: white;
}

.status-indicator.status-trial {
    background: #28a745;
    color: white;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.plan-pricing .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-align: right;
}

.plan-pricing .price span {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Status & Billing Section */
.billing-status {
    padding: 0.5rem;
    background: #f8f9fa;
}

.status-info-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(139, 21, 56, 0.1);
}

.status-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: #2d3748;
    font-weight: 600;
}

.countdown-info {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.days-count {
    font-size: 3rem;
    font-weight: 800;
    color: #8B1538;
    line-height: 1;
}

.days-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.date-info {
    color: #666;
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.cancellation-info {
    background: rgba(253, 126, 20, 0.1);
    border: 1px solid rgba(253, 126, 20, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.cancellation-info strong {
    color: #fd7e14;
    font-weight: 600;
}

.cancellation-info p {
    margin: 0.5rem 0 0 0;
    color: #8B4513;
    font-size: 0.9rem;
}

/* Commission Plan Info - Compact */
.commission-plan-info {
    padding: 12px;
    background: rgba(139, 21, 56, 0.05);
    margin: 0;
}

.commission-plan-info p {
    margin: 0;
    margin-bottom: 3px;
    font-size: 0.9rem;
    color: #666;
}

.commission-plan-info p:last-child {
    margin-bottom: 0;
}

/* Billing Cycle Info */
.billing-cycle-info {
    padding: 12px;
    background: rgba(40, 167, 69, 0.08);
    border-left: 4px solid #28a745;
    margin: 0;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.billing-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.billing-item:last-child {
    text-align: right;
}

.billing-item .label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #28a745;
    margin: 0;
}

.billing-item .value {
    font-size: 0.85rem;
    color: #666;
    margin: 2px 0 0 0;
}

/* Revenue Section */
.revenue-section {
    padding: 0.5rem;
    background: rgba(248, 250, 252, 0.7);
    border-top: 1px solid rgba(139, 21, 56, 0.06);
}

/* Compact Revenue Section */
.revenue-section.compact {
    padding: 15px;
    background: rgba(139, 21, 56, 0.05);
    border-top: none;
    margin: 0;
}

.revenue-section.compact .section-header h4 {
    font-size: 0.95rem;
    margin: 0 0 8px 0;
    color: #8B1538;
}

.revenue-section.compact .section-header p {
    font-size: 0.85rem;
    margin: 0 0 12px 0;
    color: #666;
}

.metrics-grid.compact {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.metric-compact {
    text-align: center;
}

.metric-compact .metric-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.metric-compact:nth-child(1) .metric-value {
    color: #8B1538; /* Total Revenue */
}

.metric-compact:nth-child(2) .metric-value {
    color: #dc3545; /* Commission Owed */
}

.metric-compact:nth-child(3) .metric-value {
    color: #28a745; /* Your Earnings */
}

.metric-compact .metric-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-header h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 0.8rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}


.metric-card .metric-value {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #2d3748;
}

.metric-card.commission .metric-value {
    color: #dc3545;
}

.metric-card.revenue .metric-value {
    color: #8B1538;
}

.metric-card.net .metric-value {
    color: #28a745;
}

.metric-card .metric-label {
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Billing Actions */
.billing-actions {
    padding: 0.5rem;
    background: white;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
    text-align: right;
}

.manage-btn, .cancel-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.manage-btn {
    background: #8B1538;
    color: white;
}

.manage-btn:hover {
    background: #6d1028;
    transform: translateY(-1px);
}

.cancel-btn {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.cancel-btn:hover {
    background: #c82333;
    color: white;
    transform: translateY(-1px);
}

.cancelled-status {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.cancelled-status span {
    display: block;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.cancelled-status small {
    color: #868e96;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.reactivate-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.reactivate-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .billing-dashboard {
        border-radius: 8px;
    }
    
    .plan-overview {
        padding: 0.5rem;
    }
    
    .plan-header {
        position: relative;
        width: 100%;
        min-height: 60px;
    }
    
    .plan-title {
        position: absolute;
        left: 0;
        top: 0;
        max-width: 60%;
    }
    
    .plan-status-pill-center {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .plan-title h3 {
        font-size: 1.1rem;
    }
    
    .plan-pricing .price {
        font-size: 1.2rem;
    }
    
    .billing-status {
        padding: 0.4rem;
    }
    
    .status-info-card {
        padding: 0.6rem;
    }
    
    .days-count {
        font-size: 2.5rem;
    }
    
    .revenue-section {
        padding: 0.4rem;
    }
    
    .billing-actions {
        padding: 0.4rem;
        text-align: center;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
}

/* Safe Area Support for iPhone notch and home bar */
:root {
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-right: env(safe-area-inset-right);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
}

/* Apply safe area to main body */
body {
    padding-top: var(--safe-area-inset-top);
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
    padding-bottom: var(--safe-area-inset-bottom);
}

/* Active tab state */
.bottom-tab-btn.active,
.bottom-tab-btn[data-active="true"] {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: scale(1.05);
}

/* Press effect for better mobile feedback */
.bottom-tab-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.1s ease;
}

/* iOS-like touch behavior */
.bottom-tab-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}

/* Smooth transitions for native feel */
.navbar, .bottom-tab-btn {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Fixed modals and overlays */
.modal, .modal-overlay {
    padding-top: var(--safe-area-inset-top);
    padding-bottom: var(--safe-area-inset-bottom);
}

/* Fast tap response - remove 300ms click delay + disable all zoom */
* {
    touch-action: manipulation;
}

/* Completely disable pinch-to-zoom */
html {
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
}

body {
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    overflow-x: hidden;
}

/* Faster button responses */
button, a, .btn, .tab-btn, .card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Immediate visual feedback on touch */
button:active, .btn:active, .tab-btn:active {
    transform: scale(0.98);
    opacity: 0.8;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

/* Remove default tap highlights but add our own */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection in inputs and content areas */
input, textarea, .content, p, span {
    -webkit-user-select: auto;
    -khtml-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}


/* Auto-zoom prevention - ensure all inputs have 16px+ font size on mobile */
input, textarea, select {
    font-size: 16px !important;
}

/* Enhanced touch responsiveness and micro-interactions */
.btn-primary, .btn-secondary, .tab-btn, .close-btn, .hamburger-menu, 
.password-toggle-btn, .schedule-slot, .time-slot {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    will-change: transform;
}

/* Immediate touch feedback */
.btn-primary:active, .btn-secondary:active, .tab-btn:active,
.schedule-slot:active, .time-slot:active {
    transform: scale(0.96);
    transition-duration: 0.05s;
}

/* Enhanced button hover states */
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.25);
}

/* Enhanced card interactions */
.class-card, .tutor-card, .booking-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.class-card:active, .tutor-card:active, .booking-card:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

/* Smooth modal animations */
.modal-content {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enhanced input focus states */
input:focus, textarea:focus, select:focus {
    transition: all 0.2s ease;
    transform: translateY(-1px);
}

/* Loading skeleton animations for better perceived performance */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 400px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* Smooth page transitions */
.fade-in {
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Enhanced modal transitions - DISABLED TO PREVENT FLASH CONFLICTS */
/*
.modal {
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease;
}

.modal[style*="flex"] {
    backdrop-filter: blur(8px);
}
*/

/* DISABLED - Causing modal flash issues */
/*
.modal-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
*/

/* DISABLED - Part of problematic animation system */
/*
.modal[style*="flex"] .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}
*/

/* Smooth tab content transitions */
.tab-content {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tab-content[style*="none"] {
    opacity: 0;
    transform: translateX(-10px);
}

/* Enhanced button loading states */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced hover states for better feedback */
@media (hover: hover) {
    .class-card:hover, .tutor-card:hover, .booking-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
}

/* Progressive loading states */
.content-loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8B1538;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Prevent zoom on focus for iOS Safari */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"], 
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
        transform: scale(1);
        transition: none;
    }
    
    /* Prevent zoom animation flicker */
    input:focus,
    textarea:focus,
    select:focus {
        font-size: 16px !important;
        transform: scale(1);
    }
}

/* Mobile responsiveness for profile warning */
@media (max-width: 768px) {
    .profile-warning-card {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .warning-icon {
        font-size: 1.5rem;
    }
    
    .warning-content h4 {
        font-size: 1rem;
    }
    
    .warning-content p {
        font-size: 0.85rem;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.request-date {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.request-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tutor-info h5 {
    color: #8B1538;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.tutor-info p, .session-info p {
    margin: 0.2rem 0;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tutor-info strong, .session-info strong {
    color: #1f2937;
    font-weight: 600;
}

.request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.request-actions .btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.request-actions .btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.requests-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(139, 21, 56, 0.2);
    background: white;
    color: #666;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: rgba(139, 21, 56, 0.4);
    background: rgba(139, 21, 56, 0.05);
}

.filter-btn.active {
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    border-color: #8B1538;
    box-shadow: 0 3px 15px rgba(139, 21, 56, 0.3);
}

.requests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Desktop - flexible columns for tutor requests */
@media (min-width: 1024px) {
    .requests-list,
    #requestsList,
    #tutorRequestsTab .requests-list,
    #tutorRequestsTab #requestsList {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
        gap: 2rem !important;
        display: grid !important;
    }
}

/* Tablet - 2 columns for tutor requests */
@media (min-width: 768px) and (max-width: 1023px) {
    .requests-list,
    #requestsList,
    #tutorRequestsTab .requests-list,
    #tutorRequestsTab #requestsList {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        display: grid !important;
    }
}

/* Mobile - single column for tutor requests */
@media (max-width: 767px) {
    .requests-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* OVERRIDE ANY FLEX LAYOUTS - FORCE GRID */

/* FORCE CSS - Maximum specificity override */
@media screen and (min-width: 1024px) {
    
    /* ONLY target the specific pending requests section */
    body #tutorRequestsTab[style*="display: block"] div#requestsList.requests-list div.requests-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem 1rem 1.5rem 1.5rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

/* SIMPLE FIX - 3-column cards layout - ONLY for pending requests */
    
    /* The section should display cards in 3 columns, title on top */
    #requestsList .requests-section,
    #tutorRequestsTab .requests-section {
        width: 100% !important;
        padding: 1.5rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Title - remove extra padding since parent has it */
    #requestsList .requests-section .section-title,
    #tutorRequestsTab .requests-section .section-title {
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 0 0.75rem 0 !important;
        border-bottom: 1px solid rgba(139, 21, 56, 0.2);
        font-size: 1.1rem;
        font-weight: 600;
        box-sizing: border-box !important;
    }
    
    /* Make the section a grid container for everything except title */
    #requestsList .requests-section,
    #tutorRequestsTab .requests-section {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 100% !important;
    }
    
    /* Title spans all 3 columns */
    #requestsList .requests-section .section-title,
    #tutorRequestsTab .requests-section .section-title {
        grid-column: 1 / -1 !important;
    }
    
    /* Cards take their natural grid position and FORCE full width */
    #requestsList .requests-section .request-card,
    #requestsList .requests-section .pending-request-card,
    #tutorRequestsTab .requests-section .request-card,
    #tutorRequestsTab .requests-section .pending-request-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1.5rem !important;
        box-sizing: border-box !important;
        flex: 1 !important;
    }
}

.requests-section {
    margin-bottom: 2.5rem;
}

.section-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #8B1538;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

.request-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.student-info-section, .tutor-info-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.student-avatar-small, .tutor-avatar-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(139, 21, 56, 0.3);
}

.avatar-initials-small {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.student-details-small, .tutor-details-small {
    flex: 1;
}

.student-name-small, .tutor-name-small {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.student-meta, .tutor-meta {
    margin: 0 0 0.3rem 0;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.student-email-small {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

.request-type-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.class-request {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.private-request {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.request-details {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.request-details p {
    margin: 0 0 0.5rem 0;
    color: #555;
}

.request-details strong {
    color: #333;
    font-weight: 600;
}

.request-timestamp {
    font-size: 0.85rem;
    color: #888 !important;
    font-style: italic;
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.request-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-approve-request {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

.btn-approve-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(16, 185, 129, 0.4);
}

.btn-reject-request {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.3);
}

.btn-reject-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .requests-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .requests-header h4 {
        font-size: 1.3rem;
        flex: 1;
    }
    
    .requests-filters {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .requests-header h4 {
        font-size: 1.1rem !important;
        line-height: 1.2;
    }
    
    .stats-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 15px;
    }
}
    .filter-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .request-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .request-type-badge {
        align-self: flex-start;
    }
    
    .request-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-approve-request,
    .btn-reject-request {
        width: 100%;
        justify-content: center;
    }
}

.booking-summary {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.08), rgba(128, 0, 32, 0.03));
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid rgba(128, 0, 32, 0.15);
}

.booking-summary h4 {
    margin: 0 0 15px 0;
    color: #800020;
    font-size: 1.1rem;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 0, 32, 0.1);
    font-size: 0.9rem;
}

.summary-item:last-of-type {
    border-bottom: none;
    font-weight: 600;
    color: #800020;
    font-size: 1rem;
}

.summary-note {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 15px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.tutor-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

/* Modal responsive styles */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 20px 20px 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    /* Booking Modal responsive */
    #bookingModal .modal-content {
        margin: 1% auto;
        width: 95%;
        max-height: 92vh;
        border-radius: 16px;
    }
    
    #bookingModal .modal-header {
        padding: 1rem 1.5rem !important;
        border-radius: 16px 16px 0 0 !important;
        background: linear-gradient(135deg, #8B1538 0%, #A91B47 100%) !important;
        color: white !important;
    }
    
    #bookingModal .modal-header h3 {
        font-size: 1.3rem !important;
        color: white !important;
    }
    
    #bookingModal .modal-body {
        max-height: calc(92vh - 150px);
        padding: 1rem 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #bookingModal .form-group {
        margin-bottom: 1.25rem;
    }
    
    #bookingModal .form-group label {
        font-size: 1rem;
        font-weight: 600;
        color: #8B1538;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    #bookingModal .form-control, 
    #bookingModal select, 
    #bookingModal textarea {
        width: 100%;
        padding: 12px 14px;
        font-size: 16px;
        border: 2px solid #e1e8ed;
        border-radius: 10px;
        background: #fff;
        transition: border-color 0.2s ease;
        min-height: 48px;
        box-sizing: border-box;
    }
    
    #bookingModal .form-control:focus, 
    #bookingModal select:focus, 
    #bookingModal textarea:focus {
        border-color: #8B1538;
        outline: none;
        box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
    }
    
    #bookingModal textarea {
        min-height: 80px;
        resize: vertical;
    }
    
    .modal-footer {
        padding: 15px 20px 20px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        width: 100%;
        margin: 0;
        padding: 14px 20px;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 10px;
        min-height: 50px;
    }
    
    .tutor-actions {
        flex-direction: column;
    }
    
    /* Calendar and time selection mobile optimization */
    .calendar-container {
        margin: 1rem 0;
    }
    
    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .calendar-nav-btn {
        padding: 8px 12px !important;
        font-size: 1.2rem !important;
        border-radius: 8px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    .calendar-title {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #8B1538 !important;
    }
    
    .time-slots-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .time-slot-btn {
        padding: 10px 8px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        min-height: 44px !important;
        border: 2px solid #e1e8ed !important;
        background: #fff !important;
        color: #333 !important;
        transition: all 0.2s ease !important;
    }
    
    .time-slot-btn:hover, 
    .time-slot-btn.selected {
        background: #8B1538 !important;
        color: white !important;
        border-color: #8B1538 !important;
        transform: scale(1.02) !important;
    }
    
    .time-slot-btn:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        background: #f5f5f5 !important;
    }
    
    /* Booking summary mobile optimization */
    .booking-summary {
        background: rgba(139, 21, 56, 0.05);
        border: 2px solid rgba(139, 21, 56, 0.1);
        border-radius: 12px;
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .booking-summary h4 {
        font-size: 1.1rem;
        color: #8B1538;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .summary-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(139, 21, 56, 0.1);
        font-size: 0.95rem;
    }
    
    .summary-item:last-child {
        border-bottom: none;
        font-weight: 600;
        color: #8B1538;
    }
    
    .summary-label {
        color: #666;
    }
    
    .summary-value {
        color: #333;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    #bookingModal .modal-content {
        margin: 0.5% auto;
        width: 98%;
        max-height: 96vh;
        border-radius: 12px;
    }
    
    #bookingModal .modal-header {
        padding: 0.75rem 1rem !important;
        border-radius: 12px 12px 0 0 !important;
        background: linear-gradient(135deg, #8B1538 0%, #A91B47 100%) !important;
        color: white !important;
    }
    
    #bookingModal .modal-header h3 {
        font-size: 1.2rem !important;
        color: white !important;
    }
    
    #bookingModal .modal-body {
        max-height: calc(96vh - 140px);
        padding: 1rem;
    }
    
    #bookingModal .form-group {
        margin-bottom: 1rem;
    }
    
    #bookingModal .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    #bookingModal .form-control, 
    #bookingModal select, 
    #bookingModal textarea {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 44px;
    }
    
    #bookingModal textarea {
        min-height: 70px;
    }
    
    .calendar-header {
        margin-bottom: 0.75rem;
        padding: 0 0.25rem;
    }
    
    .calendar-nav-btn {
        padding: 6px 10px !important;
        font-size: 1.1rem !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .calendar-title {
        font-size: 1rem !important;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.5rem;
        margin: 0.75rem 0;
    }
    
    .time-slot-btn {
        padding: 8px 6px !important;
        font-size: 0.85rem !important;
        min-height: 40px !important;
    }
    
    .booking-summary {
        padding: 0.75rem;
        margin: 0.75rem 0;
        border-radius: 10px;
    }
    
    .booking-summary h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-item {
        padding: 0.4rem 0;
        font-size: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .modal-footer {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 8px;
        min-height: 46px;
    }
}
    
    .summary-item {
        flex-direction: column;
        gap: 5px;
    }
}

/* Simple Tutor Cards */
.tutor-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.tutor-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tutor-avatar-large {
    width: 60px;
    height: 60px;
    background: #800020;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.tutor-info h4 {
    margin: 0 0 5px 0;
    color: #800020;
}

.tutor-specialization {
    color: #666;
    margin: 0 0 5px 0;
}

.tutor-rate {
    font-weight: bold;
    color: #800020;
    font-size: 1.1rem;
}

.tutor-details {
    margin: 15px 0;
    line-height: 1.5;
}

.tutor-details > div {
    margin-bottom: 8px;
}

.tutor-bio {
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.tutor-availability {
    margin: 15px 0;
}

.quick-book-slots {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.time-slot {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
}

.time-slot:hover {
    background: #800020;
    color: white;
}

.tutor-actions {
    margin-top: 15px;
}

/* Enhanced Tutor Profile Cards */
.tutor-profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 20px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(128, 0, 32, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tutor-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(128, 0, 32, 0.15);
}

.tutor-profile-header {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.08), rgba(128, 0, 32, 0.03));
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid rgba(128, 0, 32, 0.1);
}

.tutor-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #800020, #a0002a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.3);
}

.avatar-initials {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.tutor-basic-info {
    flex: 1;
}

.tutor-name {
    margin: 0 0 10px 0;
    color: #800020;
    font-size: 1.4rem;
    font-weight: 600;
}

.tutor-status {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.status-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.year-badge {
    background: rgba(128, 0, 32, 0.1);
    color: #800020;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tutor-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-text {
    color: #666;
    font-size: 0.85rem;
}

.tutor-pricing {
    text-align: right;
}

.hourly-rate {
    font-size: 1.5rem;
    font-weight: 700;
    color: #800020;
    margin-bottom: 5px;
}

.total-sessions {
    color: #666;
    font-size: 0.9rem;
}

.tutor-profile-body {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tutor-profile-body > div {
    grid-column: span 1;
}

.tutor-bio-section {
    grid-column: span 2;
}

.tutor-profile-body h6 {
    margin: 0 0 10px 0;
    color: #800020;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specialization-badge {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.1), rgba(128, 0, 32, 0.05));
    color: #800020;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.subjects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-tag {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #495057;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.languages-list {
    display: flex;
    gap: 8px;
}

.language-tag {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.no-data {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

.tutor-bio {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.availability-section {
    grid-column: span 2;
    background: rgba(128, 0, 32, 0.03);
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
}

.availability-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slots-count {
    color: #800020;
    font-weight: 600;
}

.quick-slots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quick-slot {
    background: rgba(128, 0, 32, 0.1);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 60px;
}

.quick-slot:hover {
    background: #800020;
    color: white;
    transform: translateY(-2px);
}

.slot-day {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.slot-time {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
}

.more-slots-indicator {
    background: rgba(128, 0, 32, 0.1);
    color: #800020;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tutor-profile-footer {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(233, 236, 239, 0.8));
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(128, 0, 32, 0.1);
}

.tutor-stats {
    display: flex;
    gap: 30px;
}

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

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #800020;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline {
    background: transparent;
    color: #800020;
    border: 2px solid #800020;
    padding: 12px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: #800020;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.3);
}

/* Responsive adjustments for profile cards */
@media (max-width: 768px) {
    .tutor-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tutor-avatar {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .avatar-initials {
        font-size: 1.4rem;
    }
    
    .tutor-pricing {
        text-align: center;
    }
    
    .tutor-profile-body {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tutor-bio-section,
    .availability-section {
        grid-column: span 1;
    }
    
    .availability-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .tutor-profile-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .tutor-stats {
        gap: 20px;
    }
    
    .tutor-actions {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    
    .btn-outline,
    .btn-primary {
        flex: 1;
        margin: 0;
    }
}

/* Profile Enhancement Styles */
.form-section {
    background: 
        linear-gradient(rgba(139, 21, 56, 0.15), rgba(139, 21, 56, 0.12)),
        rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-section h5 {
    color: #8B1538;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section p.text-muted {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.semester-box {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(139, 21, 56, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.semester-box:hover {
    border-color: rgba(139, 21, 56, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 21, 56, 0.15);
}

.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.semester-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000000;
}

.semester-arrow {
    font-size: 1.2rem;
    color: #8B1538;
    transition: transform 0.3s ease;
}

.semester-box.expanded .semester-arrow {
    transform: rotate(180deg);
}

.semester-subjects {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.semester-box.expanded .semester-subjects {
    display: grid;
}

.subject-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.subject-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.subject-checkbox label {
    cursor: pointer;
    font-size: 0.9rem;
}

.danger-zone {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(220, 38, 38, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
}

.danger-zone h5 {
    color: #dc2626;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.danger-zone p {
    color: #7f1d1d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Delete Account Modal */
.delete-confirmation-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.delete-confirmation-modal .modal-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.delete-confirmation-modal .modal-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delete-confirmation-modal .modal-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.98);
}

.delete-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.delete-warning ul {
    margin: 0.5rem 0 0 1rem;
    color: #7f1d1d;
}

.delete-warning li {
    margin-bottom: 0.5rem;
}

#confirmDeleteInput {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#confirmDeleteInput:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Subject Pills Styling */
.subject-pill {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1), rgba(139, 21, 56, 0.05));
    color: #8B1538;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px 4px;
    border: 1px solid rgba(139, 21, 56, 0.2);
    transition: all 0.3s ease;
}

.subject-pill:hover {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.2), rgba(139, 21, 56, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.15);
}

.subject-pill.more-subjects {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.subject-pill.more-subjects:hover {
    background: linear-gradient(135deg, #A91B47, #8B1538);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
}

/* Bio More Link */
.bio-more {
    color: #8B1538;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.bio-more:hover {
    color: #A91B47;
    text-decoration: none;
}

/* Tutor Card Improvements */
.tutor-details {
    padding: 1rem 0;
}

.tutor-bio {
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #4a5568;
}

.tutor-languages {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #2d3748;
}

.tutor-subjects {
    margin-bottom: 1rem;
}

/* Tutor Modal Styling */
.tutor-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

.tutor-modal-info h3 {
    color: #8B1538;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.tutor-modal-info p {
    color: #6b7280;
    margin: 0 0 0.5rem 0;
}

.tutor-modal-info .tutor-rate {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.academic-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.year-info {
    color: #8B1538;
    font-weight: 600;
    font-size: 0.95rem;
}

.separator {
    color: #6b7280;
    font-weight: 300;
    font-size: 0.9rem;
}

.specialization-info {
    color: #6b7280;
    font-size: 0.95rem;
}

.tutor-modal-details {
    margin-bottom: 2rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    color: #8B1538;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(139, 21, 56, 0.2);
    padding-bottom: 0.25rem;
}

.detail-section p {
    line-height: 1.5;
    color: #4a5568;
}

/* Scrollable bio section in tutor modal */
.detail-section:first-child p {
    max-height: 80px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(139, 21, 56, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(139, 21, 56, 0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 21, 56, 0.3) transparent;
}

/* Custom scrollbar for bio */
.detail-section:first-child p::-webkit-scrollbar {
    width: 6px;
}

.detail-section:first-child p::-webkit-scrollbar-track {
    background: rgba(139, 21, 56, 0.05);
    border-radius: 3px;
}

.detail-section:first-child p::-webkit-scrollbar-thumb {
    background: rgba(139, 21, 56, 0.3);
    border-radius: 3px;
}

.detail-section:first-child p::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 21, 56, 0.5);
}

.all-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.all-available-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tutor-modal-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 2px solid rgba(139, 21, 56, 0.1);
}

/* Pending Requests Mobile Responsive */
@media (max-width: 768px) {
    .pending-requests-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .pending-stats {
        justify-content: center;
    }
    
    .request-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .request-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .request-actions {
        justify-content: center;
    }
    
    .pending-request-card, .request-card {
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
}

/* Tutor Profile Modal Styles */
#tutorModal .modal-content {
    max-height: 70vh;
    max-width: 600px;
    width: 90%;
    margin: 8% auto;
    overflow-y: auto;
}

#tutorModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    border-radius: 20px 20px 0 0;
    margin: 0;
}

#tutorModal .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

#tutorModal .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
    line-height: 1;
    font-family: Arial, sans-serif;
}

#tutorModal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

#tutorModal .modal-body {
    padding: 2rem;
    max-height: calc(70vh - 120px);
    overflow-y: auto;
}

.tutor-modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

.tutor-modal-info h3 {
    margin: 0 0 0.5rem 0;
    color: #8B1538;
    font-size: 1.3rem;
    font-weight: 700;
}

.tutor-modal-info p {
    margin: 0 0 0.5rem 0;
    color: #64748b;
    font-size: 1rem;
}

.tutor-rate {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    color: #8B1538;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.profile-available-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.more-slots-btn {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.more-slots-btn:hover {
    background: linear-gradient(135deg, #A91B47, #8B1538);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
}

.tutor-modal-actions {
    margin-top: 2rem;
    margin-bottom: 4rem;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
    border-top: 2px solid rgba(139, 21, 56, 0.1);
    text-align: center;
}

/* Tutor Modal Mobile Responsive */
@media (max-width: 768px) {
    #tutorModal .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 92vh;
        border-radius: 16px;
    }
    
    #tutorModal .modal-header {
        padding: 1rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }
    
    #tutorModal .modal-header h3 {
        font-size: 1.3rem;
    }
    
    #tutorModal .modal-body {
        padding: 1.5rem;
        max-height: calc(92vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tutor-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .tutor-avatar-large {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
    }
    
    .tutor-modal-info h3 {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .tutor-modal-info p {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .academic-info {
        justify-content: center !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .year-info {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
    
    .separator {
        font-size: 1rem !important;
        font-weight: 400 !important;
    }
    
    .specialization-info {
        font-size: 1rem !important;
    }
    
    .rating-display {
        justify-content: center !important;
        margin-bottom: 1rem !important;
    }
    
    .detail-section {
        margin-bottom: 1.5rem !important;
    }
    
    .detail-section h4 {
        font-size: 1.2rem !important;
        margin-bottom: 0.75rem !important;
        color: #8B1538 !important;
    }
    
    .detail-section p, .detail-section ul {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .subject-tags {
        gap: 0.5rem !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .subject-tag {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
    }
    
    .tutor-modal-actions {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
        text-align: center !important;
    }
    
    .tutor-modal-actions .btn-primary {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        min-height: 50px !important;
    }
}

@media (max-width: 480px) {
    #tutorModal .modal-content {
        margin: 1% auto;
        width: 98%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    #tutorModal .modal-header {
        padding: 0.75rem 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    #tutorModal .modal-header h3 {
        font-size: 1.2rem;
    }
    
    #tutorModal .modal-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.4rem !important;
    }
    
    #tutorModal .modal-body {
        padding: 1rem;
        max-height: calc(95vh - 110px);
    }
    
    .tutor-modal-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .tutor-avatar-large {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.8rem !important;
    }
    
    .tutor-modal-info h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .tutor-modal-info p {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .academic-info {
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
        text-align: center !important;
        flex-wrap: wrap !important;
    }
    
    .year-info {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #8B1538 !important;
    }
    
    .separator {
        font-size: 0.95rem !important;
        font-weight: 400 !important;
        color: #6b7280 !important;
    }
    
    .specialization-info {
        font-size: 0.95rem !important;
        color: #6b7280 !important;
    }
    
    .rating-display {
        margin-bottom: 0.75rem !important;
    }
    
    .rating-display .stars {
        font-size: 1rem !important;
    }
    
    .rating-display .rating-count {
        font-size: 0.85rem !important;
    }
    
    .detail-section {
        margin-bottom: 1.25rem !important;
    }
    
    .detail-section h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .detail-section p, .detail-section ul {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .subject-tags {
        gap: 0.4rem !important;
    }
    
    .subject-tag {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
    }
    
    .tutor-modal-actions {
        margin-top: 1.25rem !important;
        padding-top: 1.25rem !important;
    }
    
    .tutor-modal-actions .btn-primary {
        padding: 12px 18px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
        min-height: 46px !important;
    }
}
    
    .profile-available-slots {
        justify-content: center;
    }
}


/* Make session info more compact on one line */
.session-info-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.session-info-inline p {
    margin: 0;
    font-size: 0.9rem;
}

/* Session subsections styling */
.session-subsections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.subsection {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subsection-title {
    color: #8B1538;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(139, 21, 56, 0.2);
}

.session-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Responsive grid for session lists */
@media (max-width: 768px) {
    .session-list {
        display: block;
        padding: 0;
        width: 100%;
    }
    
    .session-subsections {
        gap: 1rem;
        padding: 0;
        margin: 0;
    }
    
    .subsection {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        margin: 0;
    }
    
    .subsection-title {
        margin: 0 0 1rem 0;
        padding: 0 0 0.5rem 0;
        width: 100%;
    }
}

.session-list:empty::after {
    content: "No sessions found";
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Session actions and cancel button */
.session-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
}

.btn-cancel-session {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-session:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Session card states */
.session-card.cancelled {
    opacity: 0.7;
    border-left: 4px solid #dc2626;
}

.cancelled-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: white !important;
}

/* Enhanced arrow animations and ripple effect */
@keyframes ripple {
    0% {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    }
    50% {
        background: linear-gradient(135deg, rgba(113, 23, 28, 0.1), rgba(113, 23, 28, 0.05));
    }
    100% {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    }
}

/* Enhanced arrow hover effects */
.semester-header .dropdown-arrow {
    position: relative;
    overflow: hidden;
}

.semester-header .dropdown-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(113, 23, 28, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.semester-header:hover .dropdown-arrow::before {
    width: 100%;
    height: 100%;
}


/* Smooth transition for subject list */
.semester-box {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.semester-box.expanded {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   CUSTOM TOAST NOTIFICATION SYSTEM
========================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-left: 5px solid #71171C;
    border-radius: 12px;
    padding: 16px 15px;
    margin-bottom: 12px;
    max-width: 400px;
    min-width: 300px;
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(113, 23, 28, 0.05), rgba(113, 23, 28, 0.02));
    pointer-events: none;
}

.toast.toast-success {
    border-left-color: #22c55e;
}

.toast.toast-success::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
}

.toast.toast-error {
    border-left-color: #dc2626;
}

.toast.toast-error::before {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(220, 38, 38, 0.02));
}

.toast.toast-warning {
    border-left-color: #f59e0b;
}

.toast.toast-warning::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.02));
}

.toast.toast-info {
    border-left-color: #3b82f6;
}

.toast.toast-info::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.toast-success .toast-icon {
    background: #22c55e;
    color: white;
}

.toast-error .toast-icon {
    background: #dc2626;
    color: white;
}

.toast-warning .toast-icon {
    background: #f59e0b;
    color: white;
}

.toast-info .toast-icon {
    background: #3b82f6;
    color: white;
}

.toast-title {
    font-weight: 700;
    font-size: 16px;
    color: #71171C;
    margin: 0;
}

.toast-message {
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 2;
}

.toast-close:hover {
    background: rgba(156, 163, 175, 0.1);
    color: #71171C;
    transform: scale(1.1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(113, 23, 28, 0.3);
    animation: progressBar 5s linear forwards;
}

.toast-success .toast-progress {
    background: rgba(34, 197, 94, 0.3);
}

.toast-error .toast-progress {
    background: rgba(220, 38, 38, 0.3);
}

.toast-warning .toast-progress {
    background: rgba(245, 158, 11, 0.3);
}

.toast-info .toast-progress {
    background: rgba(59, 130, 246, 0.3);
}

/* ==========================================
   CUSTOM MODAL SYSTEM
========================================== */

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.custom-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: slideInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid rgba(113, 23, 28, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(113, 23, 28, 0.03), rgba(113, 23, 28, 0.01));
}

.custom-modal-header h3 {
    margin: 0;
    color: #71171C;
    font-size: 20px;
    font-weight: 700;
}

.custom-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(113, 23, 28, 0.1);
}

.custom-modal-body {
    padding: 24px;
}

.custom-modal-body p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 16px;
}

.custom-modal-actions {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(249, 250, 251, 0.8);
}

.custom-btn-primary {
    background: linear-gradient(135deg, #71171C, #8b1538);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.custom-btn-primary:hover {
    background: linear-gradient(135deg, #8b1538, #71171C);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(113, 23, 28, 0.4);
}

.custom-btn-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.custom-btn-secondary:hover {
    background: rgba(107, 114, 128, 0.2);
    border-color: rgba(107, 114, 128, 0.5);
    transform: translateY(-1px);
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInScale {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.toast.slide-out {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .toast-container {
        top: env(safe-area-inset-top, 10px);
        right: 15px;
        left: 15px;
        position: fixed;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        padding: 12px 16px;
        margin-bottom: 8px;
        font-size: 14px;
        border-radius: 8px;
        animation: slideInDown 0.3s ease-out;
    }
    
    .toast-header {
        margin-bottom: 4px;
    }
    
    .toast-title {
        font-size: 14px;
        font-weight: 600;
    }
    
    .toast-message {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .toast-icon {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .toast-close {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
    
    .custom-modal-content {
        margin: 10px;
        max-width: none;
    }
}

/* ==========================================
   TEACHING METHOD CARDS
========================================== */

.teaching-method-label {
    font-size: 18px;
    font-weight: 700;
    color: #71171C;
    margin-bottom: 16px;
    display: block;
}

.teaching-method-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 12px;
    margin-top: 8px;
}

.teaching-method-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(113, 23, 28, 0.05);
    border: 2px solid rgba(169, 169, 169, 0.8);
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 0;
}

.teaching-method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(113, 23, 28, 0.15);
}

/* Hover state for unselected cards - keep grey border visible */
.teaching-method-card:hover:not(:has(input[type="checkbox"]:checked)):not(.selected) {
    border-color: rgba(169, 169, 169, 1);
}

/* Hover state for selected cards */
.teaching-method-card:hover:has(input[type="checkbox"]:checked),
.teaching-method-card:hover.selected {
    border-color: #71171C;
}

.teaching-method-option {
    display: block;
    cursor: pointer;
    padding: 12px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.teaching-method-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.method-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.method-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.method-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #71171C;
    margin: 0 0 4px 0;
    transition: all 0.3s ease;
}

.method-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.method-checkmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(113, 23, 28, 0.2);
}

/* Checked state styling */
.teaching-method-option input[type="checkbox"]:checked ~ .method-content .method-icon {
    transform: scale(1.1);
    opacity: 1;
}

.teaching-method-option input[type="checkbox"]:checked ~ .method-content .method-info h4 {
    color: #71171C;
}

.teaching-method-option input[type="checkbox"]:checked ~ .method-content .method-info p {
    color: #4a5568;
}

.teaching-method-option input[type="checkbox"]:checked ~ .method-checkmark {
    background: linear-gradient(135deg, #71171C, #8b1538);
    color: white;
    border-color: #71171C;
    transform: scale(1.1);
}

.teaching-method-option input[type="checkbox"]:checked + .method-content + .method-checkmark {
    background: linear-gradient(135deg, #71171C, #8b1538);
    color: white;
    border-color: #71171C;
    transform: scale(1.1);
}

/* Card selected state */
.teaching-method-card:has(input[type="checkbox"]:checked),
.teaching-method-card.selected {
    background: linear-gradient(135deg, rgba(113, 23, 28, 0.08), rgba(113, 23, 28, 0.03));
    border: 2px solid #71171C !important;
    box-shadow: 0 4px 20px rgba(113, 23, 28, 0.2);
    transform: translateY(-2px);
}

/* Pulse animation for selected cards */
.teaching-method-card:has(input[type="checkbox"]:checked)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(113, 23, 28, 0.1), rgba(113, 23, 28, 0.05));
    border-radius: 14px;
    animation: pulse 2s infinite;
    pointer-events: none;
}

.teaching-method-help {
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
    display: block;
    margin-top: 8px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.1;
    }
}

@keyframes cardSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes cardShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

/* Hover effects */
.teaching-method-card:hover .method-icon {
    transform: scale(1.05);
}

.teaching-method-card:hover .method-info h4 {
    color: #8b1538;
}

.teaching-method-card:hover .method-checkmark {
    background: rgba(113, 23, 28, 0.1);
    border-color: rgba(113, 23, 28, 0.3);
}

/* Focus states for accessibility */
.teaching-method-option input[type="checkbox"]:focus + .method-content + .method-checkmark {
    box-shadow: 0 0 0 3px rgba(113, 23, 28, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .teaching-method-container {
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }
    
    .teaching-method-card {
        border-radius: 12px;
        min-height: 60px;
    }
    
    .teaching-method-option {
        padding: 16px 15px;
        display: flex;
        align-items: center;
    }
    
    .method-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        width: 100%;
    }
    
    .method-icon {
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .method-info h4 {
        font-size: 1rem;
        margin: 0;
        font-weight: 600;
    }
    
    .teaching-method-help {
        font-size: 0.9rem;
        margin-bottom: 12px;
        margin-top: 8px;
    }
    
    .method-info p {
        font-size: 13px;
    }
}

/* Mobile-First Additional Improvements */
@media (max-width: 480px) {
    /* Better button spacing */
    .btn-primary, .btn-secondary {
        margin-bottom: 8px;
        width: 100%;
        padding: 16px 15px;
    }
    
    /* Improved form spacing */
    .auth-form {
        gap: 1.25rem;
    }
    
    /* Mobile checkbox sizing */
    .subject-options input[type="checkbox"],
    .language-checkboxes input[type="checkbox"],
    .subject-checkboxes input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    /* Improved auth container padding */
    .auth-container {
        padding: 1.25rem;
        margin: 0 12px;
        border-radius: 12px;
    }
    
    /* Better mobile spacing */
    .profile-section {
        padding: 1.25rem;
        margin: 8px;
        border-radius: 12px;
    }
    
    /* Session element mobile responsiveness */
    .session-type-pill {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .prominent-time {
        font-size: 1rem;
        padding: 3px 6px;
    }
    
    .prominent-date {
        font-size: 0.85rem;
        padding: 2px 4px;
    }
    
    .session-header {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .session-actions {
        gap: 0.5rem;
    }
    
    .btn-cancel-session, .btn-complete-session {
        font-size: 0.8rem;
        padding: 6px 12px;
        flex: 1;
        min-width: 100px;
    }
}

/* Enrollment Modal Styles */
.enrollment-section {
    margin-bottom: 2rem;
}

.section-title {
    color: #8B1538;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #8B1538;
    padding-bottom: 0.5rem;
}

/* Confirmed students list - flex column */
.confirmed-students-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pending-request-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pending-request-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.pending-request-item .student-info {
    flex: 1;
}

.pending-request-item .student-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced styling for student pending cards content */
.pending-request-item p {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

.pending-request-item strong {
    color: #8B1538;
    font-weight: 600;
}

.request-date {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

.request-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.btn-accept:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-decline {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
}

.btn-decline:hover {
    background: #c82333;
    transform: translateY(-1px);
}
/* ==========================================
   TUTOR CLASS CARD STYLES
   ========================================== */

.tutor-class-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tutor-class-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.1);
    border-color: rgba(139, 21, 56, 0.3);
}

.pending-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    animation: pendingPulse 2s infinite ease-in-out;
}

@keyframes pendingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.5);
    }
}

.class-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.class-title {
    margin: 0;
    color: #8b1538;
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.class-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.class-date {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.class-time {
    color: #666;
    font-size: 0.875rem;
}

.class-details {
    margin-bottom: 1rem;
}

.class-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.info-item.location-item {
    grid-column: 1 / -1;
}

.info-item .label {
    color: #666;
    font-size: 0.875rem;
    white-space: nowrap;
}

.info-item .value {
    font-weight: 600;
    color: #333;
    text-align: right;
    flex-shrink: 0;
}

.class-description {
    padding: 0.75rem;
    background: rgba(139, 21, 56, 0.05);
    border-radius: 8px;
    border-left: 3px solid #8b1538;
}

.class-description p {
    margin: 0;
    color: #555;
    font-size: 0.875rem;
    line-height: 1.4;
}

.class-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
}

/* Mobile responsiveness for tutor class cards */
@media (max-width: 768px) {
    .tutor-class-card {
        padding: 1rem;
    }
    
    .class-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .class-meta {
        align-items: flex-start;
    }
    
    .class-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .info-item {
        justify-content: space-between;
    }
    
    .info-item .value {
        text-align: right;
    }
}

.pending-requests-box {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    z-index: 3;
    white-space: nowrap;
}

.class-details-grid {
    margin: 0.75rem 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.detail-item {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.detail-item strong {
    color: #8b1538;
    font-weight: 600;
}

.detail-item.description-full {
    flex: 1;
    width: 100%;
}

@media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-item {
        width: 100%;
    }
}

/* ==========================================
   STAR RATING SYSTEM
   ========================================== */

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
}

.rating-count {
    color: #666;
    font-size: 0.85rem;
}

/* Interactive rating input */
.star-rating-input {
    display: flex;
    gap: 4px;
    margin: 1rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.star-rating-input .star {
    cursor: pointer;
    font-size: 1.8rem;
    color: #e5e5e5;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.star-rating-input .star:hover,
.star-rating-input .star.hovered {
    color: #ffd700;
    transform: scale(1.1);
}

.star-rating-input .star.selected {
    color: #ffd700;
}

.rating-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(139, 34, 82, 0.02));
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 1px solid rgba(139, 34, 82, 0.15);
    box-shadow: 0 4px 20px rgba(139, 34, 82, 0.1);
}

.rating-form h6 {
    margin: 0 0 1rem 0;
    color: #8b1538;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.rating-form h6::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #8b1538, #d4af37);
    border-radius: 1px;
}

.rating-comment {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(139, 34, 82, 0.1);
    border-radius: 12px;
    margin: 1rem 0;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.rating-comment:focus {
    outline: none;
    border-color: #8b1538;
    box-shadow: 0 0 0 3px rgba(139, 34, 82, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.rating-comment::placeholder {
    color: #999;
}

.submit-rating-btn {
    background: linear-gradient(135deg, #8b1538, #a91d4a);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 34, 82, 0.3);
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-rating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-rating-btn:hover {
    background: linear-gradient(135deg, #71171C, #8b1538);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 34, 82, 0.4);
}

.submit-rating-btn:hover::before {
    left: 100%;
}

.submit-rating-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(139, 34, 82, 0.3);
}

.submit-rating-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-rating-btn:disabled::before {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .star-rating-input .star {
        font-size: 1.6rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    .rating-form {
        padding: 1.25rem;
        margin: 1rem 0;
    }
    
    .rating-comment {
        min-height: 70px;
        padding: 0.875rem;
    }
    
    .submit-rating-btn {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .star-rating-input {
        gap: 2px;
    }
    
    .star-rating-input .star {
        font-size: 1.4rem;
        min-width: 32px;
        min-height: 32px;
    }
    
    .rating-form {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .rating-form h6 {
        font-size: 1rem;
    }
}

.ratings-list {
    margin-top: 1.5rem;
}

.rating-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(139, 34, 82, 0.01));
    backdrop-filter: blur(8px);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    border: 1px solid rgba(139, 34, 82, 0.1);
    box-shadow: 0 2px 10px rgba(139, 34, 82, 0.08);
    position: relative;
    overflow: hidden;
}

.rating-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #8b1538;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.rating-author {
    font-weight: 600;
    color: #8b1538;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rating-date {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
    margin-left: auto;
    flex-shrink: 0;
}

.rating-stars {
    display: flex;
    gap: 1px;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.rating-stars .star {
    color: #e0e0e0; /* Empty/unfilled stars are gray */
    font-size: 0.8rem;
}

.rating-stars .star.filled {
    color: #ffd700; /* Only filled stars are golden */
}

.rating-comment-text {
    color: #555;
    line-height: 1.4;
    margin-top: 0;
    font-size: 0.85rem;
}

/* Mobile Responsiveness for Reviews */
@media (max-width: 768px) {
    .rating-item {
        padding: 0.875rem;
        margin: 0.375rem 0;
    }
    
    .rating-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .rating-author {
        font-size: 0.85rem;
    }
    
    .rating-date {
        font-size: 0.75rem;
    }
    
    .rating-stars .star {
        font-size: 0.75rem;
        color: #e0e0e0; /* Empty/unfilled stars are gray on mobile too */
    }
    
    .rating-stars .star.filled {
        color: #ffd700; /* Only filled stars are golden on mobile */
    }
    
    .rating-comment-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .rating-item {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .rating-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 0.375rem;
    }
    
    .rating-date {
        margin-left: 0;
    }
    
    .rating-stars {
        margin-left: 0;
    }
}

.btn-enrollments-top {
    position: absolute;
    top: 55px;
    right: 15px;
    background: #8b1538;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    white-space: nowrap;
}

.btn-enrollments-top:hover {
    background: #71171C;
    transform: translateY(-1px);
}

.btn-danger-bottom {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger-bottom:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* ==========================================
   TUTOR CLASS CARDS - REDESIGNED
   ========================================== */
.class-card-tutor {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.08);
    border: 1px solid rgba(139, 21, 56, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.class-card-tutor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 21, 56, 0.12);
}

/* Boxes container for pending requests and enrollment display */
.boxes-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: stretch;
}

/* Pending requests indicator - always visible */
.pending-requests-indicator {
    border-radius: 12px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 48px;
    max-height: 48px;
    justify-content: center;
}

.pending-requests-indicator.has-pending {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.pending-requests-indicator.no-pending {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.pending-count {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.has-pending .pending-count {
    background: rgba(255, 255, 255, 0.2);
}

.no-pending .pending-count {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
}

.pending-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* New header layout */
.class-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.class-title-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1;
}

.enrollment-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(139, 21, 56, 0.08);
    border-radius: 12px;
    padding: 8px 16px;
    flex: 1;
    min-height: 48px;
    max-height: 48px;
    justify-content: center;
}

.enrollment-numbers {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8B1538;
    line-height: 1;
}

.enrollment-text {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-weight: 600;
}

.subject-tag {
    background: linear-gradient(135deg, #8B1538, #a01d42);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* New details grid with better spacing */
.class-details-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 21, 56, 0.08);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.detail-card:hover {
    background: rgba(139, 21, 56, 0.03);
    transform: translateY(-1px);
}

/* Location card for booking details spans full width on its own row */
.booking-detail .location-card,
.detail-card.location-card {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.015) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 4px;
    text-align: center;
}

.detail-label {
    font-size: 0.7rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
}

.date-time-card .detail-value {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.date-time-card .detail-label {
    font-size: 0.8rem;
    color: #8B1538;
    font-weight: 700;
}

/* Description - compact */
.class-desc-compact {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Top button row - Edit and Cancel */
.class-buttons-top {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 8px;
}

/* Bottom right buttons - View and Delete */
.class-buttons-bottom-right {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    margin-top: -4px;
}

.btn-small {
    font-size: 0.75rem;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-edit {
    background: #6c757d;
    color: white;
}

.btn-edit:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-view:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .class-card-tutor {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .class-header-new {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .class-title-main {
        font-size: 1.25rem;
    }
    
    .enrollment-display {
        align-self: flex-end;
        min-width: 70px;
    }
    
    .class-details-grid-new {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .detail-card {
        padding: 12px 4px;
        min-width: 0;
        font-size: 0.8rem;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .detail-value {
        font-size: 1rem;
        margin-bottom: 2px;
        font-weight: 600;
    }
    
    .detail-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .date-time-card .detail-value {
        font-size: 0.85rem;
    }
    
    .date-time-card .detail-label {
        font-size: 0.75rem;
    }
    
    .class-buttons-top {
        gap: 6px;
        justify-content: flex-start;
    }
    
    .class-buttons-bottom-right {
        gap: 6px;
        justify-content: flex-end;
    }
    
    .btn-small {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .class-details-grid-new {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }
    
    .detail-card {
        padding: 10px 2px !important;
        border-radius: 6px;
        min-height: 65px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .detail-value {
        font-size: 0.9rem !important;
    }
    
    .detail-label {
        font-size: 0.65rem !important;
    }
}

/* Container constraints to prevent overflow */
.classes-sections, .classes-list {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.classes-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Make section headings larger */
.classes-section h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8B1538;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* Ensure cards don't overflow their containers */
.class-card-tutor {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile specific constraints */
@media (max-width: 768px) {
    .classes-sections, .classes-list, .classes-section {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .class-card-tutor {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Ensure details grid respects container width */
    .class-details-grid-new {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }
    
    .detail-card {
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
    }
    
    .detail-value, .detail-label {
        word-wrap: break-word !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Ensure tab content doesn't overflow on mobile */
    .tab-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding: 15px !important;
    }
    
    #tutorClassesTab, #tutorBookingsTab, #tutorAvailabilityTab {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* ==========================================
   TUTOR BOOKING CARDS - REDESIGNED
   ========================================== */
   
.booking-card-tutor {
    background: white;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 6px 25px rgba(139, 21, 56, 0.08);
    border: 1px solid rgba(139, 21, 56, 0.05);
    position: relative;
    transition: all 0.3s ease;
    min-height: 200px;
}

.booking-card-tutor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 21, 56, 0.10);
}

.booking-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
}

.booking-title-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1;
}

.booking-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.status-approved {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.booking-status-indicator.status-cancelled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.booking-status-indicator.status-completed,
.booking-status-indicator.status-past {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.booking-status-indicator.status-today {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.booking-status-indicator.status-upcoming {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.booking-status-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.booking-type-display {
    background: rgba(139, 21, 56, 0.08);
    color: #8B1538;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    flex-shrink: 0;
}

.booking-details-grid-new {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.detail-box-new {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 21, 56, 0.06);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-value-new {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 3px;
}

.detail-label-new {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.booking-extra-info {
    margin: 12px 0;
}

.info-item {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 4px;
    padding: 2px 0;
}

.booking-buttons-bottom-right {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 16px;
}

.booking-type-tag {
    background: rgba(139, 21, 56, 0.08);
    color: #8B1538;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 14px;
    display: inline-block;
}

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

.booking-detail-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(139, 21, 56, 0.08);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.booking-detail-item:hover {
    background: rgba(139, 21, 56, 0.03);
    transform: translateY(-1px);
}

.booking-detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 4px;
}

.booking-detail-label {
    font-size: 0.7rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.booking-student-info {
    background: rgba(139, 21, 56, 0.03);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #555;
}

.booking-actions-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.btn-booking-small {
    font-size: 0.7rem;
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-approve {
    background: #22c55e;
    color: white;
}

.btn-approve:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

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

.btn-decline:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Mobile responsiveness for booking cards - Copy pending card dimensions */
@media (max-width: 768px) {
    .booking-card-tutor {
        padding: 1.25rem;
        margin: 0.75rem 0 1rem 0;
        border-radius: 15px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .booking-header-new {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        margin-bottom: 1.5rem;
    }
    
    .booking-title-main {
        font-size: 1.2rem !important;
        font-weight: 700;
        line-height: 1.3;
    }
    
    .booking-details-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .booking-details-grid-new {
        display: grid;
        grid-template-columns: repeat(3, minmax(90px, 1fr)) !important;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .detail-box-new {
        padding: 1rem 0.5rem;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 12px;
    }
    
    .detail-value-new {
        font-size: 1.1rem !important;
        font-weight: 600;
    }
    
    .detail-label-new {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem;
    }
    
    .booking-buttons-bottom-right {
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .booking-detail-item {
        padding: 0.75rem 0.5rem;
        font-size: 1rem;
    }
    
    .booking-status-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem !important;
        font-weight: 700;
        border-radius: 20px;
    }
    
    /* Mobile optimization for profile visibility notice */
    .profile-completion-warning {
        padding: 10px 14px !important;
        margin-bottom: 16px !important;
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
}

/* Small mobile screens - larger fonts and better proportions */
@media (max-width: 480px) {
    .booking-card-tutor {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 18px;
    }
    
    .booking-title-main {
        font-size: 1.4rem !important;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .detail-value-new {
        font-size: 1.1rem !important;
        font-weight: 600;
    }
    
    .detail-label-new {
        font-size: 0.85rem !important;
        margin-bottom: 0.3rem;
    }
    
    .booking-status-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem !important;
        font-weight: 700;
    }
    
    .detail-box-new {
        padding: 1.2rem 0.6rem;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .booking-detail-item {
        padding: 12px 4px;
        min-width: 0;
        font-size: 0.8rem;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Enhanced mobile styling for booking detail text */
    .booking-detail-value {
        font-size: 1rem;
        margin-bottom: 2px;
        font-weight: 600;
    }
    
    .booking-detail-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .detail-value-new {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }
    
    .detail-label-new {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }
    
    .booking-buttons-bottom-right {
        margin-top: 1.2rem;
        gap: 0.75rem;
    }
}

/* Extra small screens (iPhone SE, etc.) - Enhanced detail boxes */
@media (max-width: 390px) {
    .booking-details-grid-new {
        grid-template-columns: repeat(3, minmax(85px, 1fr)) !important;
        gap: 0.8rem !important;
        margin: 1.2rem 0 !important;
    }
    
    .booking-detail-item {
        padding: 10px 2px !important;
        border-radius: 6px;
        min-height: 65px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .detail-box-new {
        min-height: 90px !important;
        padding: 1.4rem 0.4rem !important;
        border-radius: 12px !important;
    }
    
    .booking-detail-value {
        font-size: 0.9rem !important;
    }
    
    .booking-detail-label {
        font-size: 0.65rem !important;
    }
    
    .detail-value-new {
        font-size: 1.6rem !important;
        font-weight: 800 !important;
        margin-bottom: 5px !important;
        line-height: 1.1 !important;
    }
    
    .detail-label-new {
        font-size: 1rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }
    
    .booking-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px !important;
        margin-bottom: 12px !important;
    }
    
    .booking-header-new {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Optimize profile visibility notice for mobile */
    .profile-completion-warning {
        padding: 8px 12px !important;
        margin-bottom: 12px !important;
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        border-radius: 6px !important;
    }
    
    .profile-completion-warning div[style*="display: flex"] {
        gap: 6px !important;
    }
    
    .profile-completion-warning span[style*="font-size"] {
        font-size: 14px !important;
    }
    
    .profile-completion-warning strong {
        display: block;
        margin-bottom: 4px;
        font-size: 0.9rem;
    }
}
    
    .booking-actions-row {
        gap: 6px;
        justify-content: center;
    }
    
    .btn-booking-small {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}

/* ==========================================
   CLASS FILTERS
   ========================================== */

.class-filters,
.tutor-filters {
    background: rgba(139, 21, 56, 0.02);
    border: 1px solid rgba(139, 21, 56, 0.06);
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
}

.filter-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #8b1538;
    box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.1);
}

.filter-group .btn-secondary {
    margin-top: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
}
/* Load More Section Styles */
.load-more-section {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
}

.load-more-btn {
    background: rgba(139, 21, 56, 0.05);
    color: #8B1538;
    border: 1px solid rgba(139, 21, 56, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: rgba(139, 21, 56, 0.1);
    border-color: rgba(139, 21, 56, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.15);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* Mobile responsive for load more */
@media (max-width: 768px) {
    .load-more-section {
        padding: 1rem 0;
    }
    
    .load-more-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}


/* Time display colors */
.time-future {
    color: #007ACC !important;
}

.time-today {
    color: #28A745 !important;
}

.time-completed {
    color: #DC3545 !important;
}

.time-cancelled {
    color: #6C757D !important;
}


/* Time display background colors to match font colors */
.time-future {
    color: #007ACC !important;
    background: rgba(0, 122, 204, 0.1) !important;
    border-color: rgba(0, 122, 204, 0.3) !important;
}

.time-today {
    color: #28A745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
}

.time-completed {
    color: #DC3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.time-cancelled {
    color: #6C757D !important;
    background: rgba(108, 117, 125, 0.1) !important;
    border-color: rgba(108, 117, 125, 0.3) !important;
}


/* OTP Verification Styling */
.otp-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.otp-info strong {
    color: #8B1538;
}

.otp-input-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

#otpCode {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-family: monospace;
    width: 100%;
    max-width: 250px;
    padding: 1rem;
    border: 2px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

#otpCode:focus {
    border-color: #8B1538;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.otp-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    border: 1px solid rgba(139, 21, 56, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(139, 21, 56, 0.15);
    border-color: rgba(139, 21, 56, 0.4);
}

.btn-text {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #8B1538;
}


/* OTP Digit Boxes - Individual styling */
.otp-digits {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.otp-digit {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #8B1538;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s ease;
    line-height: 1;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.otp-digit:focus {
    border-color: #8B1538;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.15);
    transform: scale(1.05);
}

.otp-digit:valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.reset-otp-digit {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #8B1538;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s ease;
    line-height: 1;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reset-otp-digit:focus {
    border-color: #8B1538;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.15);
    transform: scale(1.05);
}

.reset-otp-digit:valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

/* Remove old single input styling */
#otpCode {
    display: none;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .otp-digits {
        gap: 0.25rem;
        margin: 1rem 0;
        flex-wrap: nowrap;
        overflow-x: visible;
    }
    
    .otp-digit,
    .reset-otp-digit {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        line-height: 1;
        letter-spacing: 0;
        min-width: 2rem;
        flex-shrink: 0;
        border-width: 1px;
        padding: 0;
    }
    
    .otp-digit:focus,
    .reset-otp-digit:focus {
        box-shadow: 0 0 0 1px rgba(139, 21, 56, 0.3);
        transform: none;
    }
    
    .otp-digit:valid,
    .reset-otp-digit:valid {
        border-width: 1px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .otp-digits {
        gap: 0.2rem;
        justify-content: space-between;
        padding: 0 0.5rem;
    }
    
    .otp-digit,
    .reset-otp-digit {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.95rem;
        min-width: 1.8rem;
        border-width: 1px;
    }
}

/* Desktop screens - make student analytics closer together */
@media (min-width: 1025px) {
    #studentDashboard .header-stats {
        gap: 8px !important;
        max-width: 900px;
        margin: 0 auto;
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    #studentDashboard .stat-card {
        padding: 12px 8px !important;
        min-width: 0 !important;
    }
}

/* Password Requirements Styling */
.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(139, 21, 56, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
}

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

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.requirement:last-child {
    margin-bottom: 0;
}

.req-icon {
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.requirement.unmet {
    color: #6c757d;
}

.requirement.unmet .req-icon {
    color: #6c757d;
    border: 1px solid #6c757d;
}

.requirement.met {
    color: #28a745;
}

.requirement.met .req-icon {
    color: white;
    background: #28a745;
    border: 1px solid #28a745;
}

.req-text {
    flex: 1;
}

/* Password input focus state enhancement */
#password:focus + .password-requirements {
    border-color: rgba(139, 21, 56, 0.3);
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}


/* Disabled state for resend button */
.btn-secondary.disabled,
.btn-secondary:disabled {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.2);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary.disabled:hover,
.btn-secondary:disabled:hover {
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.2);
    transform: none;
}

/* Admin User Management Enhancements */
.admin-subsection-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.admin-subsection-tab {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #6c757d;
}

.admin-subsection-tab:hover {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
}

.admin-subsection-tab.active {
    background: #8B1538;
    color: white;
    box-shadow: 0 2px 4px rgba(139, 21, 56, 0.2);
}

/* Ban button styling */
.ban-user-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.ban-user-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Banned emails grid */
.banned-emails-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.banned-email-card {
    border-left: 4px solid #dc3545;
    background: rgba(220, 53, 69, 0.02);
}

.banned-email-card .admin-card-title {
    color: #dc3545 !important;
}

/* Unban button styling */
.unban-btn {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.unban-btn:hover {
    background: #218838 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Modal styling improvements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: modalSlideUp 0.4s ease-out;
}

/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px 30px 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.4rem;
}

.modal-close {
    background: white;
    border: 2px solid #dc3545;
    font-size: 20px;
    cursor: pointer;
    color: #dc3545;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: bold;
}

.modal-close:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.3);
}

.modal-footer {
    padding: 20px 30px 25px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
}

.user-info-box {
    background: rgba(139, 21, 56, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 21, 56, 0.15);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #8B1538;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.08);
}

.user-info-box p {
    margin: 8px 0;
    font-weight: 500;
    color: #2c3e50;
}

.user-info-box strong {
    color: #8B1538;
}

/* Enhanced admin card header for better button layout */
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .banned-emails-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-subsection-tabs {
        flex-direction: column;
    }
    
    .admin-subsection-tab {
        text-align: center;
        border-radius: 6px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .admin-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .ban-user-btn, .unban-btn {
        width: 100%;
        text-align: center;
    }
}


/* Banned User Screen Styling */
.banned-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    z-index: 10000;
    box-sizing: border-box;
}

.banned-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    z-index: -1;
}

.banned-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    max-width: calc(100vw - 4rem);
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: modalSlideUp 0.4s ease-out;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    box-sizing: border-box;
}

.banned-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.banned-screen h2 {
    color: #dc3545;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.banned-message {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.ban-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.ban-reason,
.ban-date {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ban-reason:last-child,
.ban-date:last-child {
    margin-bottom: 0;
}

.ban-details strong {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

.ban-details span {
    color: #dc3545;
    font-weight: 500;
    padding: 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

.banned-actions {
    text-align: center;
}

.banned-actions p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .banned-screen {
        padding: 1rem;
    }
    
    .banned-container {
        padding: 2rem 1.5rem;
        margin: 0;
        max-width: calc(100vw - 2rem);
        min-height: auto;
    }
    
    .banned-icon {
        font-size: 3rem;
    }
    
    .banned-screen h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .banned-screen {
        padding: 0.5rem;
    }
    
    .banned-container {
        padding: 1.5rem 1rem;
        max-width: calc(100vw - 1rem);
        border-radius: 16px;
    }
    
    .banned-icon {
        font-size: 2.5rem;
    }
    
    .banned-screen h2 {
        font-size: 1.25rem;
    }
}


/* Banned User Cards Styling */
.banned-user-card {
    border-left: 4px solid #dc3545 !important;
    background: rgba(220, 53, 69, 0.02) !important;
}

.banned-user-card .admin-card-title {
    color: #dc3545 !important;
}

.banned-user-card .user-avatar-small {
    background: #dc3545 !important;
}

.banned-accounts-list {
    margin-top: 1rem;
}

.banned-accounts-list .empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.banned-accounts-list .empty-state h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Admin Users Table - Compact List View */
.admin-users-table {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(139, 21, 56, 0.1);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.admin-users-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-users-table-body {
    max-height: 600px;
    overflow-y: auto;
}

.admin-user-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(139, 21, 56, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
}

.admin-user-row:hover {
    background: rgba(139, 21, 56, 0.02);
}

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

.admin-table-col-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.user-avatar-mini {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8B1538, #A91B47);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.role-badge.role-tutor {
    background: #8B1538;
    color: white;
}

.role-badge.role-student {
    background: #2196F3;
    color: white;
}

.admin-table-col-subscription {
    color: #666;
    font-size: 0.9rem;
}

.action-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ban-btn {
    background: #dc3545;
}

.ban-btn:hover {
    background: #c82333;
}

/* User Profile Modal */
.user-profile-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.user-profile-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.user-profile-header {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

.user-profile-info h2 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
}

.user-profile-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.user-profile-close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-profile-body {
    padding: 30px;
}

.user-profile-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
    gap: 5px;
}

.user-profile-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.user-profile-tab.active {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
}

.user-profile-tab-content {
    display: none;
}

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

/* Revenue breakdown styles */
.revenue-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 21, 56, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.revenue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.revenue-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.revenue-amount {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8B1538;
}

.revenue-breakdown {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
}

.revenue-breakdown.expanded {
    display: block;
}

/* Responsive design for admin table */
@media (max-width: 768px) {
    .admin-users-table-header,
    .admin-user-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .admin-users-table-header {
        display: none;
    }
    
    .admin-user-row {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 10px;
        border: 1px solid rgba(139, 21, 56, 0.1);
    }
    
    .admin-table-col-name {
        font-size: 1.1rem;
        font-weight: 600;
        color: #8B1538;
    }
    
    .user-profile-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .user-profile-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-profile-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .user-profile-tab {
        flex: 1;
        min-width: 120px;
    }
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Removed duplicate animation - handled by specific spinner classes */


.otp-help {
    font-size: 0.9rem;
    color: #8a8a8a;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #A91B47;
}

/* Enhanced mobile responsiveness for pending request cards */
@media (max-width: 768px) {
    .pending-request-card, .request-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .request-header {
        margin-bottom: 0.8rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    
    .request-type {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .type-badge, .status-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .request-date {
        font-size: 0.85rem;
        color: #666;
        margin-top: 0.3rem;
        text-align: right;
    }
    
    .request-details {
        display: block;
        margin-bottom: 1rem;
    }
    
    .tutor-info {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(139, 21, 56, 0.1);
    }
    
    .tutor-info h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: #8B1538;
        font-weight: 600;
    }
    
    .tutor-info p, .session-info p {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .session-info {
        background: linear-gradient(135deg, rgba(139, 21, 56, 0.05), rgba(139, 21, 56, 0.02));
        padding: 1rem;
        border-radius: 10px;
        border-left: 4px solid #8B1538;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .request-actions {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .request-actions .btn-danger {
        width: 100%;
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
}

@media (max-width: 480px) {
    .pending-request-card, .request-card {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
        border-radius: 15px;
    }
    
    .request-header {
        margin-bottom: 0.7rem;
        gap: 0.5rem;
    }
    
    .type-badge, .status-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .request-date {
        font-size: 0.8rem;
    }
    
    .tutor-info h5 {
        font-size: 1rem;
    }
    
    .tutor-info p, .session-info p {
        font-size: 0.85rem;
    }
    
    .session-info {
        padding: 0.8rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem 0.8rem;
    }
    
    .session-info p {
        margin-bottom: 0.3rem;
    }
    
    .session-info strong {
        display: block;
        font-size: 0.7rem;
        color: #8B1538;
        font-weight: 600;
        margin-bottom: 0.2rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .request-actions .btn-danger {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Better spacing for pending requests list */
    .pending-requests-list {
        padding: 0 0.5rem;
    }
    
    .pending-request-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    /* Improve session type tabs */
    .session-type-tabs {
        margin-bottom: 1.2rem;
        gap: 0.5rem;
    }
    
    .session-type-btn {
        flex: 1;
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 8px;
        font-weight: 600;
    }
    
    /* Improve pending requests header */
    .pending-requests-header h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: center;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        padding: 0 0.5rem;
    }
    
    /* Better empty state styling */
    .empty-state {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .empty-state h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Improve session content sections */
    .session-content {
        padding: 0;
    }
    
    .session-content h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        color: #8B1538;
        text-align: center;
    }
}
    
    .type-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .status-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Location Preferences Styles - Modern Design */
.location-preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
    gap: 12px;
    margin-top: 12px;
    justify-content: start;
}

.location-preference-option {
    cursor: pointer;
    display: block;
}

.location-preference-option input[type="checkbox"] {
    display: none;
}

.location-card {
    border: 2px solid rgba(220, 53, 69, 0.25);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(185, 45, 60, 0.25));
    padding: 12px 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.location-card:hover {
    border-color: rgba(220, 53, 69, 0.5);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.5), rgba(185, 45, 60, 0.45));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(220, 53, 69, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
}

.location-preference-option input[type="checkbox"]:checked + .location-card {
    border-color: rgba(139, 0, 0, 1);
    background: linear-gradient(135deg, rgba(220, 53, 69, 1), rgba(185, 45, 60, 1));
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.4), 0 4px 16px rgba(139, 0, 0, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.location-preference-option input[type="checkbox"]:checked + .location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.location-preference-option input[type="checkbox"]:checked + .location-card::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 1), rgba(100, 0, 0, 1));
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.location-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.location-name {
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    font-size: 16px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.location-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

/* Desktop optimization for location preferences */
@media (min-width: 1024px) {
    .location-preferences-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 120px));
        gap: 10px;
        max-width: 600px;
    }
    
    .location-card {
        padding: 10px 8px;
        border-radius: 10px;
    }
    
    .location-icon {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .location-name {
        font-size: 13px;
        font-weight: 600;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1023px) {
    .location-preferences-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 150px));
        gap: 12px;
        max-width: 700px;
    }
    
    .location-card {
        padding: 14px 12px;
    }
}

@media (max-width: 768px) {
    .location-preferences-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .location-card {
        padding: 18px 14px;
    }
    
    .location-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .location-name {
        font-size: 15px;
    }
    
    .location-desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .location-preferences-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .location-card {
        padding: 16px 10px;
        border-radius: 14px;
    }
    
    .location-icon {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .location-name {
        font-size: 13px;
        margin-bottom: 4px;
        letter-spacing: 0.3px;
    }
    
    .location-desc {
        font-size: 10px;
        letter-spacing: 0.2px;
    }
    
    .location-preference-option input[type="checkbox"]:checked + .location-card::after {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: 8px;
        right: 8px;
    }
}

/* Mobile Booking Modal Optimization */
@media (max-width: 768px) {
    #bookingModal .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: none;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .daily-calendar {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 20px;
        margin: 16px 0;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .calendar-navigation {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 10px 16px;
    }
    
    .nav-arrow {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.8), rgba(185, 45, 60, 0.8));
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        color: white;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-arrow:hover {
        background: linear-gradient(135deg, rgba(220, 53, 69, 1), rgba(185, 45, 60, 1));
        transform: scale(1.1);
        box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
    }
    
    .current-date {
        text-align: center;
        flex: 0 0 auto;
        margin: 0;
        padding: 0 8px;
    }
    
    #currentDayName {
        font-size: 14px;
        font-weight: 600;
        color: white;
        text-transform: capitalize;
        margin-bottom: 1px;
        line-height: 1.2;
    }
    
    #currentDate {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.95);
        font-weight: 600;
        line-height: 1.3;
        margin-top: 2px;
    }
    
    .time-slots-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 16px;
    }
    
    .time-slot-btn {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(185, 45, 60, 0.25));
        border: 2px solid rgba(220, 53, 69, 0.4);
        border-radius: 8px;
        color: white;
        padding: 10px 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .time-slot-btn:hover {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.5), rgba(185, 45, 60, 0.45));
        border-color: rgba(220, 53, 69, 0.6);
        transform: translateY(-1px) scale(1.05);
        box-shadow: 0 3px 12px rgba(220, 53, 69, 0.2);
    }
    
    .time-slot-btn.selected {
        background: linear-gradient(135deg, rgba(220, 53, 69, 1), rgba(185, 45, 60, 1)) !important;
        border-color: rgba(139, 0, 0, 1) !important;
        color: white !important;
        font-weight: 700 !important;
        transform: translateY(-2px) scale(1.02) !important;
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4) !important;
    }
    
    .no-slots {
        text-align: center;
        color: rgba(255, 255, 255, 0.9) !important;
        font-style: normal !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        padding: 30px 20px !important;
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(185, 45, 60, 0.1)) !important;
        border-radius: 12px !important;
        border: 2px solid rgba(220, 53, 69, 0.3) !important;
        backdrop-filter: blur(10px) !important;
        margin: 16px 0 !important;
        line-height: 1.4 !important;
    }
    
    .available-slots {
        min-height: 120px;
    }
}

/* Flag Icons */
.flag-icon {
    width: 30px !important;
    height: 20px !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    position: relative !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    display: inline-block !important;
}

.uk-flag {
    background: white !important;
}

.uk-flag::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #C8102E;
}

.uk-flag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 13px;
    width: 4px;
    height: 100%;
    background: #C8102E;
}

.france-flag {
    background: linear-gradient(90deg, #002654 0%, #002654 33.33%, white 33.33%, white 66.67%, #CE1126 66.67%, #CE1126 100%) !important;
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px;
    }
    
    /* Ensure modal header has proper positioning for close button */
    #bookingModal .modal-header {
        position: relative;
        padding-right: 50px;
    }
    
    /* Force correct calendar navigation layout */
    .calendar-navigation {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        gap: 12px !important;
    }
    
    .nav-arrow {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(185, 45, 60, 0.9)) !important;
        border: none !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        color: white !important;
        font-size: 18px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: auto !important;
        z-index: 999 !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    
    .nav-arrow:hover {
        background: linear-gradient(135deg, rgba(220, 53, 69, 1), rgba(185, 45, 60, 1)) !important;
        transform: scale(1.1) !important;
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
    }
    
    .current-date {
        text-align: center !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 120px !important;
        margin: 0 8px !important;
    }
    
    #currentDayName, #currentDate {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
        font-size: 14px !important;
        font-weight: bold !important;
        margin: 2px 0 !important;
        text-align: center !important;
        background: rgba(220, 53, 69, 0.6) !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
    }
    
    .time-slot-btn {
        padding: 8px 6px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .current-date {
        padding: 0 6px;
    }
    
    #currentDayName {
        font-size: 13px;
    }
    
    #currentDate {
        font-size: 13px !important;
        color: white !important;
        font-weight: 600 !important;
    }
    
    .calendar-navigation {
        padding: 8px;
        gap: 10px;
    }
}

/* Booking Modal Header Styling */
#bookingModal .modal-header {
    background: linear-gradient(135deg, #8B1538 0%, #A91B47 100%) !important;
    color: white !important;
    position: relative;
    padding: 1.5rem 2rem !important;
    border-radius: 20px 20px 0 0 !important;
}

#bookingModal .modal-header h3 {
    color: white !important;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Close Button Fix */
#bookingModal .modal-header .close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#bookingModal .modal-header .close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Tutor Modal Improvements */
/* Only the "Tutor Profile" header text should be white */
#tutorModal .modal-header h3 {
    color: white !important;
}

/* Revert tutor name and details back to black */
.tutor-modal-header .tutor-modal-info h3 {
    color: #333 !important;
}

.tutor-modal-header .tutor-modal-info .academic-info {
    color: rgba(51, 51, 51, 0.9) !important;
}

.tutor-modal-header .tutor-modal-info .academic-info .year-info,
.tutor-modal-header .tutor-modal-info .academic-info .specialization-info,
.tutor-modal-header .tutor-modal-info .academic-info .separator {
    color: rgba(51, 51, 51, 0.8) !important;
}

/* Force 4 columns for time slots in booking modal */
#bookingModal .time-slots-grid,
#bookingModal #dayAvailableSlots,
.modal .time-slots-grid,
.modal #dayAvailableSlots {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-top: 16px !important;
}

#bookingModal .time-slot-btn,
.modal .time-slot-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-width: auto !important;
    width: 100% !important;
    grid-column: span 1 !important;
    margin: 0 !important;
    float: none !important;
}

.booking-action-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.book-tutor-btn {
    width: 100%;
    padding: 16px 15px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(220, 53, 69, 1), rgba(185, 45, 60, 1));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.book-tutor-btn:hover {
    background: linear-gradient(135deg, rgba(185, 45, 60, 1), rgba(160, 35, 50, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220, 53, 69, 0.4);
}

@media (max-width: 768px) {
    .booking-action-section {
        padding: 16px 0;
        margin-bottom: 16px;
    }
    
    .book-tutor-btn {
        padding: 14px 16px;
        font-size: 15px;
    }
}


/* Group Pricing Styles */
.group-pricing-container {
    background: rgba(139, 21, 56, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    border: 2px solid rgba(139, 21, 56, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.2);
}

.pricing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.pricing-row:last-child {
    margin-bottom: 0;
}

.pricing-row label {
    min-width: 80px;
    font-weight: 600;
    color: #8B1538;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pricing-row input {
    flex: 1;
    max-width: 80px;
    padding: 8px 12px;
    border: 2px solid rgba(139, 21, 56, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #8B1538;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pricing-row input:focus {
    outline: none;
    border-color: #8B1538;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
    transform: translateY(-1px);
}

.pricing-row span {
    color: #8B1538;
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .group-pricing-container {
        padding: 12px;
        margin-top: 6px;
    }
    
    .pricing-row {
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .pricing-row label {
        min-width: 70px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .pricing-row input {
        min-width: 50px;
        max-width: 70px;
        padding: 10px 8px;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-align: center;
        color: #8B1538 !important;
        background: rgba(255, 255, 255, 1) !important;
    }
    
    .pricing-row span {
        font-size: 12px;
        flex-shrink: 0;
        min-width: 70px;
    }
    
    /* Fix Languages & Communication title overflow */
    .form-section h3 {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Small mobile optimization for group pricing */
@media (max-width: 480px) {
    .group-pricing-container {
        padding: 10px;
    }
    
    .pricing-row {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .pricing-row label {
        min-width: 65px;
        font-size: 12px;
    }
    
    .pricing-row input {
        min-width: 45px;
        max-width: 65px;
        padding: 12px 6px;
        font-size: 18px !important;
        font-weight: 700 !important;
    }
    
    .pricing-row span {
        font-size: 11px;
        min-width: 65px;
    }
    
    .form-section h3 {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }
}

/* Initial Loading Screen */
.initial-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #8B1538 0%, #A91B47 50%, #7A1230 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.initial-loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.app-logo img {
    width: 120px;
    height: 120px;
    margin: 0 0 2rem 0;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
    border-radius: 16px;
}

/* Loading video styles */
.initial-loading-screen .loading-video {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.initial-loading-screen .loading-video video {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

/* Fallback spinner if video fails */
.initial-loading-screen .spinner-fallback {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
}

/* Keep original loading spinner as backup */
.initial-loading-screen .loading-spinner {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    margin: 1rem 0 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}


/* Enhanced Booking Summary Styles */
.booking-summary {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1) 0%, rgba(139, 21, 56, 0.05) 100%);
    border: 2px solid rgba(139, 21, 56, 0.3);
    border-radius: 16px;
    padding: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(139, 21, 56, 0.15);
    overflow: hidden;
    animation: summarySlideIn 0.4s ease-out;
}

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

.booking-summary h4 {
    margin: 0;
    padding: 16px 15px;
    background: linear-gradient(135deg, #8B1538 0%, #A91B47 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #8B1538 0%, #A91B47 100%);
    color: white;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.summary-header h4 {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 700;
}

.summary-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.summary-content {
    padding: 20px;
}

.summary-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 21, 56, 0.15);
    transition: all 0.3s ease;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section:hover {
    background: rgba(139, 21, 56, 0.05);
    margin: 0 -10px;
    padding: 12px 15px;
    border-radius: 8px;
}

.summary-label {
    font-weight: 600;
    color: #8B1538;
    font-size: 15px;
    min-width: 140px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.summary-value {
    text-align: right;
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.4;
}

.tutor-info .summary-value {
    font-weight: 600;
    color: #8B1538;
}

.students-info .summary-value {
    font-weight: 600;
    color: #8B1538;
}

.pricing-breakdown {
    background: rgba(139, 21, 56, 0.08);
    margin: 0 -10px;
    padding: 16px 15px;
    border-radius: 12px;
    border: 1px solid rgba(139, 21, 56, 0.2);
}

.pricing-breakdown:hover {
    background: rgba(139, 21, 56, 0.12);
    transform: none;
    margin: 0 -10px;
}

.pricing-details {
    text-align: right;
}

.per-student-rate {
    font-size: 14px;
    color: #8B1538;
    font-weight: 600;
    margin-bottom: 4px;
}

.calculation {
    font-size: 13px;
    color: #666;
    font-style: italic;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(139, 21, 56, 0.2);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.15) 0%, rgba(139, 21, 56, 0.1) 100%);
    border-top: 2px solid rgba(139, 21, 56, 0.2);
    margin-top: 10px;
}

.total-label {
    font-size: 18px;
    font-weight: 700;
    color: #8B1538;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-price {
    font-size: 24px;
    font-weight: 800;
    color: #8B1538;
    text-shadow: 0 2px 4px rgba(139, 21, 56, 0.2);
    animation: priceGlow 2s ease-in-out infinite alternate;
}

@keyframes priceGlow {
    from {
        text-shadow: 0 2px 4px rgba(139, 21, 56, 0.2);
    }
    to {
        text-shadow: 0 4px 12px rgba(139, 21, 56, 0.4), 0 0 20px rgba(139, 21, 56, 0.2);
    }
}

.summary-note {
    text-align: center;
    padding: 16px 15px;
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    font-weight: 600;
    font-size: 15px;
    border-top: 1px solid rgba(46, 204, 113, 0.2);
    animation: noteGlow 3s ease-in-out infinite alternate;
}

@keyframes noteGlow {
    from {
        background: rgba(46, 204, 113, 0.1);
    }
    to {
        background: rgba(46, 204, 113, 0.15);
    }
}

@media (max-width: 768px) {
    .summary-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .summary-label {
        min-width: auto;
        font-size: 14px;
    }
    
    .summary-value {
        text-align: left;
        font-size: 14px;
    }
    
    .total-label {
        font-size: 16px;
    }
    
    .total-price {
        font-size: 20px;
    }
    
    .summary-total {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Fix for text overflow in booking summary */
.pricing-breakdown {
    background: rgba(139, 21, 56, 0.08);
    margin: 10px 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(139, 21, 56, 0.2);
}

.pricing-breakdown:hover {
    background: rgba(139, 21, 56, 0.12);
    transform: none;
    margin: 10px 0;
    padding: 16px;
}

.summary-section:hover {
    background: rgba(139, 21, 56, 0.05);
    margin: 0;
    padding: 12px;
    border-radius: 8px;
}

.summary-content {
    padding: 15px;
    overflow: hidden;
}

.summary-total {
    padding: 15px;
    margin-top: 10px;
}

.summary-note {
    padding: 16px 15px;
}

/* Additional Mobile Responsive Improvements for Enrollment Modal */
@media (max-width: 390px) {
    /* Ultra-small screens like iPhone 12 mini */
    .enrollment-modal .modal-header h3 {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.15rem;
    }
    
    .stat-item {
        padding: 0.5rem 0.15rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .student-card {
        padding: 0.5rem !important;
        min-height: 55px !important;
        max-height: 65px !important;
    }
    
    .student-card .student-avatar {
        width: 35px !important;
        height: 35px !important;
    }
    
    .student-card .student-name {
        font-size: 0.75rem !important;
    }
    
    .student-card .student-email {
        font-size: 0.6rem !important;
    }
}

/* Section header improvements for all mobile sizes */
@media (max-width: 768px) {
    .students-section h4 {
        font-size: 1.1rem;
        color: #8B1538;
        font-weight: 600;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid rgba(139, 21, 56, 0.15);
        text-align: center;
    }
    
    /* Empty state improvements */
    .empty-enrollment-state {
        text-align: center;
        padding: 2rem 1rem;
        color: #666;
        font-size: 0.95rem;
        background: rgba(139, 21, 56, 0.02);
        border-radius: 8px;
        border: 1px dashed rgba(139, 21, 56, 0.2);
    }
    
    .empty-enrollment-state .empty-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
        opacity: 0.4;
        display: block;
    }
    
    /* Touch optimization for mobile buttons */
    .enrollment-modal .modal-footer .btn-secondary {
        min-height: 44px;
        padding: 0.75rem 2rem;
        font-size: 1rem;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .enrollment-modal .modal-footer .btn-secondary:active {
        transform: scale(0.98);
        background: #5a6268;
    }
}

/* Mobile-First Pending Request Cards - Compact Design */
.pending-request-item-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 1rem 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 12px;
    border: 1px solid rgba(139, 21, 56, 0.12);
    box-shadow: 
        0 2px 8px rgba(139, 21, 56, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 80px;
    max-height: none;
    overflow: visible;
    position: relative;
}

.pending-request-item-mobile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #8B1538 0%, #A91B47 100%);
    border-radius: 12px 0 0 12px;
}

.pending-request-item-mobile:hover {
    border-color: rgba(139, 21, 56, 0.25);
    box-shadow: 
        0 4px 16px rgba(139, 21, 56, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.student-info-mobile {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding-left: 0.75rem;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.student-name-mobile {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 0.3rem 0 !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 1.3rem !important;
}

.student-email-mobile {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 0.3rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    font-weight: 500;
}

.request-date-mobile {
    font-size: 0.7rem;
    color: #94a3b8;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
    font-weight: 400;
    font-style: italic;
}

.request-actions-mobile {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
    padding-left: 0.5rem;
}

.btn-accept-mobile,
.btn-decline-mobile {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 50px;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn-accept-mobile {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.btn-accept-mobile:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.35);
}

.btn-decline-mobile {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
}

.btn-decline-mobile:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.35);
}

.btn-accept-mobile:active,
.btn-decline-mobile:active {
    transform: scale(0.95);
}

/* Ultra-compact for very small screens */
@media (max-width: 390px) {
    .pending-request-item-mobile {
        padding: 0.875rem 1rem 0.875rem 0.75rem;
        min-height: 75px;
        max-height: none;
        margin-bottom: 0.625rem;
    }
    
    .student-info-mobile {
        padding-left: 0.5rem;
        padding-right: 0.375rem;
    }
    
    .student-name-mobile {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .student-email-mobile {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .request-date-mobile {
        font-size: 0.65rem;
    }
    
    .request-actions-mobile {
        gap: 0.375rem;
        padding-left: 0.375rem;
    }
    
    .btn-accept-mobile,
    .btn-decline-mobile {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 45px;
    }
    
    /* Ensure main accept/decline buttons are mobile-friendly */
    .btn-accept,
    .btn-decline {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 55px;
        white-space: nowrap;
        flex: 1;
        max-width: 100px;
    }
}

/* BALANCED FONT SIZE OVERRIDE - MATCH MY CLASSES PROPORTIONS */
@media (max-width: 768px) {
    .student-pending-card .card-info-boxes .info-box .info-box-value,
    .card-info-boxes .info-box .info-box-value,
    .info-box .info-box-value {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        color: #2c3e50 !important;
    }
    
    .student-pending-card .card-info-boxes .info-box .info-box-label,
    .card-info-boxes .info-box .info-box-label,
    .info-box .info-box-label {
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        color: #7f8c8d !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
}

/* BUTTON SIZING OVERRIDE - ENSURE ALL ACTION BUTTONS FIT ON ONE LINE */
@media (max-width: 768px) {
    /* All action button containers */
    .footer-buttons,
    .booking-actions-row,
    .request-actions-mobile,
    .class-buttons-bottom-right {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.4rem !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    
    /* All action buttons */
    .btn-accept, .btn-decline,
    .btn-cancel-compact, .btn-collected, .btn-collected-student, .review-btn,
    .btn-accept-mobile, .btn-decline-mobile {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
        min-width: 90px !important;
        flex: 1 !important;
        max-width: 150px !important;
        text-align: center !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }
}

/* TeachMe Logo in Location Display */
.location-logo {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    opacity: 0.8;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Mobile adjustments for location logo */
@media (max-width: 768px) {
    .location-logo {
        width: 14px;
        height: 14px;
        margin-right: 3px;
    }
}

/* Analytics Tab Styles */
.analytics-section {
    padding: 20px 0;
}

.analytics-header {
    text-align: center;
    margin-bottom: 30px;
}

.analytics-header h4 {
    color: var(--edhec-burgundy);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.analytics-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.popular-subjects-section {
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 21, 56, 0.15);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.popular-subjects-section h4 {
    color: #8B1538;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(139, 21, 56, 0.3);
}

.popular-subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.popular-subject-card {
    background: rgba(139, 21, 56, 0.08);
    border: 1px solid rgba(139, 21, 56, 0.15);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.popular-subject-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 21, 56, 0.3);
    box-shadow: 0 8px 20px rgba(139, 21, 56, 0.15);
}

.popular-subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B1538, #A91B47);
}

.subject-rank {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #8B1538;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.4);
}

.subject-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-transform: capitalize;
    word-wrap: break-word;
}

.subject-booking-count {
    color: #8B1538;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.subject-type-mix {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    border-color: rgba(139, 21, 56, 0.3);
    box-shadow: 0 12px 35px rgba(139, 21, 56, 0.15);
}

.stat-card h5 {
    color: #8B1538;
    font-size: 1.1rem;
    margin-bottom: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(139, 21, 56, 0.2);
}

.stat-label {
    color: #5a6c7d;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: capitalize;
}

.period-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.period-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 21, 56, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.period-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 21, 56, 0.25);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.12);
}

.period-card h5 {
    color: #8B1538;
    font-size: 1.15rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.period-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.metric {
    background: rgba(139, 21, 56, 0.08);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(139, 21, 56, 0.1);
    transition: all 0.3s ease;
}

.metric:hover {
    background: rgba(139, 21, 56, 0.12);
    transform: scale(1.02);
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8B1538;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.metric-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: capitalize;
}

.breakdown-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(139, 21, 56, 0.2);
}

.breakdown-section h4 {
    color: #8B1538;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 6px rgba(139, 21, 56, 0.3);
    background: linear-gradient(135deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.breakdown-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.breakdown-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 21, 56, 0.3);
    box-shadow: 0 12px 35px rgba(139, 21, 56, 0.15);
}

.breakdown-card h5 {
    color: #8B1538;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subject-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 21, 56, 0.15);
    transition: all 0.3s ease;
}

.subject-item:last-child {
    border-bottom: none;
}

.subject-item:hover {
    padding-left: 10px;
    background: rgba(139, 21, 56, 0.05);
    margin: 0 -10px;
    border-radius: 8px;
}

.subject-name {
    font-weight: 600;
    color: #2c3e50;
    text-transform: capitalize;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.subject-stats {
    text-align: right;
    font-size: 0.95rem;
}

.subject-revenue {
    color: #8B1538;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


/* Terms & Conditions acceptance styles */
.terms-acceptance {
    margin: 15px 0;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    gap: 12px;
    user-select: none;
}

/* Hide the default checkbox */
.terms-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

/* Custom checkbox */
.custom-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkmark (hidden by default) */
.custom-checkbox .checkmark {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

/* Hover state */
.terms-checkbox-label:hover .custom-checkbox {
    border-color: #8B1538;
    background: rgba(139, 21, 56, 0.05);
}

/* Checked state */
.terms-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: #8B1538;
    border-color: #8B1538;
}

.terms-checkbox-label input[type="checkbox"]:checked + .custom-checkbox .checkmark {
    opacity: 1;
    transform: scale(1);
}

/* Focus state for accessibility */
.terms-checkbox-label input[type="checkbox"]:focus + .custom-checkbox {
    outline: 2px solid rgba(139, 21, 56, 0.3);
    outline-offset: 2px;
}

.terms-text {
    color: #6c757d;
    flex: 1;
}

.terms-link {
    color: #8B1538;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.terms-link:hover {
    color: #6d0f2a;
    border-bottom-color: #6d0f2a;
}

.subject-hours {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 2px;
    font-weight: 500;
}

/* Analytics loading and error states */
.analytics-loading {
    text-align: center;
    padding: 60px 20px;
    color: #8B1538;
    font-size: 1.2rem;
    font-weight: 600;
}

.analytics-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    margin: 20px 0;
}

/* Analytics main header */
.analytics-header {
    text-align: center;
    margin-bottom: 40px;
}

.analytics-header h3 {
    color: #8B1538;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    text-shadow: 0 3px 8px rgba(139, 21, 56, 0.3);
    background: linear-gradient(135deg, #8B1538, #A91B47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analytics-header p {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 8px;
}

.loading-message {
    text-align: center;
    padding: 50px 20px;
    color: #8B1538;
    font-size: 1.3rem;
    font-weight: 600;
    background: rgba(139, 21, 56, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(139, 21, 56, 0.1);
}

.no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 20px 0;
}

.error {
    text-align: center;
    padding: 30px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    margin: 20px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .analytics-header h4 {
        font-size: 1.6rem;
    }
    
    .period-metrics {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .period-comparison {
        grid-template-columns: 1fr;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .subject-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .subject-stats {
        text-align: left;
        width: 100%;
    }
}

/* Subscription Modal Styles */
.subscription-modal {
    max-width: 900px !important;
    width: 95%;
    max-height: 90vh;
}

.subscription-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .subscription-plans {
        gap: 1.5rem;
    }
    
    .plan-card {
        padding: 1.5rem;
    }
    
    .plan-header h4 {
        font-size: 1.3rem;
    }
    
    .plan-price .amount {
        font-size: 2.2rem;
    }
}

@media (max-width: 800px) and (min-width: 601px) {
    .plan-card {
        padding: 1.2rem;
    }
    
    .plan-header h4 {
        font-size: 1.2rem;
    }
    
    .plan-price .amount {
        font-size: 2rem;
    }
    
    .plan-features li {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .subscription-plans {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.plan-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
    border: 2px solid rgba(139, 21, 56, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.plan-card:hover {
    border-color: rgba(139, 21, 56, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.15);
}

.plan-card.selected {
    border-color: #8B1538;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.05), rgba(169, 27, 71, 0.05));
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.2);
}

.plan-card.popular {
    border-color: #8B1538;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.2);
}

.plan-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-pills {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px 0;
}

.pill {
    display: block;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
}

.pill-trial {
    background: #28a745;
    color: white;
}

.pill-no-payment {
    background: #007bff;
    color: white;
}

.plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.plan-header h4 {
    color: #8B1538;
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* For the main price display (0 or 29.99) */
.plan-price .regular-price,
.plan-price .main-price {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.trial-price {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.payment-not-required-pill {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.regular-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    opacity: 0.8;
}

.plan-price .currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
}

.plan-price .amount {
    font-size: 2rem;
    font-weight: 800;
    color: #8B1538;
    margin: 0 4px;
}

.plan-price .period {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.plan-commission {
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 6px 10px;
    background: rgba(139, 21, 56, 0.1);
    border-radius: 6px;
    font-weight: 600;
    color: #8B1538;
    font-size: 0.9rem;
}

.plan-description p {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 6px 0;
    color: #333;
    font-size: 0.8rem;
    line-height: 1.3;
    border-bottom: 1px solid rgba(139, 21, 56, 0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

.trial-info {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.05), rgba(169, 27, 71, 0.05));
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.trial-badge {
    margin-bottom: 1rem;
}

.trial-badge span {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
}

.trial-info p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.plan-comparison {
    margin-top: 2rem;
}

.plan-comparison h5 {
    color: #8B1538;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.example-scenario {
    text-align: center;
    margin-bottom: 1.5rem;
}

.example-scenario p {
    color: #666;
    font-weight: 500;
    margin: 0;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 21, 56, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.comparison-card h6 {
    color: #8B1538;
    text-align: center;
    margin: 0 0 1rem 0;
    font-weight: 600;
    font-size: 1rem;
}

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

.calc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.9rem;
}

.calc-line.total {
    border-top: 1px solid rgba(139, 21, 56, 0.2);
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 600;
}

.negative {
    color: #dc3545;
}

.positive {
    color: #28a745;
    font-weight: 600;
}

.breakeven-info {
    background: rgba(139, 21, 56, 0.05);
    border-left: 4px solid #8B1538;
    padding: 1rem 1.5rem;
    margin: 1rem 0 0 0;
    border-radius: 0 8px 8px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.selected-plan-info {
    background: rgba(139, 21, 56, 0.1);
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.selected-plan-info span:first-child {
    display: block;
    font-weight: 600;
    color: #8B1538;
    margin-bottom: 4px;
}

.selected-plan-info span:last-child {
    color: #666;
    font-size: 0.9rem;
}

.subscription-footer-note {
    text-align: center;
    margin-top: 1rem;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    background: rgba(139, 21, 56, 0.03);
    border: 1px solid rgba(139, 21, 56, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.subscription-footer-note small {
    color: #666;
    font-size: 0.82rem;
    line-height: 1.5;
    display: block;
    margin-bottom: 0.4rem;
}

.subscription-footer-note small:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #555;
}

.subscription-footer-layout {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

.plan-overview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.selected-plan-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #8B1538;
}

.subscription-footer-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #666;
}

.trial-button-section {
    display: flex;
    align-items: center;
}

.square-trial-btn {
    min-height: 80px;
    min-width: 120px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .subscription-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plan-card {
        padding: 1rem;
        max-width: 360px;
    }
    
    .plan-header h4 {
        font-size: 1.1rem;
        white-space: nowrap;
        margin: 0 0 5px 0;
    }
    
    .plan-price .amount {
        font-size: 1.8rem;
    }
    
    .trial-price {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-features li {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .plan-commission {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .pill {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .plan-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
        top: -8px;
        right: 16px;
    }
    
    .plan-pills {
        gap: 10px;
        margin: 16px 0 20px 0;
    }
    
    .pill {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    .subscription-footer-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    .square-trial-btn {
        width: 100%;
        min-height: 50px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .subscription-modal {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .plan-card {
        padding: 0.8rem;
        border-radius: 10px;
        max-width: 100%;
    }
    
    .plan-header h4 {
        font-size: 1rem;
        white-space: nowrap;
        margin: 0 0 4px 0;
    }
    
    .plan-price .amount {
        font-size: 1.6rem;
    }
    
    .plan-pills {
        gap: 6px;
        margin: 8px 0 12px 0;
    }
    
    .trial-price {
        font-size: 0.7rem;
        padding: 2px 8px;
        margin-bottom: 6px;
    }
    
    .plan-commission {
        font-size: 0.8rem;
        padding: 4px 8px;
        margin-bottom: 0.5rem;
    }
    
    .plan-features li {
        font-size: 0.75rem;
        padding: 4px 0;
    }
    
    .plan-description p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .plan-badge {
        font-size: 0.6rem;
        padding: 3px 10px;
        top: -6px;
        right: 12px;
    }
    
    .trial-info {
        padding: 1rem;
    }
    
    .comparison-card {
        padding: 1rem;
    }
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #8B1538, #A91B47);
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal li {
    margin-bottom: 0.5rem;
}

.footer-legal a,
.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-legal a:hover,
.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

.contact-info p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Legal Modal Styles */
.legal-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.legal-modal-content .modal-body {
    padding: 1.5rem;
}

.legal-modal-content h4 {
    color: #8B1538;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(139, 21, 56, 0.2);
    padding-bottom: 0.5rem;
}

.legal-modal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.legal-modal-content strong {
    color: #8B1538;
    font-weight: 600;
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .main-footer {
        padding: 2rem 0 1rem 0;
        margin-top: 2rem;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .legal-modal-content {
        max-width: 95%;
        margin: 1rem auto;
    }
}

/* Payment Method Section Styles */
.payment-method-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border: 1px solid rgba(139, 21, 56, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-method-section h4 {
    color: #8B1538;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-method-section p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.payment-form {
    margin: 1.5rem 0;
}

.stripe-card-element {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.stripe-card-element:focus-within {
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.stripe-card-element.StripeElement--invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.payment-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
    font-weight: 500;
}

.payment-security {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 21, 56, 0.1);
}

.security-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.security-icon {
    font-size: 1.1rem;
}

.security-badges span:last-child {
    font-weight: 500;
    color: #28a745;
    font-size: 0.9rem;
}

.payment-security small {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
    display: block;
}

/* Payment method loading state */
.payment-method-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

.payment-method-section.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #8B1538;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile responsive payment styles */
@media (max-width: 768px) {
    .payment-method-section {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .stripe-card-element {
        padding: 0.875rem;
    }
    
    .payment-method-section h4 {
        font-size: 1rem;
    }
    
    .security-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Delete Account Modal Styles */
.delete-account-warning {
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    margin-bottom: 25px;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.delete-account-warning h4 {
    color: #dc3545;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.delete-account-warning p {
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.6;
}

.delete-confirmation-section {
    margin-bottom: 25px;
}

.delete-confirmation-section label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 10px;
}

.delete-confirmation-section input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.delete-confirmation-section input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Subscription Blocker Overlay */
.subscription-blocker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
}

.blocker-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.blocker-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blocker-content h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blocker-content p {
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blocker-button {
    background: #8B2635;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blocker-button:hover {
    background: #721d29;
    transform: translateY(-1px);
}
