/* Mobile Responsive Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .dashboard-container {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100%;
        width: 270px;
        z-index: 1000;
        transition: left 0.3s ease;
        background-color: white;
        padding-top: 20px;
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: 0 0 15px rgba(0,0,0,0.2);
    }
    
    .mobile-overlay {
        display: block;
    }
    
    .mobile-overlay.active {
        opacity: 1;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background-color: var(--primary-color);
        color: white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .top-nav {
        padding: 15px 15px 15px 60px;
        margin-bottom: 10px;
        background-color: var(--card-bg);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
    }
    
    /* Grid layouts */
    .stats-grid,
    .dashboard-grid,
    .feature-grid,
    .papers-grid,
    .analytics-grid,
    .progress-grid,
    .tasks-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Cards */
    .stat-card,
    .dashboard-card,
    .feature-card,
    .ai-insights,
    .paper-card,
    .analytics-card,
    .tasks-card,
    .comparison-card,
    .interview-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    /* Typography */
    .welcome-section {
        margin-bottom: 20px;
        padding: 15px;
        background-color: var(--card-bg);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
    }
    
    .welcome-section h1 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .welcome-section p {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    /* Charts */
    .chart-container {
        height: 200px;
        margin-bottom: 10px;
    }
    
    /* Card headers */
    .card-header,
    .comparison-header,
    .tasks-header,
    .ai-header {
        margin-bottom: 15px;
    }
    
    .card-title,
    .comparison-title,
    .tasks-title,
    .ai-title {
        font-size: 16px;
    }
    
    /* Stats */
    .stat-value {
        font-size: 24px !important;
    }
    
    .stat-label {
        font-size: 12px !important;
    }
    
    /* AI Insights */
    .ai-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .ai-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }
    
    .insight-item {
        padding: 8px 0 !important;
    }
    
    .insight-icon {
        margin-top: 3px;
    }
    
    /* Tasks */
    .task-item {
        padding: 10px 0 !important;
    }
    
    .task-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px;
    }
    
    .task-subject {
        margin-left: 0;
        font-size: 10px !important;
        padding: 1px 6px !important;
    }
    
    /* Feature cards */
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 10px !important;
    }
    
    .feature-icon i {
        font-size: 20px !important;
    }
    
    .feature-title {
        font-size: 16px !important;
        margin-bottom: 5px !important;
    }
    
    .feature-description {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }
    
    .start-btn {
        padding: 6px 15px !important;
        font-size: 13px !important;
    }
    
    /* Calendar */
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }
    
    .calendar-day {
        padding: 2px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .day-event {
        font-size: 6px;
        padding: 1px 2px;
    }
    
    /* Chat */
    .chat-container {
        flex-direction: column;
        height: auto;
    }
    
    .topics-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .chat-messages {
        max-height: 400px;
    }
    
    .message {
        max-width: 90%;
    }
}