/* 
===========================================
ADVANCED MOCK TEST PLUGIN - DASHBOARD STYLES
Version: 3.0
Author: jobmark
===========================================
*/

/* Dashboard Base Styles */
.dashboard-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    padding: 20px;
    position: relative;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    min-width: 300px;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.online-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
}

.online-status.active {
    background: #2ecc71;
}

.online-status.inactive {
    background: #e74c3c;
}

.profile-info h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.user-name {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 5px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 6px 15px;
    border-radius: 20px;
    border: 2px solid #e0e7ff;
}

.meta-item i {
    color: var(--accent-color);
}

.role-badge {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-color), #0d47a1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(23, 78, 166, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
}

.btn-xl {
    padding: 18px 45px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

.logout-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    border: 3px solid;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: inherit;
}

.stat-card:nth-child(1) { border-color: #667eea; }
.stat-card:nth-child(2) { border-color: #f093fb; }
.stat-card:nth-child(3) { border-color: #4facfe; }
.stat-card:nth-child(4) { border-color: #43e97b; }

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 20px;
    width: fit-content;
}

.stat-trend.up {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.stat-trend.down {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* Dashboard Content Layout */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.dashboard-section.full-width {
    grid-column: 1 / -1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e0e7ff;
}

.section-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-all {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.section-subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
    font-weight: 500;
}

.badge-count {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e0e7ff;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: inherit;
}

.activity-item:hover {
    background: white;
    border-color: var(--secondary-color);
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.meta-item i {
    color: var(--accent-color);
    font-size: 16px;
}

.activity-score {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-badge {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.view-result-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.view-result-btn:hover {
    background: #0097a7;
    transform: rotate(15deg);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 3px dashed #e0e7ff;
}

.empty-icon {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-state p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

/* Section Performance */
.section-performance {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-performance-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e0e7ff;
    transition: var(--transition);
}

.section-performance-item:hover {
    background: white;
    border-color: var(--secondary-color);
    transform: translateX(10px);
}

.section-performance-item .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e7ff;
}

.section-performance-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
}

.section-accuracy {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 16px;
}

.section-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e7ff;
}

.stat-label {
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.stat-value {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 16px;
}

.stat-value.correct {
    color: var(--success-color);
}

.stat-value.incorrect {
    color: var(--danger-color);
}

.stat-value.skipped {
    color: var(--warning-color);
}

/* Progress Bar */
.progress-bar {
    height: 12px;
    background: #e0e7ff;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 6px;
    transition: width 1s ease;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.achievement-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    border: 3px solid #e0e7ff;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.achievement-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.achievement-icon {
    font-size: 36px;
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.achievement-card.locked .achievement-icon {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.achievement-content h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.achievement-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.achievements-progress {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e0e7ff;
}

.achievements-progress .progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Recommended Tests */
.recommended-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.test-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #e0e7ff;
    transition: var(--transition);
}

.test-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.test-card-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.test-card-body {
    padding: 25px;
}

.test-card-body h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.test-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.test-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.info-item i {
    color: var(--accent-color);
    font-size: 16px;
}

.test-difficulty {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e7ff;
}

.difficulty-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

.difficulty-stars {
    display: flex;
    gap: 5px;
}

.difficulty-stars i {
    color: #ffd700;
    font-size: 18px;
}

.difficulty-stars i.filled {
    color: #ff9800;
}

.test-card-footer {
    padding: 20px;
    border-top: 2px solid #e0e7ff;
    background: #f8f9fa;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.action-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    border: 3px solid #e0e7ff;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.action-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.action-card span {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 3px solid #e0e7ff;
    height: 400px;
    position: relative;
}

.chart-options {
    display: flex;
    gap: 10px;
}

.chart-option {
    background: #f8f9fa;
    border: 2px solid #e0e7ff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
}

.chart-option:hover {
    background: #e0e7ff;
    color: var(--primary-color);
}

.chart-option.active {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
    border-color: var(--accent-color);
}

/* Study Goals */
.goals-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.goal-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    border: 3px solid #e0e7ff;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
}

.goal-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.goal-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.goal-content {
    flex: 1;
}

.goal-content h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.goal-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.goal-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.completed {
    background: linear-gradient(45deg, var(--success-color), #219653);
    color: white;
}

.status-badge.in-progress {
    background: linear-gradient(45deg, var(--warning-color), #e67e22);
    color: white;
}

/* Dashboard Notifications */
.dashboard-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 20px 25px;
    border: 3px solid;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    animation: slideInRight 0.5s ease;
    max-width: 400px;
}

.notification-success {
    border-color: var(--success-color);
}

.notification-error {
    border-color: var(--danger-color);
}

.notification-warning {
    border-color: var(--warning-color);
}

.notification-info {
    border-color: var(--info-color);
}

.notification-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: linear-gradient(45deg, var(--success-color), #219653);
}

.notification-error .notification-icon {
    background: linear-gradient(45deg, var(--danger-color), #c0392b);
}

.notification-warning .notification-icon {
    background: linear-gradient(45deg, var(--warning-color), #e67e22);
}

.notification-info .notification-icon {
    background: linear-gradient(45deg, var(--info-color), #2980b9);
}

.notification-message {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.notification-close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.notification-close:hover {
    background: #f0f0f0;
    color: var(--danger-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid #e0e7ff;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
}

.loading-spinner .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}

.loading-spinner p {
    color: #666;
    font-size: 18px;
    font-weight: 600;
}

/* Auth Required Page */
.auth-required-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-required-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 50px;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 25px 60px rgba(0, 188, 212, 0.2);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.auth-icon {
    font-size: 80px;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.auth-required-card h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.auth-required-card p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.auth-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right {
        grid-row: 2;
    }
}

@media (max-width: 992px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-profile-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .activity-meta {
        justify-content: center;
    }
    
    .section-stats {
        grid-template-columns: 1fr;
    }
    
    .test-meta {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .goals-container {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .dashboard-section {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 15px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .stat-trend {
        margin: 0 auto;
    }
    
    .user-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .chart-options {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dashboard-notification {
        left: 15px;
        right: 15px;
        max-width: none;
    }
}