* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-right: 1px solid #e9ecef;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.subject-selector h3,
.problem-types h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
}

.subject-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subject-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subject-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.subject-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.subject-btn i {
    font-size: 1.1rem;
}

.workspace {
    padding: 25px;
}

.input-section,
.solution-section,
.tools-section {
    margin-bottom: 30px;
}

.input-section h3,
.solution-section h3,
.tools-section h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.2rem;
}

#problem-input {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#problem-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.primary-btn,
.secondary-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-btn {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.secondary-btn {
    background: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

#solution-output {
    min-height: 200px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    background: #f8f9fa;
}

.placeholder {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
}

.placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.solution-content {
    line-height: 1.6;
}

.solution-content h4 {
    color: #495057;
    margin-bottom: 10px;
}

.solution-content .formula {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    border-left: 4px solid #667eea;
}

.solution-content .result {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: bold;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tool-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tool-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.tool-card h4 {
    margin-bottom: 10px;
    color: #495057;
}

.tool-card p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

/* Calculator Styles */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.calc-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calc-input label {
    font-weight: bold;
    color: #495057;
}

.calc-input input {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
}

.calc-input input:focus {
    outline: none;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .subject-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .subject-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error Styles */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #dc3545;
}

/* Success Styles */
.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #28a745;
} 

/* AI Homework Helper Card Styles */
.ai-helper-card {
    background: linear-gradient(135deg, #3b4a7e 0%, #4e6ba6 100%);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(59, 74, 126, 0.15);
    padding: 32px 28px 24px 28px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.ai-helper-card h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-helper-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ai-helper-form label {
    font-weight: 500;
    color: #e3e8f7;
}
.ai-helper-form select,
.ai-helper-form textarea {
    border-radius: 8px;
    border: none;
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 6px;
    background: #f8f9fa;
    color: #333;
}
.ai-helper-form select:focus,
.ai-helper-form textarea:focus {
    outline: 2px solid #3b4a7e;
}
.ai-helper-form textarea {
    min-height: 80px;
    resize: vertical;
}
.ai-helper-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.ai-helper-output {
    margin-top: 18px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    padding: 18px;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(59, 74, 126, 0.07);
}

/* Dashboard Secondary Sections */
.dashboard-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-bottom: 32px;
}
.your-courses-section, .your-webinars-section {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(59, 74, 126, 0.05);
    padding: 20px 24px;
    min-width: 260px;
    max-width: 350px;
    flex: 1 1 300px;
}
.your-courses-section h3, .your-webinars-section h3 {
    color: #3b4a7e;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .ai-helper-card {
        max-width: 98vw;
        padding: 18px 6vw;
    }
    .dashboard-secondary {
        flex-direction: column;
        gap: 18px;
    }
} 

/* Reset and base styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: #222;
}

/* Header */
.main-header {
    background: #2c417a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 56px;
    box-shadow: 0 2px 8px rgba(44,65,122,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}
.logo {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.browse-btn {
    background: #223366;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 16px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-center {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 420px;
    margin: 0 32px;
}
.search-bar {
    width: 100%;
    padding: 7px 12px;
    border-radius: 4px 0 0 4px;
    border: none;
    font-size: 1rem;
}
.search-btn {
    background: #223366;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 1rem;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-right: 8px;
    transition: color 0.2s;
}
.header-link:hover {
    color: #b3c6ff;
}
.user-avatar {
    font-size: 1.7rem;
    color: #fff;
    margin-left: 8px;
}

/* Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 56px - 60px);
    height: calc(100vh - 56px - 60px);
}

/* Sidebar */
.sidebar {
    background: #2c417a;
    color: #fff;
    width: 220px;
    min-width: 180px;
    padding: 32px 0 0 0;
    height: auto;
    min-height: 100%;
    box-shadow: 2px 0 8px rgba(44,65,122,0.04);
}
.sidebar ul {
    list-style: none;
    padding: 0 0 0 0;
    margin: 0;
}
.sidebar-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #b3c6ff;
    margin: 18px 0 8px 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sidebar li {
    margin: 0 0 2px 0;
}
.sidebar a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 4px 0 0 4px;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
}
.sidebar a:hover {
    background: #223366;
    color: #b3c6ff;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 36px 36px 0 36px;
    background: #f5f6fa;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}
.dashboard-user {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #2c417a;
}
.dashboard-section {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}
.dashboard-card {
    background: linear-gradient(135deg, #e3eafc 0%, #cfd8e8 100%);
    color: #223366;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(44,65,122,0.08);
    padding: 32px 28px 24px 28px;
    min-width: 320px;
    max-width: 400px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}
.dashboard-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #2c417a;
}
.dashboard-card p {
    font-size: 1.05rem;
    margin-bottom: 18px;
}
.primary-btn {
    background: #2c417a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}
.primary-btn:hover {
    background: #223366;
}
.or-divider {
    color: #888;
    font-size: 0.95rem;
    margin: 6px 0;
    text-align: center;
    width: 100%;
}
.card-note {
    font-size: 0.95rem;
    color: #555;
    margin-top: 2px;
}

/* Footer */
.main-footer {
    background: #f2f3f7;
    color: #2c417a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 36px;
    font-size: 0.98rem;
    height: 60px;
    box-shadow: 0 -2px 8px rgba(44,65,122,0.04);
}
.footer-logo {
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 18px;
}
.footer-contact {
    color: #2c417a;
    font-size: 0.98rem;
}
.footer-lang img {
    vertical-align: middle;
    margin-right: 4px;
}
.footer-center a {
    color: #2c417a;
    text-decoration: none;
    margin: 0 8px;
    font-size: 0.98rem;
}
.footer-center a:hover {
    text-decoration: underline;
}
.footer-right a {
    color: #2c417a;
    text-decoration: none;
    margin: 0 6px;
    font-size: 0.98rem;
}
.footer-right a:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .dashboard-section {
        flex-direction: column;
        gap: 18px;
    }
    .main-content {
        padding: 24px 8vw 0 8vw;
    }
}
@media (max-width: 800px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-width: 0;
        padding: 12px 0 0 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sidebar li {
        margin: 0;
    }
    .main-content {
        padding: 18px 2vw 0 2vw;
    }
}
@media (max-width: 600px) {
    .main-header, .main-footer {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 8px;
    }
    .main-content {
        padding: 8px 2vw 0 2vw;
    }
    .dashboard-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 18px 8px 14px 8px;
    }
} 

/* AI Homework Q&A Card Styles */
.ai-homework-card {
    background: linear-gradient(135deg, #e3eafc 0%, #cfd8e8 100%);
    color: #223366;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(44,65,122,0.10);
    padding: 32px 28px 24px 28px;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ai-homework-card h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c417a;
}
.ai-homework-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.ai-homework-form label {
    font-weight: 500;
    color: #223366;
}
.ai-homework-form input[type="file"] {
    background: #f8f9fa;
    border: 1px solid #cfd8e8;
    border-radius: 6px;
    padding: 8px;
    font-size: 1rem;
    color: #223366;
    margin-bottom: 2px;
}
.file-name-note {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 8px;
}
.ai-solution-output {
    margin-top: 18px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    padding: 18px;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(59, 74, 126, 0.07);
    width: 100%;
}
@media (max-width: 700px) {
    .ai-homework-card {
        max-width: 98vw;
        padding: 18px 6vw;
    }
} 

/* New Sidebar Styles */
.new-sidebar {
    background: #fff;
    color: #2c417a;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    padding: 24px 0 0 0;
    height: auto;
    min-height: 100%;
    box-shadow: 2px 0 8px rgba(44,65,122,0.04);
    border-right: 1px solid #e3eafc;
    flex-shrink: 0;
}
.new-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 28px;
    font-size: 1.08rem;
    color: #2c417a;
    border-radius: 8px;
    margin: 2px 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    position: relative;
}
.sidebar-item i {
    font-size: 1.2rem;
    color: #2c417a;
}
.sidebar-item.active, .sidebar-item:hover {
    background: #e3eafc;
    color: #fff;
    font-weight: 600;
}
.sidebar-item.active i, .sidebar-item:hover i {
    color: #fff;
}

/* Ensure all sidebar items look identical */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 28px;
    font-size: 1.08rem;
    color: #2c417a;
    border-radius: 8px;
    margin: 2px 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.sidebar-item i {
    font-size: 1.2rem;
    color: #2c417a;
}

.sidebar-item:hover {
    background: #e3eafc;
    color: #2c417a;
}

.sidebar-item.active {
    background: #e3eafc;
    color: #2c417a;
    border-right: 3px solid #2c417a;
}

.sidebar-item.active i {
    color: #2c417a;
}

/* Invisible clickable overlay for linked sidebar items */
.sidebar-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    text-decoration: none;
    color: transparent;
    z-index: 10;
    border-radius: 8px;
}

/* AI Smart Homework Assistant Card */
.ai-tutor-row {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
}
.dashboard-section {
    margin-top: 32px;
}
.ai-smart-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(44,65,122,0.10);
    padding: 48px 48px 36px 48px;
    min-width: 420px;
    max-width: 700px;
    flex: 2 1 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ai-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c417a;
    margin-bottom: 12px;
    text-align: center;
}
.ai-avatar {
    margin: 12px 0 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ai-subtitle {
    font-size: 1.1rem;
    color: #2c417a;
    margin-bottom: 18px;
    text-align: center;
}
.ai-question-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e3eafc;
    font-size: 1rem;
    margin-bottom: 14px;
    background: #f8f9fa;
    color: #222;
}
.ai-actions {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    width: 100%;
    justify-content: center;
}
.ai-upload-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: #2c417a;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    padding: 6px 10px;
    border: 1px solid #e3eafc;
    transition: background 0.2s, color 0.2s;
}
.ai-upload-label:hover {
    background: #e3eafc;
    color: #2c417a;
}
.ai-voice-btn {
    background: none;
    color: #2c417a;
    border: 1px solid #e3eafc;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}
.ai-voice-btn:hover {
    background: #e3eafc;
    color: #2c417a;
}
.ai-help-btn {
    width: 100%;
    background: #2c417a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 18px;
    margin-top: 2px;
    cursor: pointer;
    transition: background 0.2s;
}
.ai-help-btn:hover {
    background: #223366;
}
.ai-recent-help {
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 8px;
}
.recent-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: #2c417a;
    margin-bottom: 8px;
}
.ai-recent-help ul {
    margin: 0;
    padding-left: 18px;
    color: #223366;
    font-size: 0.98rem;
}

/* Human Tutor Card */
.human-tutor-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(44,65,122,0.10);
    padding: 32px 32px 24px 32px;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tutor-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.tutor-avatar {
    font-size: 2.8rem;
    color: #2c417a;
    background: #e3eafc;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tutor-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tutor-name {
    font-size: 1.08rem;
    font-weight: 600;
    color: #2c417a;
}
.tutor-subject {
    font-size: 0.98rem;
    color: #223366;
}
.tutor-session-btn {
    width: 100%;
    background: #2c417a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.tutor-session-btn:hover {
    background: #223366;
}
.tutor-session-details {
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 2px;
    color: #223366;
    font-size: 0.98rem;
}
.session-status {
    font-weight: 600;
    color: #2c417a;
    margin-bottom: 4px;
}
.session-date, .session-time {
    margin-bottom: 2px;
}
.session-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.session-detail-btn, .session-pay-btn {
    background: #fff;
    color: #2c417a;
    border: 1px solid #2c417a;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.session-detail-btn:hover, .session-pay-btn:hover {
    background: #2c417a;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .ai-tutor-row {
        flex-direction: column;
        gap: 18px;
        flex-wrap: wrap;
    }
    .dashboard-section {
        margin-top: 18px;
    }
    .ai-smart-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 28px 6vw 18px 6vw;
    }
    .human-tutor-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 18px 6vw 14px 6vw;
    }
    .main-content {
        padding: 24px 8vw 0 8vw;
    }
}
@media (max-width: 800px) {
    .dashboard-container {
        flex-direction: column;
    }
    .new-sidebar {
        width: 100%;
        min-width: 0;
        padding: 12px 0 0 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .new-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sidebar-item {
        margin: 0;
    }
    .main-content {
        padding: 18px 2vw 0 2vw;
    }
}
@media (max-width: 600px) {
    .main-header, .main-footer {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 8px;
    }
    .main-content {
        padding: 8px 2vw 0 2vw;
    }
    .ai-smart-card, .human-tutor-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 18px 8px 14px 8px;
    }
    .dashboard-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 18px 8px 14px 8px;
    }
} 

/* Ensure main-content stacks children vertically and prevents overlap */
.main-content {
    display: flex;
    flex-direction: column;
    padding: 36px 36px 0 36px;
    background: #f5f6fa;
    position: relative;
    z-index: 1;
}
.ai-tutor-row {
    margin-bottom: 48px;
    z-index: 1;
}
.dashboard-section {
    margin-top: 0;
    width: 100%;
    clear: both;
    z-index: 1;
    position: relative;
}
@media (max-width: 1100px) {
    .main-content {
        padding: 24px 8vw 0 8vw;
    }
    .ai-tutor-row {
        margin-bottom: 28px;
    }
    .dashboard-section {
        margin-top: 0;
    }
} 

/* Dashboard-section row layout for course and webinar cards */
.dashboard-section {
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
    width: 100%;
    flex-wrap: wrap;
    position: static;
}
@media (max-width: 1100px) {
    .dashboard-section {
        flex-direction: column;
        gap: 18px;
        margin-top: 18px;
    }
} 

/* Dashboard-row for all four cards in one row */
.dashboard-row {
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}
.dashboard-card {
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}
@media (max-width: 1400px) {
    .dashboard-row {
        gap: 18px;
    }
}
@media (max-width: 1100px) {
    .dashboard-row {
        flex-direction: column;
        gap: 18px;
        margin-top: 18px;
    }
    .dashboard-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 18px 8px 14px 8px;
    }
} 

/* AI chat window and PDF download styles */
.ai-chat-window {
  width: 100%;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  min-height: 60px;
  color: #223366;
  font-size: 1rem;
}
.ai-message {
  margin-bottom: 8px;
}
.ai-pdf-download {
  margin-top: 10px;
}
.ai-pdf-download a {
  color: #2c417a;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}
.ai-pdf-download a i {
  margin-right: 6px;
  color: #d32f2f;
} 

/* ChatGPT-style modal window styles */
.chatgpt-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44,65,122,0.15);
  display: flex; align-items: center; justify-content: center;
}
/* Make ChatGPT modal window full screen */
.chatgpt-modal-content {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
}
.chatgpt-close {
  position: absolute; top: 24px; right: 36px;
  font-size: 2.2rem; color: #2c417a; cursor: pointer;
  z-index: 10;
}
.chatgpt-chat-history {
  flex: 1 1 auto;
  padding: 32px 24px 12px 24px;
  overflow-y: auto;
  font-size: 1.05rem;
}
.chatgpt-message {
  margin-bottom: 18px;
  line-height: 1.6;
}
.chatgpt-message.user { text-align: right; color: #2c417a; }
.chatgpt-message.ai { text-align: left; color: #223366; }
.chatgpt-input-row {
  display: flex; gap: 8px; padding: 12px 24px 24px 24px;
  border-top: 1px solid #e3eafc;
}
#chatgpt-user-input {
  flex: 1 1 auto;
  border-radius: 8px;
  border: 1px solid #e3eafc;
  padding: 10px 14px;
  font-size: 1rem;
}
#chatgpt-send-btn {
  background: #2c417a; color: #fff;
  border: none; border-radius: 8px;
  padding: 0 18px; font-size: 1.2rem; cursor: pointer;
}
#chatgpt-send-btn:hover { background: #223366; } 

/* ChatGPT modal two-column layout */
.chatgpt-modal-columns {
  display: flex;
  flex-direction: row;
  gap: 0;
  height: 100%;
  width: 100%;
}
/* PDF viewer takes 50% of the modal, chat window takes 50% */
.chatgpt-modal-left {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
  background: #f4f7fb;
  width: 50%;
}
.chatgpt-modal-right {
  flex: 1 1 0;
  min-width: 0;
  padding: 32px 18px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 50%;
  height: 100%;
}
.chatgpt-pdf-viewer {
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 1px solid #e3eafc;
  border-radius: 8px;
  background: #f8f9fa;
  margin-bottom: 12px;
}
.chatgpt-chat-history {
  flex: 1 1 auto;
  padding: 32px 24px 12px 24px;
  overflow-y: auto;
  font-size: 1.05rem;
  background: #f8fafd;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 900px) {
  .chatgpt-modal-columns {
    flex-direction: column;
    height: 100%;
  }
  .chatgpt-modal-left, .chatgpt-modal-right {
    max-width: 100vw;
    width: 100%;
    height: 50vh;
  }
  .chatgpt-pdf-viewer {
    min-height: 220px;
    height: 40vh;
  }
} 

/* Add border to chat window for clarity */
.chatgpt-modal-left {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
  background: #f4f7fb;
  width: 50%;
  border: 1.5px solid #e3eafc;
  border-radius: 10px 0 0 10px;
  box-sizing: border-box;
}
.chatgpt-chat-history {
  flex: 1 1 auto;
  padding: 32px 24px 12px 24px;
  overflow-y: auto;
  font-size: 1.05rem;
  background: #f8fafd;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e3eafc;
  margin: 18px 18px 0 18px;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .chatgpt-modal-left, .chatgpt-modal-right {
    max-width: 100vw;
    width: 100%;
    height: 50vh;
    border-radius: 10px 10px 0 0;
    border-width: 1.5px;
  }
  .chatgpt-chat-history {
    margin: 18px 8px 0 8px;
    border-radius: 8px;
  }
} 

.chatgpt-bottom-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 24px 24px;
}
.chatgpt-bottom-close-btn {
  background: #fff;
  color: #2c417a;
  border: 1.5px solid #2c417a;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chatgpt-bottom-close-btn:hover {
  background: #2c417a;
  color: #fff;
} 

.freemium-section {
  margin: 48px auto 48px auto;
  padding: 0 16px;
  max-width: 500px;
  text-align: center;
}
.freemium-section h2 {
  color: #2c417a;
  margin-bottom: 24px;
}
.freemium-section .feature-card.freemium-card {
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(44,65,122,0.10);
  padding: 38px 32px 32px 32px;
  min-width: 300px;
  max-width: 360px;
  text-align: center;
} 

.sidebar-link {
    color: inherit;
    text-decoration: none;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline;
}
.sidebar-item .sidebar-link {
    display: inline;
    background: none;
    color: inherit;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
}
.sidebar-item:hover .sidebar-link,
.sidebar-item.active .sidebar-link {
    color: #fff;
    background: none;
    text-decoration: none;
} 

/* --- Messaging App UI Enhancements --- */
.chat-window-container {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 24px;
  background: linear-gradient(135deg, #f8f9fa 60%, #e3eafc 100%);
  border-left: 1.5px solid #e3eafc;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 24px rgba(44,65,122,0.04);
}
.teacher-chat-section {
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: none;
  min-width: 0;
  max-width: 900px;
  margin: 0;
  border-left: none;
  border-radius: 0 0 16px 16px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 32px 12px 32px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2c417a;
  background: #fff;
  border-bottom: 1px solid #e3eafc;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 2px 8px rgba(44,65,122,0.04);
}
.chat-header-avatar, .teacher-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3eafc;
}
.chat-header-avatar img, .teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-header-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c417a;
}
.chat-header-subject {
  font-size: 0.98rem;
  color: #4e6ba6;
}
.chat-header-status {
  font-size: 0.92rem;
  color: #4ed164;
  font-weight: 500;
  margin-top: 2px;
}
.chat-header-status.offline {
  color: #b3b3b3;
}
.chat-history-bg {
  flex: 1 1 auto;
  background: linear-gradient(135deg, #f8fafd 80%, #e3eafc 100%);
  padding: 0;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chatgpt-chat-history {
  flex: 1 1 auto;
  padding: 32px 24px 12px 24px;
  overflow-y: auto;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 8px;
  gap: 8px;
}
.message-row.user {
  flex-direction: row-reverse;
  justify-content: flex-end;
  text-align: right;
}
.message-row.user .message-bubble {
  margin-left: auto;
  margin-right: 0;
}
.message-row.user .message-timestamp {
  align-self: flex-end;
  margin-left: 0;
  margin-right: 4px;
  text-align: right;
}
.message-row .message-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3eafc;
  font-size: 1.2rem;
  color: #2c417a;
}
.message-row .message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.message-bubble {
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(44,65,122,0.06);
  position: relative;
  word-break: break-word;
}
.message-row.user .message-bubble {
  background: linear-gradient(135deg, #667eea 0%, #4e6ba6 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 18px;
  align-self: flex-end;
}
.message-row.ai .message-bubble {
  background: #fff;
  color: #223366;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 18px;
  border: 1.5px solid #e3eafc;
  align-self: flex-start;
}
.message-timestamp {
  font-size: 0.85rem;
  color: #b3b3b3;
  margin: 2px 0 0 4px;
  align-self: flex-end;
}
.chatgpt-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 24px 24px 24px;
  background: #fff;
  border-top: 1px solid #e3eafc;
  min-width: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 -2px 8px rgba(44,65,122,0.04);
}
.chat-attach-btn, .chat-emoji-btn {
  background: none;
  border: none;
  color: #4e6ba6;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}
.chat-attach-btn:hover, .chat-emoji-btn:hover {
  color: #667eea;
}
.teacher-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px 12px 18px;
}
.teacher-list-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #2c417a;
}
.teacher-list-section {
  padding: 0 18px 0 18px;
}
.teacher-list-group {
  font-size: 0.98rem;
  font-weight: 700;
  color: #4e6ba6;
  margin: 18px 0 6px 0;
  letter-spacing: 0.5px;
}
.teacher-list-ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.teacher-item {
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.teacher-item.active, .teacher-item:hover {
  background: #e3eafc;
  color: #2c417a;
  font-weight: 600;
}
.teacher-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3eafc;
  font-size: 1.1rem;
}
.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.teacher-avatar.ai {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  background: #f3f6fd;
  color: #4e6ba6;
}
.teacher-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 8px;
  background: #4ed164;
  display: inline-block;
}
.teacher-status.offline {
  background: #b3b3b3;
}
.teacher-last-message {
  display: block;
  font-size: 0.92rem;
  color: #888;
  margin-left: 36px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.expand-bar {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-right: 1.5px solid #e3eafc;
}
.expand-teacher-list-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2c417a;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expand-teacher-list-btn:hover {
  background: #e3eafc;
  color: #4e6ba6;
}
#start-video-call {
  background: #e3eafc;
  color: #2c417a;
  border: none;
  border-radius: 50%;
  padding: 0;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
#start-video-call:hover {
  background: #4e6ba6;
  color: #fff;
}
#chatgpt-voice-btn {
  background: #e3eafc;
  color: #2c417a;
  border: none;
  border-radius: 50%;
  padding: 0;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  transition: background 0.2s, color 0.2s;
}
#chatgpt-voice-btn:hover {
  background: #4e6ba6;
  color: #fff;
}
@media (max-width: 900px) {
  .messages-flex-container { flex-direction: column; }
  .teacher-list { width: 100vw; max-width: 100vw; border-right: none; border-bottom: 1.5px solid #e3eafc; flex-direction: row; }
  .expand-bar { display:none !important; }
  .teacher-chat-section { height: 60vh; max-width:100vw; border-left:none; }
}
/* --- End Messaging App UI Enhancements --- */ 

/* --- Messaging App UI Fixes --- */
.chatgpt-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 24px 24px 24px;
  background: #fff;
  border-top: 1px solid #e3eafc;
  min-width: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 -2px 8px rgba(44,65,122,0.04);
}
.chat-attach-btn, .chat-emoji-btn {
  background: none;
  border: none;
  color: #4e6ba6;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}
.chat-attach-btn:hover, .chat-emoji-btn:hover {
  color: #667eea;
}
.teacher-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px 12px 18px;
}
.teacher-list-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #2c417a;
}
.teacher-list-section {
  padding: 0 18px 0 18px;
}
.teacher-list-group {
  font-size: 0.98rem;
  font-weight: 700;
  color: #4e6ba6;
  margin: 18px 0 6px 0;
  letter-spacing: 0.5px;
}
.teacher-list-ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.teacher-item {
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.teacher-item.active, .teacher-item:hover {
  background: #e3eafc;
  color: #2c417a;
  font-weight: 600;
}
.teacher-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3eafc;
  font-size: 1.1rem;
}
.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.teacher-avatar.ai {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  background: #f3f6fd;
  color: #4e6ba6;
}
.teacher-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 8px;
  background: #4ed164;
  display: inline-block;
}
.teacher-status.offline {
  background: #b3b3b3;
}
.teacher-last-message {
  display: block;
  font-size: 0.92rem;
  color: #888;
  margin-left: 36px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.expand-bar {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-right: 1.5px solid #e3eafc;
}
.expand-teacher-list-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2c417a;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expand-teacher-list-btn:hover {
  background: #e3eafc;
  color: #4e6ba6;
}
#start-video-call {
  background: #e3eafc;
  color: #2c417a;
  border: none;
  border-radius: 50%;
  padding: 0;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
#start-video-call:hover {
  background: #4e6ba6;
  color: #fff;
}
#chatgpt-voice-btn {
  background: #e3eafc;
  color: #2c417a;
  border: none;
  border-radius: 50%;
  padding: 0;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  transition: background 0.2s, color 0.2s;
}
#chatgpt-voice-btn:hover {
  background: #4e6ba6;
  color: #fff;
}
.teacher-list-collapse {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2c417a;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  box-shadow: 0 1px 4px rgba(44,65,122,0.04);
}
.teacher-list-collapse:hover {
  background: #e3eafc;
  color: #4e6ba6;
}
/* --- End Messaging App UI Fixes --- */

/* Profile Dropdown Styles */
.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    padding: 10px 0;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown .profile-name {
    padding: 10px 20px;
    font-weight: 600;
    color: #2c417a;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 5px;
}

.profile-dropdown .dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #64748b;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-dropdown .dropdown-item:hover {
    background-color: #f0f4f8;
    color: #4e6ba6;
} 