/* Reset and base styles */
body {
    margin: 0 !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000 !important;
    -webkit-text-size-adjust: 100%;
    color: white !important;
}

/* App container */
#app-container {
    width: 100%;
    padding: 100px 20px 20px 20px;
    box-sizing: border-box;
}

/* Content area */
.content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 500px;
}

/* Header navigation */
.header-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    z-index: 1000;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.hamburger-menu:hover {
    background-color: rgba(0, 122, 255, 0.1);
}

.hamburger-menu:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #007AFF;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation to X */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #333337;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-navigation {
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: calc(100vh - 40px);
    gap: clamp(12px, 4vh, 24px);
}

.mobile-nav-button {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 400;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #222;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-nav-button:hover {
    background-color: #444;
    border-color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.mobile-nav-button:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
    border-color: #007AFF;
}

.mobile-nav-button:active {
    transform: translateY(0);
    background-color: #111;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-nav-button.hidden {
    display: none;
}

/* Responsive hamburger menu behavior */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    .header-nav .navigation {
        display: none;
    }
    
    .header-nav {
        padding: 15px 20px;
    }
}

/* Mobile hamburger menu adjustments */
@media (max-width: 480px) {
    .hamburger-menu {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .hamburger-line {
        width: 24px;
        height: 2px;
        margin: 4px 0;
    }
    
    .mobile-menu-content {
        width: 100%;
        max-width: 280px;
    }
    
    .mobile-navigation {
        padding: 30px 16px 16px 16px;
        gap: clamp(8px, 3vh, 16px);
        min-height: calc(100vh - 30px);
    }
    
    .mobile-nav-button {
        padding: 18px 20px;
        font-size: 15px;
        min-height: 44px;
    }
}

#signout-button {
    background-color: #dc3545;
    max-width: 120px;
}

#signout-button:hover {
    background-color: #bb2d3b;
}

/* Progress indicator */
.progress-container {
    margin-bottom: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background-color: #555;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background-color: #007AFF;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 1rem;
    color: white;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Card styling */
.card {
    width: 100%;
    height: 300px;
    position: relative;
    margin-bottom: 24px;
    box-sizing: border-box;
    overflow: hidden !important;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    background: #1f2121;
    border: 1px solid #3d3f3f;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    cursor: pointer;
    min-width: 0 !important;
    min-height: 0 !important;
    box-sizing: border-box;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #1f2121;
    color: white;
    font-family: "Times New Roman", "Georgia", "Playfair Display", "Crimson Text", serif !important;
    font-size: 1.5rem;
    line-height: 1.6;
    overflow: visible !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    word-break: break-word;
    position: absolute;
    top: 0;
    left: 0;
}

.card-front { z-index: 2; }
.card-back { z-index: 1; background: #1f2121; }

.card.revealed .card-front { display: none; }
.card.revealed .card-back { display: flex; }
.card:not(.revealed) .card-front { display: flex; }
.card:not(.revealed) .card-back { display: none; }

/* Subject label styling */
.subject-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: "Times New Roman", "Georgia", "Playfair Display", "Crimson Text", serif !important;
    z-index: 10;
}

/* Last seen indicator styling */
.last-seen-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 400;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 6px;
    border-radius: 3px;
    letter-spacing: 0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

.last-seen-indicator:empty {
    display: none;
}

/* Remove debug flip text */
.card-front::after,
.card-back::after { content: none; }

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    min-height: 120px;
    position: relative;
}

.primary-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Report Card link styling */
.report-card-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    padding-right: 8px;
    position: relative;
    z-index: 1;
}

.report-card-link {
    color: #6c757d;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.report-card-link:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    text-decoration: underline;
}

/* Full width flip button when only flip button is visible */
.controls.flip-only .primary-controls {
    gap: 12px;
}

.controls.flip-only #flip-button {
    flex: 1;
}

/* Navigation container */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    margin: 0 auto;
    max-width: 100%;
}

/* Navigation buttons */
.nav-button {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    background-color: #007AFF;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    font-family: inherit;
    text-align: center;
    touch-action: manipulation;
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.1);
    text-decoration: none;
    white-space: nowrap;
}

/* Button hover state */
@media (hover: hover) {
    .nav-button:hover {
        background-color: #0056b3;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 122, 255, 0.2);
    }
}

/* Button active state */
.nav-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 122, 255, 0.1);
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .navigation {
        gap: 12px;
        padding: 10px;
    }

    .nav-button {
        padding: 16px 20px;
        font-size: 15px;
        min-width: 120px;
        border-radius: 10px;
    }

    .card {
        height: 250px;
        border-radius: 14px;
    }

    .card-front,
    .card-back {
        font-family: "Times New Roman", "Georgia", "Playfair Display", "Crimson Text", serif !important;
        font-size: 1.25rem;
        padding: 24px;
        border-radius: 14px;
    }

    .subject-label {
        top: 12px;
        left: 12px;
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .progress-container {
        margin-bottom: 20px;
        height: 18px;
    }
    
    .progress-bar {
        max-width: 280px;
        height: 5px;
    }
    
    .progress-text {
        font-size: 0.8125rem;
    }
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 40px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

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

/* Error state */
.error-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 20px;
}

.error-content {
    text-align: center;
    background: #333337;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.error-text {
    color: #dc3545;
    font-size: 18px;
    margin-bottom: 20px;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.error-actions button {
    min-width: 100px;
}

/* Saving state */
.saving-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 20px;
    text-align: center;
}

.saving-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.saving-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: saving-spin 1s linear infinite;
}

.saving-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

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

/* Utility classes with smooth transitions */
.loading-state,
.error-state,
.saving-state,
.content {
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(0);
}

.loading-state.fade-out,
.error-state.fade-out,
.saving-state.fade-out,
.content.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.loading-state.fade-in,
.error-state.fade-in,
.saving-state.fade-in,
.content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}


/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .loading-state {
        min-height: 400px;
        padding: 30px;
    }
    
    .saving-state {
        min-height: 250px;
        padding: 30px;
    }
    
    .content {
        min-height: 400px;
    }
    

    .loading-text,
    .error-text {
        font-size: 0.9375rem;
    }
}

.progress-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    font-size: 0.9em;
    padding: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.card-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.status-new {
    background-color: #e3f2fd;
    color: #007AFF;
}

.status-learning {
    background-color: #3d2f1f;
    color: #f57c00;
}

.status-review {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-overdue {
    background-color: #3d1f1f;
    color: #d32f2f;
}

.status-label, .review-count {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Rating buttons */
.rating-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.rating-button {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    text-align: center;
    touch-action: manipulation;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-again {
    background-color: #dc3545;
}

.rating-hard {
    background-color: #ffc107;
    color: #212529;
}

.rating-good {
    background-color: #28a745;
}

.rating-easy {
    background-color: #007AFF;
}

/* Rating button hover states */
@media (hover: hover) {
    .rating-again:hover {
        background-color: #c82333;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
    }
    
    .rating-hard:hover {
        background-color: #e0a800;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
    }
    
    .rating-good:hover {
        background-color: #218838;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
    }
    
    .rating-easy:hover {
        background-color: #0056b3;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 122, 255, 0.2);
    }
}

/* Rating button active states */
.rating-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Processing state for rating buttons */
.rating-buttons.processing .rating-button {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.rating-buttons.processing .rating-button:after {
    content: '...';
    animation: processing 1s infinite;
}

@keyframes processing {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Mobile adjustments for rating buttons */
@media (max-width: 480px) {
    .rating-buttons {
        gap: 8px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .rating-button {
        padding: 16px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
}

/* Daily limit and completion messages */
.daily-limit-message,
.no-cards-message,
.session-complete-message {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.daily-limit-message h2,
.no-cards-message h2,
.session-complete-message h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
}

.daily-limit-message p,
.no-cards-message p,
.session-complete-message p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.5;
}

.session-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.session-actions button {
    min-width: 180px;
}

.daily-limit-message .upgrade-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #007AFF;
}

.daily-limit-message .upgrade-info p {
    margin: 0 0 10px 0;
    color: #007AFF;
}

.daily-limit-message .upgrade-info p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .daily-limit-message h2,
    .no-cards-message h2,
    .session-complete-message h2 {
        font-size: 24px;
    }
    
    .daily-limit-message p,
    .no-cards-message p,
    .session-complete-message p {
        font-size: 14px;
    }
    
    .daily-limit-message .upgrade-info {
        padding: 15px;
        margin-top: 20px;
    }
    
    .session-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .session-actions button {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
}

/* Primary controls layout */
.primary-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.primary-controls #flip-button {
    flex: 1;
}

/* Flag button styling */
.flag-button {
    padding: 14px 16px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    background-color: #333;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    text-align: center;
    touch-action: manipulation;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 60px;
}

@media (hover: hover) {
    .flag-button:hover {
        background-color: #e9ecef;
        color: #495057;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
}

.flag-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.flag-button:disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Update controls layout when only flip button visible */
.controls.flip-only .primary-controls #flip-button {
    width: 100%;
    flex: none;
    max-width: none;
}

.controls.flip-only .flag-button {
    display: none;
}

/* Modal styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: #333337;
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #555;
    color: #ccc;
}

.modal-body {
    padding: 16px 24px 24px 24px;
}

.modal-body p {
    margin: 0 0 20px 0;
    color: white;
    font-size: 16px;
}

.flag-reasons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.reason-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #555;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #222;
}

.reason-option:hover {
    border-color: #007AFF;
    background-color: #444;
}

.reason-option input[type="radio"] {
    margin-right: 12px;
    accent-color: #007AFF;
}

.reason-option input[type="radio"]:checked + span {
    color: #007AFF;
    font-weight: 500;
}

.reason-option span {
    font-size: 15px;
    color: white;
    transition: color 0.2s ease;
}

.other-reason {
    margin-top: 16px;
}

.other-reason textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #555;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #222;
    color: white;
}

.other-reason textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer button {
    min-width: 100px;
}

/* Mobile adjustments for modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px 20px 20px 20px;
    }
    
    .modal-footer {
        padding: 16px 20px 20px 20px;
        flex-direction: column-reverse;
    }
    
    .modal-footer button {
        width: 100%;
        min-width: auto;
    }
    
    .reason-option {
        padding: 10px;
    }
    
    .reason-option span {
        font-size: 14px;
    }
    
    .primary-controls {
        gap: 8px;
    }
    
    .flag-button {
        padding: 12px 14px;
        font-size: 16px;
        min-width: 50px;
        border-radius: 10px;
    }
}

/* Session completion layout */
.completion-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

.completion-message {
    width: 100%;
    max-width: 600px;
    text-align: center;
    color: white;
    background: #333337;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.completion-message h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
}

.completion-message p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Session completion statistics */
.session-stats {
    margin: 30px 0;
    padding: 20px;
    background-color: #222;
    border-radius: 12px;
    border: 1px solid #555;
}

.rating-chart {
    margin-bottom: 25px;
}

.rating-chart h3,
.review-summary h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.rating-label {
    min-width: 60px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-align: right;
}

.rating-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.rating-bar {
    height: 20px;
    border-radius: 10px;
    min-width: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rating-count {
    min-width: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-align: center;
}

/* Schedule chart styles */
.schedule-chart {
    margin-bottom: 25px;
}

.schedule-chart h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.schedule-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.schedule-label {
    min-width: 80px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-align: right;
}

.schedule-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.schedule-bar {
    height: 20px;
    border-radius: 10px;
    min-width: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.schedule-count {
    min-width: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.review-summary {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.review-summary p {
    margin: 0;
    font-size: 14px;
    color: white;
    line-height: 1.5;
}

/* Mobile adjustments for session stats */
@media (max-width: 480px) {
    .completion-wrapper {
        padding: 15px;
        min-height: 100vh;
    }
    
    .completion-message {
        padding: 30px 20px;
    }
    
    .completion-message h2 {
        font-size: 24px;
    }
    
    .completion-message p {
        font-size: 14px;
    }
    
    .session-stats {
        margin: 20px 0;
        padding: 15px;
    }
    
    .rating-chart h3,
    .review-summary h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .rating-row {
        margin-bottom: 10px;
        gap: 8px;
    }
    
    .rating-label {
        min-width: 50px;
        font-size: 12px;
    }
    
    .rating-bar {
        height: 18px;
    }
    
    .rating-count {
        font-size: 11px;
    }
    
    .review-summary p {
        font-size: 13px;
    }
    
    .rating-chart {
        margin-bottom: 20px;
    }
    
    /* Mobile adjustments for schedule chart */
    .schedule-chart h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .schedule-row {
        margin-bottom: 10px;
        gap: 8px;
    }
    
    .schedule-label {
        min-width: 60px;
        font-size: 12px;
    }
    
    .schedule-bar {
        height: 18px;
    }
    
    .schedule-count {
        font-size: 11px;
    }
    
    .schedule-chart {
        margin-bottom: 20px;
    }
} 