/*
Theme Name: Astra Child
Template: astra
Author: Samekh international
Description: Child theme for Astra
Version: 1.0.0
*/

.dashboard-app {
    margin: 0 ;
    padding: 0 ;
}

#wpadminbar {
    display: none;
}

html {
    margin-top: 0 ;
}

/* Dashboard App Header */
.dashboard-app-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-logo img {
    height: 20px;
    width: auto;
}

.dashboard-logo h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

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

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.user-info:hover {
    background: #f7fafc;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
}

.logout-link {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.logout-link:hover {
    background: #f7fafc;
    color: #2d3748;
}



/* Dashboard Layout with Sidebar */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 61px);
    background: #f7fafc;
}

/* Sidebar Navigation */
.dashboard-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 24px 0;
    position: sticky;
    top: 61px;
    height: calc(100vh - 61px);
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #718096;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background: #f7fafc;
    color: #2d3748;
}

.nav-item.active {
    background: #EFE7FF;
    color: #673DE6;
    font-weight: 600;
}

.nav-item .material-symbols-outlined {
    font-size: 22px;
}

.nav-text {
    flex: 1;
}

/* Main Content Area */
.dashboard-main {
    flex: 1;
    padding: 20px 40px;
    overflow-y: auto;
    max-width: 100%;
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Header Styles */
.dashboard-header {
    margin-bottom: 40px;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 27px;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    line-height: 1.2;
    margin-top: 24px;
}

.package-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.package-label {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
}

.package-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.upgrade-btn {
    background: #673DE6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.upgrade-btn:hover {
    background: #6b46c1;
    color:#ffffff;
}

/* Milestone Banner */
.milestone-banner {
    background: #6366f1;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 16px 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.milestone-banner h3 {
    color: white;
    margin-bottom: 10px;
}

.milestone-banner .upgrade-btn {
    display: inline-block;
    background: white;
    color: #6366f1;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
}

.milestone-banner .upgrade-btn:hover {
    background: #f9fafb;
}

.milestone-banner.expired {
    background: #f7f7f7;
    border: 1px solid #ccc;
    color: #666;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.section-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 8px 0 0 0;
    font-weight: 400;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Video Card */
.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.video-card.locked {
    opacity: 0.8;
}

.video-card.locked:hover {
    transform: none;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    cursor: pointer;
    overflow: hidden;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.locked-placeholder {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lock-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Video Info */
.video-info {
    padding: 14px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.video-description {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.4;
    margin: 0;
}

.locked-text {
    color: #a0aec0;
}

.upgrade-link {
    color: #805ad5;
    text-decoration: none;
    font-weight: 500;
}

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

/* Empty States */
.no-videos, .coming-soon {
    text-align: left;
    padding: 60px 20px;
    color: #718096;
}

.no-videos p, .coming-soon p {
    font-size: 1.1rem;
    margin: 0;
}

/* Booking Styles */
#book-appointment-btn {
    padding: 12px 20px;
    background-color: #6244A3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#book-appointment-btn:hover {
    background-color: #805ad5;
}

.customer-panel-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Booking Modal Styles */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.booking-modal.active {
    display: block;
}

.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    animation: fadeIn 0.3s ease;
}

.booking-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}


@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.booking-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.booking-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
    color: #718096;
}

.booking-modal-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

.booking-modal-close .material-symbols-outlined {
    font-size: 24px;
}

.booking-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.booking-modal-body .info-msg {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    color: #2c5282;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 0.9rem;
    font-style: normal;
}

/* Documents Tab */
.upload-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.upload-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.document-requests-card,
.no-requests-card,
.document-history-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.document-requests-card h3,
.document-history-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.document-requests-card p {
    color: #718096;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.requests-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .requests-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

.request-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.request-card.uploaded {
    background: #ffffff;
    border-color: #EBEBEB;
}

.request-card.all-uploaded {
    background: #f0fff4;
    border-color: #9ae6b4;
}

.request-card.priority-high {
    border-color: #f56565;
    background: #fff5f5;
}

.request-card.priority-medium {
    border-color: #EBEBEB;
    background: #FAF9FA;
}

.request-card.priority-low {
    border-color: #4299e1;
    background: #ebf8ff;
}

.request-header {
    margin-bottom: 16px;
}

.request-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.header-first-line {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
}

.header-second-line,
.header-third-line {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 8px;
}

.left-section {
    display: flex;
    gap: 15px;
    align-items: center;
}

.right-section {
    text-align: right;
    flex: 1;
}

.special-instructions {
    text-align: left;
    width: 100%;
    margin: 0;
    font-size: 14px;
    background: #fff8dc;
    border: 1px solid #ffd700;
    padding: 12px;
    border-radius: 6px;
}

.document-types-list {
    margin: 5px 0 0 0;
    padding-left: 20px;
    text-align: left;
}

.document-types-list li {
    margin: 24px 0;
    font-weight: normal;
}

.doc-type-line,
.doc-category-line {
    margin-bottom: 5px;
    text-align: left;
}

.priority-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.priority-badge.priority-high {
    background: #feb2b2;
    color: #c53030;
}

.priority-badge.priority-medium {
    background: #fbd38d;
    color: #c05621;
}

.priority-badge.priority-low {
    background: #90cdf4;
    color: #2c5282;
}

.due-date {
    font-size: 0.75rem;
    color: #718096;
    background: #edf2f7;
    padding: 4px 8px;
    border-radius: 4px;
}

.document-item,
.single-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.doc-name {
    flex: 1;
}

.doc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attach-btn {
    background: #ffffff;
    color: #212832;
    border: 1px solid #6244A3;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}

.attach-btn:hover:not(:disabled) {
    background: #6244A3;
    color: white;
    border-color: #6244A3;
}

.attach-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.document-upload-form {
    width: 100%;
    max-width: 100%;
}

.upload-field {
    margin-bottom: 16px;
}

.upload-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 6px;
}

.upload-field input[type="file"],
.upload-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    font-family: inherit;
}

.upload-field input[type="file"]:focus,
.upload-field textarea:focus {
    outline: none;
    border-color: #805ad5;
    box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.1);
}

.upload-field textarea {
    resize: vertical;
    min-height: 80px;
}

.upload-btn {
    background: #805ad5;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.upload-btn:hover {
    background: #6b46c1;
}

.upload-btn .material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.file-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.file-status .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.upload-status {
    width: 100%;
}

.upload-status.all-complete {
    background: #f0fff4;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
}

.completion-message {
    font-weight: 600;
    color: #276749;
}

/* Re-upload button for declined documents */
.document-item.declined .attach-btn,
.single-document-item.declined .attach-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.document-item.declined .attach-btn::before,
.single-document-item.declined .attach-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.document-item.declined .attach-btn:hover::before,
.single-document-item.declined .attach-btn:hover::before {
    width: 300px;
    height: 300px;
}

.document-item.declined .attach-btn:hover,
.single-document-item.declined .attach-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71d2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

/* Pulse glow animation for declined state */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6),
                    0 0 20px rgba(220, 53, 69, 0.3);
    }
}

/* Icon styling */
.attach-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Status text styling */
.file-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 10px;
}

/* Declined status with warning icon */
.document-item.declined .file-status,
.single-document-item.declined .file-status {
    color: #dc3545;
    background: #ffe6e9;
    padding: 6px 12px;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
/* Uploaded status with checkmark */
.document-item.uploaded .file-status,
.single-document-item.uploaded .file-status {
    color: #28a745;
    background: #e6f7ed;
    padding: 6px 12px;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

/* Document item container states */
.document-item,
.single-document-item {
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.document-item.declined,
.single-document-item.declined {
    background: #fff5f5;
    border: 2px solid #ffebee;
}

.document-item.uploaded,
.single-document-item.uploaded {
    background: #f0f9f4;
    border: 2px solid #e6f7ed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .attach-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .file-status {
        font-size: 12px;
        margin-left: 5px;
    }
}

.status-info {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.status-pending_review {
    background: #90cdf4;
    color: #2c5282;
}

.status-badge.status-approved {
    background: #9ae6b4;
    color: #276749;
}

.status-badge.status-needs_revision {
    background: #feb2b2;
    color: #c53030;
}

.status-badge.status-declined {
    background: #f7cece;
    color: #c53030;
}

.upload-date {
    font-size: 0.8rem;
    color: #718096;
}

.advisor-notes {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.advisor-notes p {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.advisor-notes p:last-child {
    margin-bottom: 0;
}

.no-requests-content {
    text-align: center;
    padding: 40px 20px;
}

.no-requests-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 12px 0;
}

.no-requests-content p {
    color: #718096;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.no-requests-content p:last-child {
    margin-bottom: 0;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .history-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

.history-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.history-item.status-approved {
    background: #f0fff4;
    border-color: #9ae6b4;
}

.history-item.status-needs_revision {
    background: #fff5f5;
    border-color: #feb2b2;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.history-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    flex: 1;
}

.history-meta {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 12px;
}

.meta-row {
    margin-bottom: 8px;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-row.advisor-feedback {
    background: #ebf8ff;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
}

.file-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.file-actions a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.file-actions .btn-download {
    color: #6244A3;
    border: 1px solid #6244A3;
}

.file-actions .btn-download:hover {
    background: #6244A3;
    color: white;
}

.file-actions .btn-view {
    color: #6244A3;
    border: 1px solid #6244A3;
}

.file-actions .btn-view:hover {
    background: #6244A3;
    color: white;
}

.file-actions .file-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
}

.file-size {
    font-size: 0.8rem;
    color: #718096;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-app-header {
        padding: 12px 20px;
    }
    
    .user-name {
        display: none;
    }
    
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 16px 0;
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 16px;
        gap: 8px;
    }
    
    .nav-item {
        flex-direction: column;
        min-width: 80px;
        padding: 12px 8px;
        text-align: center;
        gap: 4px;
    }
    
    .nav-item .material-symbols-outlined {
        font-size: 24px;
    }
    
    .nav-text {
        font-size: 0.75rem;
    }
    
    .dashboard-main {
        padding: 16px 20px;
    }
    
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr ;
        gap: 16px;
    }
    
    
    .booking-form-column.hidden {
        display: none;
    }
    
    .booking-form-column {
        order: 1;
    }
    
    .customer-panel-column {
        order: 2;
    }
    
    .document-requests-card,
    .no-requests-card,
    .document-history-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .request-card {
        padding: 16px;
    }
    
    .left-section {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .status-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .history-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .upload-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 12px 16px;
    }
    
    .video-thumbnail {
        height: 160px;
    }
}

/* Fullscreen overlay */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* background color while loading */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* stays above everything */
  transition: opacity 0.3s ease;
}

/* Hidden state */
#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Spinner animation */
#loading-screen .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #eee;
  border-top: 5px solid #6244A3; /* brand color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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