.coachly-header {
    background-color: #7F6BB5;
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 48px;
}

.coachly-header__container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.coachly-header__logo {
    height: 60px;
    max-width: 220px;
    object-fit: contain;
}

body {
    background-color: #F7F6F4;
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

.coachly-footer {
    background-color: #7F6BB5;
    color: #fff;
    padding: 32px 0 16px 0;
    width: 100%;
    margin-top: 48px;
}

.coachly-footer__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto 16px auto;
}

.coachly-footer__section {
    min-width: 200px;
    text-align: center;
}

.coachly-footer__link {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}

.coachly-footer__link:hover {
    color: #F7F6F4;
}

.coachly-footer__copyright {
    text-align: center;
    font-size: 0.95em;
    opacity: 0.85;
}

@media (max-width: 700px) {
    .coachly-footer__container {
        flex-direction: column;
        gap: 24px;
    }
    .coachly-footer__section {
        min-width: unset;
    }
}

.coachly-layout {
    display: flex;
    flex-direction: row;
    min-height: 70vh;
    width: 100%;
}

.coachly-main-content {
    flex: 1;
    padding: 48px 32px;
    background: #F7F6F4;
    min-width: 0;
}

.coachly-sidebar {
    background-color: #7F6BB5;
    width: 22vw;
    min-width: 16rem;
    max-width: 28vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 1.5vw;
    padding-bottom: 1.5vw;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    transition: width 0.25s, padding 0.25s, border-radius 0.25s;
    position: relative;
    border-top-right-radius: 2.5vw;
    border-bottom-right-radius: 2.5vw;
}

.coachly-sidebar__nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2vw;
}

.coachly-sidebar__nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 500;
    padding: 0.8em 2vw;
    border-radius: 1.2vw 0 0 1.2vw;
    transition: background 0.2s, color 0.2s;
    display: block;
}

.coachly-sidebar__nav a:hover, .coachly-sidebar__nav a.active {
    background-color: #6B5A9E;
    color: #F7F6F4;
}

.coachly-sidebar__toggle {
    align-self: flex-start;
    margin: 1.2vw 0 1.2vw 1.2vw;
    position: static;
    background: #7F6BB5;
    border: none;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 1px 1px 6px rgba(0,0,0,0.08);
    z-index: 110;
    transition: background 0.2s;
}
.coachly-sidebar__toggle:hover {
    background: #6B5A9E;
}

.coachly-sidebar.collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    min-height: 70vh;
    transition: width 0.25s, padding 0.25s, border-radius 0.25s;
}
.coachly-sidebar.collapsed .coachly-sidebar__nav {
    display: none;
}

@media (max-width: 1200px) {
    .coachly-sidebar {
        width: 28vw;
        min-width: 12rem;
        max-width: 40vw;
        padding-top: 2vw;
        padding-bottom: 2vw;
        border-top-right-radius: 3vw;
        border-bottom-right-radius: 3vw;
    }
    .coachly-sidebar__toggle {
        font-size: 16px;
        width: 35px;
        height: 35px;
        margin: 1.8vw 0 1.8vw 1.8vw;
    }
}

@media (max-width: 900px) {
    .coachly-layout {
        flex-direction: column;
    }
    .coachly-sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        width: 80vw;
        max-width: 340px;
        min-width: 0;
        border-radius: 0 18px 18px 0;
        box-shadow: 4px 0 24px rgba(44,34,70,0.12);
        z-index: 1201;
        background: #7F6BB5;
        transform: translateX(-110%);
        transition: transform 0.35s cubic-bezier(.77,0,.18,1);
        padding-top: 32px;
        padding-bottom: 32px;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .coachly-sidebar.drawer-open {
        transform: translateX(0);
    }
    .coachly-sidebar__toggle {
        position: fixed;
        top: 18px;
        left: 18px;
        z-index: 1300;
        background: #7F6BB5;
        border: none;
        color: #fff;
        font-size: 2rem;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(44,34,70,0.10);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .coachly-sidebar__close {
        display: block;
    }
    .sidebar-profile {
        margin-top: 32px;
        margin-bottom: 24px;
        padding: 1.2rem 1.5rem;
    }
    .coachly-sidebar__nav {
        gap: 1.2rem;
        padding: 0 1.5rem;
    }
    .coachly-sidebar__nav a {
        font-size: 1.2em;
        padding: 0.9em 0.8em;
        border-radius: 10px;
    }
    .nav-section {
        margin: 0.5rem 0 0.5rem 0;
    }
    .section-title {
        padding: 0 0.5rem;
    }
}

@media (max-width: 600px) {
    .coachly-sidebar {
        width: 92vw;
        max-width: 99vw;
        border-radius: 0 12px 12px 0;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .coachly-sidebar__toggle {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 10px;
        left: 10px;
    }
    .coachly-sidebar__close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
    .sidebar-profile {
        margin-top: 18px;
        margin-bottom: 16px;
        padding: 1rem 1rem;
    }
    .coachly-sidebar__nav {
        gap: 0.7rem;
        padding: 0 1rem;
    }
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* Landing Page Styles */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2D1B69;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button.primary {
    background: linear-gradient(135deg, #7F6BB5, #8D75CC);
    color: white;
    box-shadow: 0 4px 15px rgba(127, 107, 181, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 107, 181, 0.4);
}

.cta-button.secondary {
    background: white;
    color: #7F6BB5;
    border: 2px solid #7F6BB5;
}

.cta-button.secondary:hover {
    background: #7F6BB5;
    color: white;
}

.features-section {
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2D1B69;
    margin-bottom: 3rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #2D1B69;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-button {
    background: #7F6BB5;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.feature-button:hover {
    background: #6B5A9E;
}

.final-cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #F7F6F4, #f0f0f0);
    border-radius: 20px;
    margin: 2rem 0;
}

.final-cta-section h2 {
    font-size: 2.2rem;
    color: #2D1B69;
    margin-bottom: 1rem;
    font-weight: 600;
}

.final-cta-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .final-cta-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section,
    .features-section {
        padding: 2rem 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Sidebar Profile */
.sidebar-profile {
    display: flex;
    align-items: center;
    padding: 1rem 1.2vw;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.profile-avatar {
    font-size: 2.5rem;
    margin-right: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info h4 {
    color: #fff;
    font-size: 1.1em;
    margin: 0 0 0.2rem 0;
    font-weight: 600;
}

.profile-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    margin: 0;
}

.profile-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-link:hover {
    color: #F7F6F4;
    text-decoration: underline;
}

/* Navigation Sections */
.nav-section {
    margin: 0.8rem 0 0.5rem 0;
}

.section-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1.2vw;
    display: block;
}

/* Navigation Links with Icons */
.coachly-sidebar__nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 500;
    padding: 0.8em 1.2vw;
    border-radius: 1.2vw 0 0 1.2vw;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-icon {
    font-size: 1.2em;
    min-width: 1.5em;
    text-align: center;
}

.coachly-sidebar__nav a:hover, 
.coachly-sidebar__nav a.active {
    background: rgba(255,255,255,0.15);
    color: #F7F6F4;
    transform: translateX(0.3rem);
}

/* Collapsed State Improvements */
.coachly-sidebar.collapsed .sidebar-profile,
.coachly-sidebar.collapsed .nav-section,
.coachly-sidebar.collapsed .nav-icon,
.coachly-sidebar.collapsed .section-title {
    display: none;
}

.coachly-sidebar.collapsed .coachly-sidebar__nav a {
    justify-content: center;
    padding: 0.8em 0;
    border-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .sidebar-profile {
        padding: 0.8rem 1vw;
        margin-bottom: 0.8rem;
    }
    
    .profile-avatar {
        font-size: 2rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .profile-info h4 {
        font-size: 1em;
    }
    
    .profile-info p {
        font-size: 0.8em;
    }
    
    .section-title {
        font-size: 0.8em;
        padding: 0 1vw;
    }
    
    .coachly-sidebar__nav a {
        font-size: 1.1em;
        padding: 0.7em 1vw;
        gap: 0.6rem;
    }
    
    .nav-icon {
        font-size: 1.1em;
        min-width: 1.3em;
    }
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-link:hover .coachly-header__logo {
    filter: brightness(1.15) drop-shadow(0 2px 8px rgba(127,107,181,0.15));
    transition: filter 0.2s;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.login-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    border: 1px solid #f0f0f0;
}

.login-title {
    font-size: 2.5rem;
    color: #2D1B69;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #2D1B69;
    font-size: 1rem;
}

.form-input {
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #7F6BB5;
    box-shadow: 0 0 0 3px rgba(127, 107, 181, 0.1);
    background: white;
}

.form-input::placeholder {
    color: #999;
}

.login-button {
    background: linear-gradient(135deg, #7F6BB5, #8D75CC);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 107, 181, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.login-footer p {
    color: #666;
    margin: 0;
}

.register-link {
    color: #7F6BB5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #6B5A9E;
    text-decoration: underline;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #fcc;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Responsive Design for Login */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .form-input {
        padding: 0.8rem 1rem;
    }
    
    .login-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Register Page Styles */
.register-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 70vh;
    padding: 2rem;
}

.register-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    border: 1px solid #f0f0f0;
}

.register-title {
    font-size: 2.5rem;
    color: #2D1B69;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.register-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.register-button {
    background: linear-gradient(135deg, #7F6BB5, #8D75CC);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 107, 181, 0.3);
}

.register-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.register-footer p {
    color: #666;
    margin: 0;
}

.login-link {
    color: #7F6BB5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #4b3c7a;
}

.form-help {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Responsive Design for Register */
@media (max-width: 768px) {
    .register-container {
        padding: 1rem;
    }
    
    .register-card {
        padding: 2rem 1.5rem;
    }
    
    .register-title {
        font-size: 2rem;
    }
    
    .register-subtitle {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 1.5rem 1rem;
    }
    
    .register-title {
        font-size: 1.8rem;
    }
    
    .register-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Profile Page Styles */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 70vh;
    padding: 2rem;
}

.profile-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 700px;
    border: 1px solid #f0f0f0;
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.profile-title {
    font-size: 2.5rem;
    color: #2D1B69;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-welcome {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.token-info {
    margin-top: 1rem;
}

.token-badge {
    background: linear-gradient(135deg, #7F6BB5, #8D75CC);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.profile-action-btn {
    background: #f8f9fa;
    color: #2D1B69;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    display: block;
}

.profile-action-btn:hover {
    background: #7F6BB5;
    color: white;
    border-color: #7F6BB5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 107, 181, 0.2);
}

.profile-action-btn.danger {
    background: #fee;
    color: #dc3545;
    border-color: #fcc;
}

.profile-action-btn.danger:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section-title {
    font-size: 1.5rem;
    color: #2D1B69;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.profile-save-btn {
    background: linear-gradient(135deg, #7F6BB5, #8D75CC);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.profile-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 107, 181, 0.3);
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }
    
    .profile-card {
        padding: 2rem 1.5rem;
    }
    
    .profile-title {
        font-size: 2rem;
    }
    
    .profile-actions {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 1.5rem 1rem;
    }
    
    .profile-title {
        font-size: 1.8rem;
    }
    
    .profile-action-btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .profile-save-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Chat Page Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #7F6BB5, #8D75CC);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.chat-title {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.chat-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.chat-messages-container {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    margin-bottom: 1rem;
}

.message-content {
    display: flex;
    align-items: flex-end;
    gap: 0.8rem;
    max-width: 80%;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    flex-direction: row-reverse;
}

.ai-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #7F6BB5;
    color: white;
}

.ai-message .message-avatar {
    background: #e9ecef;
    color: #6c757d;
}

.message-bubble {
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 100%;
    word-wrap: break-word;
}

.user-message .message-bubble {
    background: #7F6BB5;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-bubble p {
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-bubble li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.message-bubble strong {
    color: #7F6BB5;
}

.chat-form {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e9ecef;
}

.message-input-container {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.message-input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.message-input:focus {
    border-color: #7F6BB5;
    box-shadow: 0 0 0 3px rgba(127, 107, 181, 0.1);
}

.send-button {
    background: #7F6BB5;
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    background: #6B5A9E;
    transform: scale(1.05);
}

.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.send-button.sending {
    background: #ffc107;
    animation: pulse 1.5s infinite;
}

.message-input:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive Design for Chat */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 150px);
        margin: 0 1rem;
    }
    
    .chat-header {
        padding: 1rem 1.5rem;
    }
    
    .chat-title {
        font-size: 1.5rem;
    }
    
    .chat-messages-container {
        padding: 1rem;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .message-avatar {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .message-bubble {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .chat-container {
        margin: 0 0.5rem;
        border-radius: 15px;
    }
    
    .chat-header {
        padding: 0.8rem 1rem;
    }
    
    .chat-title {
        font-size: 1.3rem;
    }
    
    .chat-messages-container {
        padding: 0.8rem;
    }
    
    .message-content {
        max-width: 95%;
        gap: 0.5rem;
    }
    
    .message-input {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .send-button {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* ===== STYLES POUR LA PAGE DES TESTS ===== */

.exams-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.exams-header {
    text-align: center;
    margin-bottom: 48px;
}

.exams-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exams-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.exams-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    border-radius: 2px;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.exam-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.exam-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
}

.exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(127, 107, 181, 0.15);
    border-color: #7F6BB5;
}

.exam-card.unfinished {
    border-color: #FFA726;
}

.exam-card.unfinished::before {
    background: linear-gradient(135deg, #FFA726, #FFB74D);
}

.exam-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.exam-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exam-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2D2D2D;
    margin: 0;
    line-height: 1.3;
}

.exam-description {
    color: #666;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.exam-status {
    display: inline-block;
    background: linear-gradient(135deg, #FFA726, #FFB74D);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    align-self: flex-start;
}

.exam-button {
    display: inline-block;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    align-self: flex-start;
    margin-top: 8px;
}

.exam-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 107, 181, 0.3);
    background: linear-gradient(135deg, #6B5A9E, #8A7BB8);
}

.exam-button.continue {
    background: linear-gradient(135deg, #FFA726, #FFB74D);
}

.exam-button.continue:hover {
    background: linear-gradient(135deg, #FF9800, #FFA726);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

.no-exams-message {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.no-exams-message p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.login-prompt {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px dashed #7F6BB5;
}

.login-prompt p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 24px;
}

.login-button {
    display: inline-block;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    color: #fff;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 107, 181, 0.3);
    background: linear-gradient(135deg, #6B5A9E, #8A7BB8);
}

/* Responsive design pour la page des tests */
@media (max-width: 768px) {
    .exams-title {
        font-size: 2rem;
    }
    
    .exams-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .exams-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .exam-card {
        padding: 20px;
    }
    
    .exam-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .exams-container {
        padding: 0 16px;
    }
    
    .exams-title {
        font-size: 1.8rem;
    }
    
    .exams-subtitle {
        font-size: 1rem;
    }
    
    .exam-card {
        padding: 16px;
    }
    
    .exam-name {
        font-size: 1.2rem;
    }
    
    .exam-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* ===== STYLES POUR LA PAGE DÉTAIL D'EXAMEN ===== */

.exam-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.exam-detail-header {
    text-align: center;
    margin-bottom: 48px;
}

.exam-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exam-detail-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.exam-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.exam-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.exam-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
}

.exam-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.exam-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exam-info-title {
    flex: 1;
}

.exam-info-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2D2D2D;
    margin: 0 0 8px 0;
}

.exam-price {
    display: inline-block;
    background: linear-gradient(135deg, #FFA726, #FFB74D);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.exam-description {
    margin-bottom: 32px;
}

.exam-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 12px;
}

.exam-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.exam-features h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 16px;
}

.exam-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exam-features li {
    padding: 8px 0;
    color: #666;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.exam-features li:last-child {
    border-bottom: none;
}

.exam-actions-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    height: fit-content;
}

.exam-actions-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 24px;
    text-align: center;
}

.action-section {
    margin-bottom: 24px;
}

.action-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 8px;
}

.action-section p {
    color: #666;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.code-form {
    margin-bottom: 0;
}

.code-input-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.code-input {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.code-input:focus {
    border-color: #7F6BB5;
    box-shadow: 0 0 0 3px rgba(127, 107, 181, 0.1);
}

.code-button {
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 107, 181, 0.3);
    background: linear-gradient(135deg, #6B5A9E, #8A7BB8);
}

.action-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.action-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.action-divider span {
    background: #fff;
    padding: 0 16px;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.buy-button {
    display: block;
    background: linear-gradient(135deg, #FFA726, #FFB74D);
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
    background: linear-gradient(135deg, #FF9800, #FFA726);
    color: #fff;
}

.success-message {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.error-message {
    background: linear-gradient(135deg, #F44336, #EF5350);
    color: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Responsive design pour la page détail d'examen */
@media (max-width: 768px) {
    .exam-detail-title {
        font-size: 2rem;
    }
    
    .exam-detail-subtitle {
        font-size: 1.1rem;
    }
    
    .exam-detail-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .exam-info-card,
    .exam-actions-card {
        padding: 24px;
    }
    
    .exam-info-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .exam-icon {
        font-size: 2.5rem;
    }
    
    .exam-info-title h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .exam-detail-container {
        padding: 0 16px;
    }
    
    .exam-detail-title {
        font-size: 1.8rem;
    }
    
    .exam-detail-subtitle {
        font-size: 1rem;
    }
    
    .exam-info-card,
    .exam-actions-card {
        padding: 20px;
    }
    
    .exam-info-title h2 {
        font-size: 1.3rem;
    }
    
    .exam-price {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .code-input {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .code-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .buy-button {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* ===== SIDEBAR DRAWER MOBILE ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    z-index: 1100;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 34, 70, 0.35);
    transition: opacity 0.3s;
    opacity: 0;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.coachly-sidebar__close {
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    z-index: 1201;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.coachly-sidebar__close:hover {
    color: #FFA726;
}

.header-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    margin-right: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    z-index: 1400;
    transition: color 0.2s;
}
.header-hamburger:focus {
    outline: 2px solid #7F6BB5;
}

@media (max-width: 900px) {
    .header-hamburger {
        display: flex;
    }
    .coachly-header__container {
        flex-direction: row;
        align-items: center;
    }
    .header-logo-link {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .header-hamburger {
        font-size: 1.6rem;
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
}

/* Cache le bouton hamburger de la sidebar sur mobile (il ne sert plus à rien) */
@media (max-width: 900px) {
    .coachly-sidebar__toggle {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .header-hamburger.drawer-open {
        display: none !important;
    }
}

/* ===== PAGE TOKENS & CODES ===== */
.tokens-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.tokens-header {
    text-align: center;
    margin-bottom: 40px;
}
.tokens-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tokens-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}
.tokens-balance-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}
.tokens-balance-info {
    display: flex;
    align-items: center;
    gap: 18px;
}
.token-badge-large {
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 18px 28px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(127,107,181,0.10);
}
.token-badge-label {
    color: #7F6BB5;
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 8px;
}
.tokens-balance-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.token-action-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.token-action-btn.buy {
    background: linear-gradient(135deg, #FFA726, #FFB74D);
}
.token-action-btn.create {
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
}
.token-action-btn.disabled {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
}
.token-action-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 107, 181, 0.18);
    background: linear-gradient(135deg, #6B5A9E, #8A7BB8);
}
.token-action-btn.buy:hover {
    background: linear-gradient(135deg, #FF9800, #FFA726);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.18);
}
.tokens-codes-section {
    margin-top: 32px;
}
.codes-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}
.code-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.code-main {
    display: flex;
    align-items: center;
    gap: 16px;
}
.code-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #7F6BB5;
    letter-spacing: 1px;
    background: #F7F6F4;
    padding: 6px 16px;
    border-radius: 6px;
    user-select: all;
}
.copy-code-btn {
    background: #F7F6F4;
    color: #7F6BB5;
    border: none;
    font-size: 1.2rem;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-left: 8px;
}
.copy-code-btn:hover {
    background: #7F6BB5;
    color: #fff;
}
.code-meta {
    font-size: 0.95rem;
    color: #888;
    margin-left: 2px;
}
.no-codes-message {
    text-align: center;
    color: #888;
    background: #fff;
    border-radius: 10px;
    padding: 32px 12px;
    margin-top: 18px;
    font-size: 1.1rem;
}

@media (max-width: 700px) {
    .tokens-container {
        padding: 0 8px;
    }
    .tokens-balance-card {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px 10px;
    }
    .tokens-balance-info {
        justify-content: center;
    }
    .tokens-balance-actions {
        justify-content: center;
    }
    .codes-list {
        gap: 10px;
    }
    .code-card {
        padding: 14px 8px;
    }
    .code-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== PAGE DOCTOR PANEL ===== */
.doctor-panel-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}
.doctor-panel-header {
    text-align: center;
    margin-bottom: 40px;
}
.doctor-panel-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.doctor-panel-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}
.doctor-card, .doctor-status-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 32px 24px;
    margin-bottom: 32px;
}
.doctor-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #7F6BB5;
    margin-bottom: 24px;
    text-align: center;
}
.doctor-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row {
    display: flex;
    gap: 18px;
}
.form-row .form-group {
    flex: 1;
}
.doctor-submit-btn {
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    color: #fff;
    border: none;
    padding: 14px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(127,107,181,0.10);
}
.doctor-submit-btn:hover {
    background: linear-gradient(135deg, #6B5A9E, #8A7BB8);
    box-shadow: 0 4px 12px rgba(127, 107, 181, 0.18);
}
.doctor-status-card {
    margin-top: 32px;
}
.doctor-status-info {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.doctor-status-badge {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #FFA726;
    margin-bottom: 8px;
}
.doctor-status-badge.verified {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}
.doctor-status-badge.pending {
    background: linear-gradient(135deg, #FFA726, #FFB74D);
}
.doctor-status-details p {
    margin: 0 0 6px 0;
    color: #444;
    font-size: 1rem;
}
.doctor-verified-message {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    margin-top: 18px;
}
.doctor-pending-message {
    background: linear-gradient(135deg, #FFA726, #FFB74D);
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    margin-top: 18px;
}
@media (max-width: 700px) {
    .doctor-panel-container {
        padding: 0 8px;
    }
    .doctor-card, .doctor-status-card {
        padding: 20px 8px;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .doctor-status-info {
        flex-direction: column;
        gap: 12px;
    }
}

/* --- FIND DOCTORS PAGE --- */
.doctor-list-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.doctor-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(127,107,181,0.07);
    padding: 1.5rem 2rem;
    margin-bottom: 0;
    cursor: pointer;
    transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
    border: 1.5px solid #ece7fa;
    outline: none;
    position: relative;
    z-index: 1;
}
.doctor-card:hover, .doctor-card:focus {
    box-shadow: 0 6px 24px rgba(127,107,181,0.16);
    border-color: #b6a3e6;
    transform: translateY(-2px) scale(1.012);
    background: linear-gradient(90deg, #f7f6f4 80%, #ece7fa 100%);
}
.doctor-title {
    font-size: 1.18rem;
    font-weight: 600;
    color: #4b3c7a;
    margin-bottom: 0.2rem;
}
.doctor-meta {
    color: #7F6BB5;
    font-size: 1.01rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.01em;
}
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}
.filters-bar input.form-input,
.filters-bar select.form-input {
    min-width: 180px;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1.5px solid #d6cbe9;
    background: #f7f6f4;
    color: #4b3c7a;
    font-size: 1rem;
    transition: border 0.18s;
}
.filters-bar input.form-input:focus,
.filters-bar select.form-input:focus {
    border-color: #7F6BB5;
    outline: none;
    background: #fff;
}
@media (max-width: 700px) {
    .doctor-list-container { gap: 0.7rem; }
    .doctor-card { padding: 1.1rem 1rem; }
    .filters-bar { flex-direction: column; gap: 0.7rem; }
}
/* --- END FIND DOCTORS PAGE --- */

.find-doctors-subtitle {
    color: #4b3c7a;
    font-size: 1.08rem;
    margin-bottom: 2.2rem;
    margin-top: 0.2rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* --- ADMIN PAGE --- */
.admin-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(127,107,181,0.10);
    padding: 2.5rem 2.2rem 2rem 2.2rem;
    margin-top: 3.5rem;
}
.admin-title {
    color: #7F6BB5;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    text-align: center;
}
.admin-subtitle {
    color: #4b3c7a;
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    text-align: center;
}
.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2.2rem;
}
.admin-btn {
    display: block;
    background: #7F6BB5;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(127,107,181,0.07);
}
.admin-btn:hover, .admin-btn:focus {
    background: #6B5A9E;
    color: #fff;
    box-shadow: 0 4px 16px rgba(127,107,181,0.13);
    transform: translateY(-2px) scale(1.01);
}
.admin-alert {
    color: #fff;
    background: #e57373;
    border-radius: 7px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 1.05rem;
}
@media (max-width: 700px) {
    .admin-container { padding: 1.2rem 0.5rem; }
    .admin-title { font-size: 1.4rem; }
}
/* --- END ADMIN PAGE --- */

/* --- ADMIN DOCTORS PAGE --- */
.admin-doctors-title {
    color: #7F6BB5;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    text-align: center;
}
.admin-doctors-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(127,107,181,0.07);
    overflow: hidden;
    margin: 0 auto 2.5rem auto;
    font-size: 1.01rem;
    max-width: 1100px;
}
.admin-doctors-table th, .admin-doctors-table td {
    padding: 1rem 0.7rem;
    text-align: left;
}
.admin-doctors-table th {
    background: #ece7fa;
    color: #4b3c7a;
    font-weight: 600;
    border-bottom: 2px solid #d6cbe9;
}
.admin-doctors-table tr {
    border-bottom: 1px solid #f0eafd;
}
.admin-doctors-table tr:last-child {
    border-bottom: none;
}
.admin-doctors-table td {
    color: #4b3c7a;
}
.admin-doctors-table td .admin-action-btn {
    margin-right: 0.3rem;
}
.admin-action-btn {
    background: #7F6BB5;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(127,107,181,0.07);
    outline: none;
    display: inline-block;
}
.admin-action-btn:hover, .admin-action-btn:focus {
    background: #6B5A9E;
    color: #fff;
    box-shadow: 0 2px 8px rgba(127,107,181,0.13);
    transform: translateY(-1px) scale(1.01);
}
.admin-action-btn.danger {
    background: #e57373;
}
.admin-action-btn.danger:hover, .admin-action-btn.danger:focus {
    background: #d32f2f;
}
.admin-alert {
    color: #fff;
    background: #e57373;
    border-radius: 7px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 900px) {
    .admin-doctors-table th, .admin-doctors-table td { padding: 0.6rem 0.3rem; font-size: 0.97rem; }
    .admin-doctors-table { font-size: 0.97rem; }
}
@media (max-width: 600px) {
    .admin-doctors-table th, .admin-doctors-table td { padding: 0.4rem 0.2rem; font-size: 0.93rem; }
    .admin-doctors-table { font-size: 0.93rem; }
}
/* --- END ADMIN DOCTORS PAGE --- */

/* --- ADMIN EXAMS PAGE --- */
.admin-exams-title {
    color: #7F6BB5;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    text-align: center;
}
.admin-exams-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(127,107,181,0.07);
    overflow: hidden;
    margin: 0 auto 2.5rem auto;
    font-size: 1.01rem;
    max-width: 1100px;
}
.admin-exams-table th, .admin-exams-table td {
    padding: 1rem 0.7rem;
    text-align: left;
}
.admin-exams-table th {
    background: #ece7fa;
    color: #4b3c7a;
    font-weight: 600;
    border-bottom: 2px solid #d6cbe9;
}
.admin-exams-table tr {
    border-bottom: 1px solid #f0eafd;
}
.admin-exams-table tr:last-child {
    border-bottom: none;
}
.admin-exams-table td {
    color: #4b3c7a;
}
.admin-exams-table td .admin-action-btn {
    margin-right: 0.3rem;
}
.admin-exams-btn {
    background: #7F6BB5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.3rem;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1.2rem;
    margin-right: 0.7rem;
    display: inline-block;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(127,107,181,0.07);
}
.admin-exams-btn:hover, .admin-exams-btn:focus {
    background: #6B5A9E;
    color: #fff;
    box-shadow: 0 2px 8px rgba(127,107,181,0.13);
    transform: translateY(-1px) scale(1.01);
}
.admin-alert {
    color: #fff;
    background: #e57373;
    border-radius: 7px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 900px) {
    .admin-exams-table th, .admin-exams-table td { padding: 0.6rem 0.3rem; font-size: 0.97rem; }
    .admin-exams-table { font-size: 0.97rem; }
}
@media (max-width: 600px) {
    .admin-exams-table th, .admin-exams-table td { padding: 0.4rem 0.2rem; font-size: 0.93rem; }
    .admin-exams-table { font-size: 0.93rem; }
}
/* --- END ADMIN EXAMS PAGE --- */

/* --- ADMIN CREATE EXAM PAGE --- */
.admin-create-exam-title {
    color: #7F6BB5;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
}
.admin-create-exam-form {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(127,107,181,0.07);
    padding: 2.2rem 2rem 1.5rem 2rem;
}
.admin-create-exam-form .form-group {
    margin-bottom: 1.3rem;
}
.admin-create-exam-form label {
    color: #4b3c7a;
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
}
.admin-create-exam-form input[type="text"],
.admin-create-exam-form input[type="number"],
.admin-create-exam-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border: 1.5px solid #d6cbe9;
    background: #f7f6f4;
    color: #4b3c7a;
    font-size: 1rem;
    transition: border 0.18s;
    margin-bottom: 0.2rem;
}
.admin-create-exam-form input[type="text"]:focus,
.admin-create-exam-form input[type="number"]:focus,
.admin-create-exam-form textarea:focus {
    border-color: #7F6BB5;
    outline: none;
    background: #fff;
}
.admin-create-exam-form button,
.admin-create-exam-form a.btn {
    background: #7F6BB5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.3rem;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.7rem;
    margin-top: 0.5rem;
    display: inline-block;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(127,107,181,0.07);
}
.admin-create-exam-form button:hover,
.admin-create-exam-form button:focus,
.admin-create-exam-form a.btn:hover,
.admin-create-exam-form a.btn:focus {
    background: #6B5A9E;
    color: #fff;
    box-shadow: 0 2px 8px rgba(127,107,181,0.13);
    transform: translateY(-1px) scale(1.01);
}
.admin-create-exam-form a.btn-secondary {
    background: #e0e0e0;
    color: #4b3c7a;
}
.admin-create-exam-form a.btn-secondary:hover,
.admin-create-exam-form a.btn-secondary:focus {
    background: #bdbdbd;
    color: #4b3c7a;
}
@media (max-width: 700px) {
    .admin-create-exam-form { padding: 1.2rem 0.5rem; }
    .admin-create-exam-title { font-size: 1.2rem; }
}
/* --- END ADMIN CREATE EXAM PAGE --- */

/* --- ADMIN EXAM DETAIL PAGE --- */
.admin-exam-detail-title {
    color: #7F6BB5;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
}
.admin-exam-detail-section {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(127,107,181,0.07);
    padding: 2.2rem 2rem 1.5rem 2rem;
}
.admin-exam-detail-section p {
    font-size: 1.08rem;
    color: #4b3c7a;
    margin-bottom: 0.7rem;
}
.admin-exam-detail-section a.btn,
.admin-exam-detail-section a.admin-exams-btn {
    margin-right: 0.7rem;
    margin-bottom: 0.7rem;
}
.admin-exam-detail-section .btn-outline-primary {
    background: #fff;
    color: #7F6BB5;
    border: 1.5px solid #7F6BB5;
    border-radius: 8px;
    padding: 0.4rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.18s, color 0.18s, border 0.18s;
    text-decoration: none;
    display: inline-block;
}
.admin-exam-detail-section .btn-outline-primary:hover,
.admin-exam-detail-section .btn-outline-primary:focus {
    background: #7F6BB5;
    color: #fff;
    border-color: #6B5A9E;
}
.admin-exam-detail-section .btn-success {
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    margin-right: 0.7rem;
    transition: background 0.18s;
    text-decoration: none;
    display: inline-block;
}
.admin-exam-detail-section .btn-success:hover,
.admin-exam-detail-section .btn-success:focus {
    background: #388e3c;
    color: #fff;
}
.admin-exam-detail-section hr {
    margin: 2.2rem 0 1.5rem 0;
    border: none;
    border-top: 1.5px solid #ece7fa;
}
@media (max-width: 700px) {
    .admin-exam-detail-section { padding: 1.2rem 0.5rem; }
    .admin-exam-detail-title { font-size: 1.2rem; }
}
/* --- END ADMIN EXAM DETAIL PAGE --- */

/* --- ADMIN ADD QUESTION PAGE --- */
.admin-add-question-title {
    color: #7F6BB5;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
}
.admin-add-question-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(127,107,181,0.07);
    padding: 2.2rem 2rem 1.5rem 2rem;
}
.admin-add-question-form .form-group {
    margin-bottom: 1.3rem;
}
.admin-add-question-form label {
    color: #4b3c7a;
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
}
.admin-add-question-form input[type="text"],
.admin-add-question-form input[type="number"],
.admin-add-question-form textarea,
.admin-add-question-form select {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border: 1.5px solid #d6cbe9;
    background: #f7f6f4;
    color: #4b3c7a;
    font-size: 1rem;
    transition: border 0.18s;
    margin-bottom: 0.2rem;
}
.admin-add-question-form input[type="text"]:focus,
.admin-add-question-form input[type="number"]:focus,
.admin-add-question-form textarea:focus,
.admin-add-question-form select:focus {
    border-color: #7F6BB5;
    outline: none;
    background: #fff;
}
.admin-add-question-form button,
.admin-add-question-form .admin-exams-btn {
    background: #7F6BB5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.3rem;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.7rem;
    margin-top: 0.5rem;
    display: inline-block;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(127,107,181,0.07);
}
.admin-add-question-form button:hover,
.admin-add-question-form button:focus,
.admin-add-question-form .admin-exams-btn:hover,
.admin-add-question-form .admin-exams-btn:focus {
    background: #6B5A9E;
    color: #fff;
    box-shadow: 0 2px 8px rgba(127,107,181,0.13);
    transform: translateY(-1px) scale(1.01);
}
.admin-add-question-form .columns-flex {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}
.admin-add-question-form .columns-flex > div {
    flex: 1;
    min-width: 0;
}
@media (max-width: 700px) {
    .admin-add-question-form { padding: 1.2rem 0.5rem; }
    .admin-add-question-title { font-size: 1.1rem; }
    .admin-add-question-form .columns-flex { flex-direction: column; gap: 0.7rem; }
}
/* --- END ADMIN ADD QUESTION PAGE --- */

/* ... existing code ... */
.admin-add-question-container {
    padding: 2.5rem 0.5rem 2.5rem 0.5rem;
}
@media (max-width: 700px) {
    .admin-add-question-container { padding: 1.2rem 0.2rem 1.2rem 0.2rem; }
}
/* ... existing code ... */

/* --- ADMIN EDIT EXAM PAGE --- */
.admin-edit-exam-title {
    color: #7F6BB5;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
}
.admin-edit-exam-form-container {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(127,107,181,0.07);
    padding: 2.2rem 2rem 1.5rem 2rem;
}
.admin-edit-exam-form label {
    color: #4b3c7a;
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
}
.admin-edit-exam-form input[type="text"],
.admin-edit-exam-form input[type="number"],
.admin-edit-exam-form input[type="email"],
.admin-edit-exam-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border: 1.5px solid #d6cbe9;
    background: #f7f6f4;
    color: #4b3c7a;
    font-size: 1rem;
    transition: border 0.18s;
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
    box-sizing: border-box;
}
.admin-edit-exam-form input[type="text"]:focus,
.admin-edit-exam-form input[type="number"]:focus,
.admin-edit-exam-form input[type="email"]:focus,
.admin-edit-exam-form textarea:focus {
    border-color: #7F6BB5;
    outline: none;
    background: #fff;
}
.admin-edit-exam-form button,
.admin-edit-exam-form a.admin-exams-btn {
    background: #7F6BB5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.3rem;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.7rem;
    margin-top: 1.2rem;
    display: inline-block;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(127,107,181,0.07);
}
.admin-edit-exam-form button:hover,
.admin-edit-exam-form button:focus,
.admin-edit-exam-form a.admin-exams-btn:hover,
.admin-edit-exam-form a.admin-exams-btn:focus {
    background: #6B5A9E;
    color: #fff;
    box-shadow: 0 2px 8px rgba(127,107,181,0.13);
    transform: translateY(-1px) scale(1.01);
}
.admin-edit-exam-form input[type="text"],
.admin-edit-exam-form input[type="number"],
.admin-edit-exam-form input[type="email"] {
    margin-bottom: 1.1rem;
}
@media (max-width: 700px) {
    .admin-edit-exam-form-container { padding: 1.2rem 0.5rem; }
    .admin-edit-exam-title { font-size: 1.1rem; }
}
/* --- END ADMIN EDIT EXAM PAGE --- */

/* --- PROFILE DELETE BUTTON --- */
.profile-delete-btn {
    display: block;
    width: 100%;
    margin: 2.2rem auto 0 auto;
    background: #e57373;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.3rem;
    font-size: 1.08rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.10);
    cursor: pointer;
    letter-spacing: 0.01em;
}
.profile-delete-btn:hover, .profile-delete-btn:focus {
    background: #d32f2f;
    color: #fff;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.18);
    transform: translateY(-2px) scale(1.01);
}
/* --- END PROFILE DELETE BUTTON --- */

/* --- SUBSCRIPTION CANCEL PAGE --- */
.subscription-cancel-container {
    max-width: 480px;
    margin: 3.5rem auto 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(127,107,181,0.07);
    padding: 2.2rem 2rem 2rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.subscription-cancel-title {
    color: #e57373;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}
.subscription-cancel-desc {
    color: #4b3c7a;
    font-size: 1.08rem;
    margin-bottom: 2.2rem;
}
.subscription-cancel-btn {
    display: block;
    width: 100%;
    background: #e57373;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1rem 1.3rem;
    font-size: 1.08rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.10);
    cursor: pointer;
    letter-spacing: 0.01em;
    margin-bottom: 1.2rem;
}
.subscription-cancel-btn:hover, .subscription-cancel-btn:focus {
    background: #d32f2f;
    color: #fff;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.18);
    transform: translateY(-2px) scale(1.01);
}
.subscription-cancel-alert {
    color: #fff;
    background: #e57373;
    border-radius: 7px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 1.05rem;
}
@media (max-width: 700px) {
    .subscription-cancel-container { padding: 1.2rem 0.5rem; min-height: 55vh; }
    .subscription-cancel-title { font-size: 1.1rem; }
}
/* --- END SUBSCRIPTION CANCEL PAGE --- */

/* --- USER REPORT PAGE --- */
.report-title {
    color: #7F6BB5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.2rem;
    text-align: center;
}
.report-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(127,107,181,0.07);
    padding: 2.2rem 2rem 1.5rem 2rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.report-section-title {
    color: #4b3c7a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.report-stats {
    display: flex;
    gap: 2.2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.report-stat-badge {
    background: #ece7fa;
    color: #7F6BB5;
    border-radius: 8px;
    padding: 1.1rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(127,107,181,0.07);
    margin-bottom: 0.7rem;
    text-align: center;
}
.report-activity-graph {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(127,107,181,0.07);
}
.report-table th, .report-table td {
    padding: 0.9rem 0.7rem;
    text-align: left;
}
.report-table th {
    background: #ece7fa;
    color: #4b3c7a;
    font-weight: 600;
    border-bottom: 2px solid #d6cbe9;
}
.report-table tr {
    border-bottom: 1px solid #f0eafd;
}
.report-table tr:last-child {
    border-bottom: none;
}
.report-table td {
    color: #4b3c7a;
}
.report-table .report-action-btn {
    background: #7F6BB5;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(127,107,181,0.07);
    outline: none;
    display: inline-block;
}
.report-table .report-action-btn:hover, .report-table .report-action-btn:focus {
    background: #6B5A9E;
    color: #fff;
    box-shadow: 0 2px 8px rgba(127,107,181,0.13);
    transform: translateY(-1px) scale(1.01);
}
.report-empty {
    color: #bdbdbd;
    text-align: center;
    font-size: 1.08rem;
    margin: 1.5rem 0;
}
@media (max-width: 900px) {
    .report-section { padding: 1.2rem 0.5rem; }
    .report-title { font-size: 1.3rem; }
    .report-section-title { font-size: 1.1rem; }
    .report-table th, .report-table td { padding: 0.6rem 0.3rem; font-size: 0.97rem; }
    .report-table { font-size: 0.97rem; }
}
@media (max-width: 600px) {
    .report-section { padding: 0.7rem 0.1rem; }
    .report-title { font-size: 1.1rem; }
    .report-section-title { font-size: 1rem; }
    .report-table th, .report-table td { padding: 0.4rem 0.2rem; font-size: 0.93rem; }
    .report-table { font-size: 0.93rem; }
}
/* --- END USER REPORT PAGE --- */

/* --- EXAM RESULT PAGE --- */
.exam-result-container {
    max-width: 700px;
    margin: 3.5rem auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(127,107,181,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
}
.exam-result-title {
    color: #7F6BB5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
.exam-result-date {
    color: #4b3c7a;
    font-size: 1.08rem;
    text-align: center;
    margin-bottom: 2.2rem;
}
.exam-result-summary {
    background: #ece7fa;
    border-radius: 10px;
    padding: 1.3rem 1.1rem;
    color: #4b3c7a;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.exam-result-section-title {
    color: #4b3c7a;
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}
.exam-result-details {
    background: #f7f6f4;
    border-radius: 10px;
    padding: 1.2rem 1rem;
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 2.2rem;
    line-height: 1.6;
}
.exam-result-back-btn {
    display: block;
    margin: 2.5rem auto 0 auto;
    background: #7F6BB5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(127,107,181,0.10);
    cursor: pointer;
    letter-spacing: 0.01em;
    text-decoration: none;
    max-width: 260px;
}
.exam-result-back-btn:hover, .exam-result-back-btn:focus {
    background: #6B5A9E;
    color: #fff;
    box-shadow: 0 4px 16px rgba(127,107,181,0.18);
    transform: translateY(-2px) scale(1.01);
}
@media (max-width: 700px) {
    .exam-result-container { padding: 1.2rem 0.5rem; }
    .exam-result-title { font-size: 1.2rem; }
}
/* --- END EXAM RESULT PAGE --- */

/* --- DO EXAM PAGE --- */
.doexam-container {
    max-width: 1100px;
    margin: 3.5rem auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(127,107,181,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
}
.doexam-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2.2rem;
}
.doexam-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(127,107,181,0.10);
    margin-bottom: 2.2rem;
    font-size: 1.08rem;
}
.doexam-table th, .doexam-table td {
    padding: 1.2rem 1rem;
    text-align: center;
    min-width: 90px;
    transition: background 0.18s;
}
.doexam-table th.question-col, .doexam-table td.question-col {
    min-width: 320px;
    max-width: 520px;
    width: 44%;
    text-align: left;
    word-break: normal;
    white-space: normal;
    font-size: 1.13rem;
    color: #4b3c7a;
    font-weight: 600;
    line-height: 1.6;
    background: #f7f6f4;
    border-right: 1.5px solid #ece7fa;
}
.doexam-table th {
    background: #ece7fa;
    color: #4b3c7a;
    font-weight: 700;
    border-bottom: 2px solid #d6cbe9;
}
.doexam-table-row {
    border-bottom: 1px solid #f0eafd;
    transition: background 0.18s;
}
.doexam-table-row:hover {
    background: #f3f0fa;
}
.doexam-table-row:last-child {
    border-bottom: none;
}
.doexam-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.07rem;
    cursor: pointer;
    justify-content: center;
    padding: 0.3rem 0.2rem;
    border-radius: 6px;
    transition: background 0.18s;
}
.doexam-radio-label input[type="radio"] {
    accent-color: #7F6BB5;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.3em;
}
.doexam-radio-label:hover {
    background: #ece7fa;
}
.doexam-submit-btn {
    display: block;
    margin: 2.2rem auto 0 auto;
    background: linear-gradient(135deg, #7F6BB5, #9B8BC7);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1.1rem 2.2rem;
    font-size: 1.13rem;
    font-weight: 700;
    text-align: center;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(127,107,181,0.10);
    cursor: pointer;
    letter-spacing: 0.01em;
    text-decoration: none;
    min-width: 220px;
}
.doexam-submit-btn:hover, .doexam-submit-btn:focus {
    background: #6B5A9E;
    color: #fff;
    box-shadow: 0 4px 16px rgba(127,107,181,0.18);
    transform: translateY(-2px) scale(1.01);
}
@media (max-width: 900px) {
    .doexam-container { padding: 1.2rem 0.5rem; }
    .doexam-title { font-size: 1.3rem; }
    .doexam-table th, .doexam-table td { padding: 0.7rem 0.3rem; font-size: 0.97rem; }
    .doexam-table { font-size: 0.97rem; }
    .doexam-table th.question-col, .doexam-table td.question-col { min-width: 180px; max-width: 320px; width: 60%; font-size: 1.01rem; }
}
@media (max-width: 600px) {
    .doexam-container { padding: 0.7rem 0.1rem; }
    .doexam-title { font-size: 1.1rem; }
    .doexam-table th, .doexam-table td { padding: 0.4rem 0.2rem; font-size: 0.93rem; }
    .doexam-table { font-size: 0.93rem; }
    .doexam-table th.question-col, .doexam-table td.question-col { min-width: 120px; max-width: 200px; width: 70%; font-size: 0.97rem; }
}
/* --- END DO EXAM PAGE --- */

.doexam-table th:not(.question-col), .doexam-table td:not(.question-col) {
    font-size: 0.97rem;
    padding-left: 0.3em;
    padding-right: 0.3em;
    white-space: nowrap;
    width: 1%;
    min-width: unset;
    max-width: unset;
}
.doexam-radio-label {
    font-size: 0.97rem;
}

.tokens-section-wrapper {
    margin-top: 40px;
}

.form-help {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .admin-add-question-form { padding: 1.2rem 0.5rem; }
    .admin-add-question-title { font-size: 1.1rem; }
    .admin-add-question-form .columns-flex { flex-direction: column; gap: 0.7rem; }
}

/* Styles pour la gestion des entreprises */
.admin-companies-section {
    margin-top: 2rem;
}

/* Page spécifique pour les entreprises - contenu plus large */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-companies-section h2 {
    color: #4b3c7a;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.admin-companies-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow-y: hidden;
}

.admin-companies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 800px;
}

.admin-companies-table th, .admin-companies-table td {
    padding: 0.8rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.admin-companies-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #4b3c7a;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-companies-table tr {
    transition: background-color 0.2s;
}

.admin-companies-table tr:hover {
    background-color: #f8f9fa;
}

.admin-companies-table tr:last-child td {
    border-bottom: none;
}

.admin-companies-table td {
    vertical-align: top;
}

.admin-companies-table th:nth-child(1), .admin-companies-table td:nth-child(1) { width: 12%; }
.admin-companies-table th:nth-child(2), .admin-companies-table td:nth-child(2) { width: 15%; }
.admin-companies-table th:nth-child(3), .admin-companies-table td:nth-child(3) { width: 20%; }
.admin-companies-table th:nth-child(4), .admin-companies-table td:nth-child(4) { width: 20%; }
.admin-companies-table th:nth-child(5), .admin-companies-table td:nth-child(5) { width: 10%; }
.admin-companies-table th:nth-child(6), .admin-companies-table td:nth-child(6) { width: 12%; }
.admin-companies-table th:nth-child(7), .admin-companies-table td:nth-child(7) { width: 11%; }

.company-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-status.active {
    background-color: #d4edda;
    color: #155724;
}

.company-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.expiry-date {
    font-weight: 500;
}

.expiry-date.expired {
    color: #dc3545;
}

.expiry-date.expiring-soon {
    color: #ffc107;
}

.no-expiry {
    color: #6c757d;
    font-style: italic;
}

.company-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.company-actions .admin-action-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.admin-form-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-form-section h3 {
    color: #4b3c7a;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-btn.secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.admin-btn.secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.admin-empty-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

@media (max-width: 900px) {
    .admin-companies-table th, .admin-companies-table td {
        padding: 0.6rem 0.3rem;
        font-size: 0.9rem;
    }
    
    .company-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .company-actions .admin-action-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 600px) {
    .admin-companies-table th, .admin-companies-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.85rem;
    }
    
    .admin-companies-table {
        font-size: 0.85rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

.form-help {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.company-access-notice {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.company-access-notice p {
    margin: 0;
    color: #155724;
    font-weight: 500;
    font-size: 1rem;
}

.company-access-notice strong {
    color: #0f5132;
}

.company-access-section {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.company-access-section h4 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.company-access-section p {
    color: #155724;
    margin-bottom: 1rem;
}

.company-access-section strong {
    color: #0f5132;
}

.company-access-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-access-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}