/* dashboard.css - COMPLETE VERSION */

/* ==================== DASHBOARD STYLES ==================== */

/* Dashboard Section */
.dashboard-section {
    padding: 110px 20px 50px;
    background: #f9fafb;
    min-height: 100vh;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.welcome-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.last-login {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.last-login i {
    font-size: 1rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.quick-action-btn.primary {
    background: white;
    color: #2563eb;
}

.quick-action-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.quick-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Alert Banners */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    color: #991b1b;
}

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

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb, #1e40af);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

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

.stat-icon.purple,
.stat-icon.blue {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.stat-icon.pink {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-change {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    background: #dcfce7;
    color: #16a34a;
}

.stat-change.negative {
    background: #fee2e2;
    color: #dc2626;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-footer i {
    font-size: 0.9rem;
}

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

/* Dashboard Card */
.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: fadeIn 0.5s ease backwards;
}

.dashboard-card:nth-child(1) { animation-delay: 0.5s; }
.dashboard-card:nth-child(2) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.card-header h2 i {
    font-size: 1.1rem;
    color: #2563eb;
}

.view-all-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 8px;
}

.view-all-link:hover {
    background: #eff6ff;
    transform: translateX(2px);
}

.card-body {
    padding: 28px;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #2563eb, #1e40af);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.activity-item:hover::before {
    opacity: 1;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.activity-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.activity-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.activity-icon.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.activity-icon.info {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.activity-description .passed {
    color: #10b981;
    font-weight: 600;
}

.activity-description .failed {
    color: #ef4444;
    font-weight: 600;
}

.activity-time {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.activity-action {
    color: #2563eb;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
}

.activity-action:hover {
    background: #eff6ff;
    border-color: #2563eb;
    transform: scale(1.1);
}

.activity-action.download {
    color: #10b981;
}

.activity-action.download:hover {
    background: #d1fae5;
    border-color: #10b981;
}

/* Available Tests Grid */
.tests-mini-grid {
    display: grid;
    gap: 16px;
}

.test-mini-card {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.test-mini-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.test-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.test-mini-card:hover::after {
    transform: scaleX(1);
}

.test-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.test-mini-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Level Badges */
.test-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.test-badge.level-associate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.test-badge.level-professional {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.test-badge.level-leader {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.test-mini-info {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.test-mini-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.test-mini-info i {
    color: #9ca3af;
}

.test-mini-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.test-attempts {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
}

.btn-start-test {
    padding: 8px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-start-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* ==================== PROGRESS SECTION ==================== */
.progress-section {
    margin-top: 30px;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.progress-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    animation: fadeInUp 0.6s ease backwards;
}

.progress-card:nth-child(1) { animation-delay: 0.7s; }
.progress-card:nth-child(2) { animation-delay: 0.8s; }

/* Featured Progress Card */
.progress-card.featured {
    border: 2px solid #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.progress-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Other Levels Card */
.progress-card.other-levels {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.progress-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.progress-title i {
    color: #2563eb;
}

.progress-percentage {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-label span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-label i {
    color: #2563eb;
}

.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar.large {
    height: 14px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
    width: 0;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Level Stats Grid */
.level-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.level-stat-item {
    text-align: center;
    padding: 16px 10px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.level-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
}

.level-stat-item .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}

.level-stat-item .stat-text {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Footer */
.progress-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-view-tests {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-view-tests:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Other Level Items */
.other-level-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.other-level-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.other-level-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.other-level-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.other-level-icon.associate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.other-level-icon.professional {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.other-level-icon.leader {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.other-level-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.other-level-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.other-level-status {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.other-level-status.subscribed {
    color: #10b981;
}

.other-level-status.locked {
    color: #9ca3af;
}

.other-level-actions {
    flex-shrink: 0;
}

.btn-switch-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-switch-level:hover {
    background: #2563eb;
    color: white;
}

/* Level Quick Link */
.level-quick-link {
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 5px;
    display: inline-block;
}

.level-quick-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #e5e7eb;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
}

.empty-state-description {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 24px;
}

.empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-state-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Upgrade Banner */
.upgrade-banner {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    animation: slideUp 0.5s ease backwards;
    animation-delay: 0.9s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upgrade-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.upgrade-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
}

.upgrade-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.upgrade-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.upgrade-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.upgrade-feature.locked {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.upgrade-feature.locked i {
    color: #fbbf24;
}

.upgrade-feature.unlocked {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.upgrade-feature.unlocked i {
    color: #10b981;
}

.btn-upgrade {
    padding: 16px 32px;
    background: white;
    color: #2563eb;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-upgrade:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .level-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-section {
        padding: 80px 15px 30px;
    }

    .dashboard-header {
        padding: 30px 20px;
    }

    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
    }

    .welcome-content h1 {
        font-size: 1.8rem;
    }

    .quick-actions {
        width: 100%;
        flex-direction: column;
    }

    .quick-action-btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .level-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .upgrade-content {
        flex-direction: column;
        text-align: center;
    }

    .upgrade-features {
        justify-content: center;
    }

    .btn-upgrade {
        width: 100%;
        justify-content: center;
    }

    .activity-item {
        flex-wrap: wrap;
    }

    .activity-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e5e7eb;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .welcome-content h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .card-header {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .card-header h2 {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 20px;
    }

    .level-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .level-stat-item {
        padding: 12px 8px;
    }

    .level-stat-item .stat-number {
        font-size: 1.4rem;
    }

    .upgrade-banner {
        padding: 30px 20px;
    }

    .upgrade-text h3 {
        font-size: 1.4rem;
    }

    .other-level-item {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .other-level-actions {
        width: 100%;
    }

    .btn-switch-level {
        width: 100%;
        justify-content: center;
    }
}



/* ==================== PROFILE PAGE SUBSCRIPTION STYLES ==================== */

/* Profile Header Actions */
.profile-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-action-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-action-btn.secondary {
    background: white;
    color: #6b7280;
    border-color: #e5e7eb;
}

.profile-action-btn.secondary:hover {
    background: #f9fafb;
    color: #4b5563;
    border-color: #d1d5db;
}

.profile-action-btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.profile-action-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.profile-action-btn i {
    font-size: 1rem;
}

/* Profile Subscriptions Section */
.profile-subscriptions-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    animation: fadeInUp 0.6s ease;
}

.subscriptions-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.subscriptions-title i {
    color: #2563eb;
    font-size: 1.3rem;
}

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

.profile-subscription-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-subscription-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb, #1e40af);
    transition: width 0.3s ease;
}

.profile-subscription-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.profile-subscription-card:hover::before {
    width: 8px;
}

/* Color variations for different levels */
.profile-subscription-card.associate::before {
    background: linear-gradient(180deg, #10b981, #059669);
}

.profile-subscription-card.professional::before {
    background: linear-gradient(180deg, #2563eb, #1e40af);
}

.profile-subscription-card.leader::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.profile-sub-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-sub-icon.associate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.profile-sub-icon.professional {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.profile-sub-icon.leader {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.profile-sub-info {
    flex: 1;
}

.profile-sub-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
    font-family: 'Poppins', sans-serif;
}

.profile-sub-info p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.profile-sub-badge {
    font-size: 1.5rem;
    color: #10b981;
    flex-shrink: 0;
}

/* Profile Sidebar Enhancements */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.badge-free {
    background: #e5e7eb;
    color: #6b7280;
}

.sidebar-subscription-count {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-subscription-count i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-header-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .profile-action-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .profile-header-actions {
        flex-direction: column;
    }
    
    .profile-action-btn {
        width: 100%;
    }
    
    .profile-subscriptions-grid {
        grid-template-columns: 1fr;
    }
    
    .subscriptions-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .profile-subscriptions-section {
        padding: 20px;
        margin: 0 -5px 20px;
    }
    
    .profile-subscription-card {
        padding: 16px;
    }
    
    .profile-sub-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .profile-sub-info h4 {
        font-size: 1.05rem;
    }
    
    .profile-sub-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .profile-action-btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .profile-action-btn span {
        display: none;
    }
    
    .profile-action-btn i {
        font-size: 1.1rem;
        margin: 0;
    }
    
    /* Show text on primary button */
    .profile-action-btn.primary span {
        display: inline;
    }
}
