/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background-color: #f5f7fa;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: #fff;
    box-shadow: var(--shadow-md);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sidebar-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sidebar-menu a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: var(--dark-color);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu a i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-menu a.active {
    background-color: rgba(255, 87, 34, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.subscription-info {
    padding: 20px;
    background-color: #f5f7fa;
    margin: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.plan-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.plan-badge.free {
    background-color: #e0e0e0;
    color: #616161;
}

.plan-badge.premium {
    background-color: #ffd54f;
    color: #ff6f00;
}

.plan-badge.advanced {
    background-color: #81c784;
    color: #2e7d32;
}

.subscription-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.upgrade-btn {
    background: var(--gradient-primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

/* Dashboard Content Styles */
.dashboard-content {
    flex: 1;
    padding: 30px;
}

.welcome-banner {
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    color: #fff;
}

.welcome-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: left;
}

.welcome-text p {
    font-size: 1rem;
    opacity: 0.9;
}

.quick-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-icon i {
    color: #fff;
    font-size: 1.3rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.section {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.view-all {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.activity-icon.solved {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.activity-icon.watched {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.activity-icon.asked {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.activity-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.activity-details p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.8rem;
    color: #9e9e9e;
}

/* Recommended List */
.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommended-item {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.recommended-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recommended-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 15px;
}

.recommended-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.recommended-details p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.progress-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
}

/* Progress Chart */
.time-filter {
    display: flex;
    gap: 10px;
}

.time-filter button {
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    background-color: #f5f5f5;
    color: var(--gray-color);
    transition: var(--transition);
}

.time-filter button.active {
    background-color: var(--primary-color);
    color: #fff;
}

.chart-placeholder {
    height: 200px;
    background-color: #f5f7fa;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.chart-note {
    font-size: 0.8rem;
    color: #9e9e9e;
    margin-top: 10px;
}

/* Test List */
.test-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.test-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: var(--radius-md);
}

.test-date {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: var(--shadow-sm);
}

.test-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.test-date .month {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.test-details {
    flex: 1;
}

.test-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.test-details p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.test-time {
    font-size: 0.8rem;
    color: #9e9e9e;
}

.prepare-btn {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.prepare-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notifications {
    position: relative;
    cursor: pointer;
}

.notifications i {
    font-size: 1.2rem;
    color: var(--gray-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    z-index: 100;
    display: none;
}

.user-profile:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--dark-color);
    transition: var(--transition);
}

.dropdown-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-menu a.logout {
    color: #f44336;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .welcome-text {
        margin-bottom: 20px;
    }
    
    .sidebar {
        width: 80px;
        padding: 20px 0;
    }
    
    .sidebar-header {
        padding: 0 10px 15px;
        justify-content: center;
    }
    
    .sidebar-header div,
    .subscription-info p,
    .sidebar-menu a span {
        display: none;
    }
    
    .sidebar-header img {
        margin-right: 0;
    }
    
    .sidebar-menu a {
        justify-content: center;
        padding: 15px 0;
    }
    
    .sidebar-menu a i {
        margin-right: 0;
        font-size: 1.4rem;
    }
    
    .subscription-info {
        padding: 15px 5px;
        margin: 15px 10px;
    }
    
    .plan-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 15px;
    }
    
    .sidebar-header {
        display: flex;
        padding: 0 0 15px;
        margin-bottom: 15px;
    }
    
    .sidebar-header div {
        display: block;
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .sidebar-menu a {
        padding: 10px 15px;
        white-space: nowrap;
    }
    
    .sidebar-menu a i {
        margin-right: 10px;
    }
    
    .sidebar-menu a span {
        display: inline;
    }
    
    .subscription-info {
        display: none;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .dashboard-content {
        padding: 20px 15px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .test-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .test-date {
        margin-bottom: 15px;
    }
    
    .prepare-btn {
        margin-top: 15px;
        width: 100%;
    }
}
