/* Modern Dashboard CSS */

/* Root Variables - Consistent with Forum Theme */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #23272a;
    --light-color: #f8f9fa;
    
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #23272a;
    --text-primary: #ffffff;
    --text-secondary: #99aab5;
    --text-muted: rgb(237, 237, 237, 0.75);
    
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
    background-color: #121212 !important;
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.container-fluid {
    max-width: 1400px;
}

/* Card Styles */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid #575757;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: #007bff;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-bottom: 1px solid #575757;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

/* Profile Card */
.profile-card {
    background-color: var(--bg-secondary);
    border: 1px solid #007bff;
    position: sticky;
    top: 90px;
}

.profile-picture-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.profile-picture-container:hover {
    transform: scale(1.05);
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.profile-picture-container:hover .profile-overlay {
    opacity: 1;
}

.profile-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* Rank Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 123, 255, 0.15);
    border: 1px solid #575757;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.rank-icon {
    font-size: 1.2rem;
}

/* User Stats */
.stat-item {
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #575757;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.stat-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    transform: translateY(-1px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Modern Buttons */
.btn-modern {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary.btn-modern {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline-primary.btn-modern {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary.btn-modern:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-danger.btn-modern {
    background: linear-gradient(135deg, var(--danger-color), #b02a37);
}

.btn-danger.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* User Details */
.user-details {
    background-color: var(--bg-tertiary);
    border: 1px solid #575757;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: rgba(237, 237, 237, 0.75) !important;
}

.detail-item i {
    width: 20px;
    text-align: center;
}

/* Text Muted Override */
.text-muted {
    color: rgba(237, 237, 237, 0.75) !important;
}

/* Dashboard Cards */
.dashboard-card {
    background-color: var(--bg-secondary);
    border: 1px solid #575757;
    margin-bottom: 1.5rem;
}

/* Activity Overview */
.activity-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: center;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid #575757;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.summary-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    transform: translateX(5px);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.summary-content h6 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tab Navigation */
.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: 1px solid #575757;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    background-color: var(--bg-tertiary);
    margin-right: 0.25rem;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

.nav-tabs .nav-link.active {
    color: var(--text-primary);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Activity List */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.activity-list::-webkit-scrollbar {
    width: 8px;
}

.activity-list::-webkit-scrollbar-track {
    background-color: var(--bg-tertiary);
    border-radius: 4px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 4px;
    border: 1px solid #575757;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.75rem;
    background-color: var(--bg-tertiary);
    border: 1px solid #575757;
    transition: var(--transition);
    transform: translateX(-10px);
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.activity-item:nth-child(1) { animation-delay: 0.1s; }
.activity-item:nth-child(2) { animation-delay: 0.2s; }
.activity-item:nth-child(3) { animation-delay: 0.3s; }
.activity-item:nth-child(4) { animation-delay: 0.4s; }
.activity-item:nth-child(5) { animation-delay: 0.5s; }

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content h6 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.activity-content h6 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.activity-content h6 a:hover {
    color: var(--primary-color);
}

.activity-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-bg 2s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Friend Requests & Friends */
.friend-request-item,
.friend-item {
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid #575757;
    transition: var(--transition);
}

.friend-request-item:hover,
.friend-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

/* Fix friend request username color for dark theme */
.friend-request-item h6.mb-1,
.friend-item h6.mb-1 {
    color: #ffffff !important;
    font-weight: 600;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #575757;
}

.friend-item a {
    color: var(--text-primary);
    text-decoration: none;
}

.friend-item h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
}

/* Friends List */
.friends-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.friends-list::-webkit-scrollbar {
    width: 8px;
}

.friends-list::-webkit-scrollbar-track {
    background-color: var(--bg-tertiary);
    border-radius: 4px;
}

.friends-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 4px;
    border: 1px solid #575757;
}

.friends-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
}

/* Modal Styles */
.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid #575757;
    border-radius: var(--border-radius);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-bottom: 1px solid #575757;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    background-color: var(--bg-tertiary);
}

.form-control {
    background-color: var(--bg-secondary);
    border: 1px solid #575757;
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
}

.form-control:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    color: var(--text-primary);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-secondary);
}

/* Badge */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.35em 0.65em;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: var(--text-primary);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loader-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* Pulse Animation for Stats */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-item:hover .stat-number {
    animation: pulse 0.6s ease-in-out;
}

/* Enhanced Card Animations */
.card.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.col-lg-3:nth-child(1) .card { animation-delay: 0.1s; }
.col-lg-6:nth-child(2) .card:nth-child(1) { animation-delay: 0.2s; }
.col-lg-6:nth-child(2) .card:nth-child(2) { animation-delay: 0.3s; }
.col-lg-3:nth-child(3) .card:nth-child(1) { animation-delay: 0.4s; }
.col-lg-3:nth-child(3) .card:nth-child(2) { animation-delay: 0.5s; }

/* Enhanced Hover Effects */
.dashboard-card {
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.dashboard-card:hover::before {
    left: 100%;
}

.dashboard-card .card-body {
    position: relative;
    z-index: 2;
}

/* Enhanced Button Styles */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn-modern:active::after {
    width: 300px;
    height: 300px;
}

/* Improved Activity Item Animation */
.activity-item {
    transform: translateX(-10px);
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.activity-item:nth-child(1) { animation-delay: 0.1s; }
.activity-item:nth-child(2) { animation-delay: 0.2s; }
.activity-item:nth-child(3) { animation-delay: 0.3s; }
.activity-item:nth-child(4) { animation-delay: 0.4s; }
.activity-item:nth-child(5) { animation-delay: 0.5s; }

/* Enhanced Profile Picture Container */
.profile-picture-container {
    position: relative;
}

.profile-picture-container::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: conic-gradient(from 0deg, var(--primary-color), #0056b3, var(--primary-color));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.profile-picture-container:hover::after {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Improved Tab Animations */
.nav-tabs .nav-link {
    position: relative;
}

.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-tabs .nav-link.active::after,
.nav-tabs .nav-link:hover::after {
    width: 100%;
}

/* Enhanced Modal Animations */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Improved Alert Styles */
.alert {
    border-left-width: 4px;
    border-left-style: solid;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Typography */
.card-title {
    color: #ffffff !important;
    font-weight: 700;
}

/* Custom Focus Styles */
.form-control:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Fix fw-bold color for better visibility */
.fw-bold {
    color: rgb(237 237 237 / 75%) !important;
}

/* Hashtag functionality styles */
.hashtag-preview {
    font-family: 'Courier New', monospace;
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 123, 255, 0.3);
    font-size: 0.75rem;
}

.copy-link-btn {
    border: none;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.8rem;
}

.copy-link-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #ffffff;
    transform: scale(1.05);
}

.copy-link-btn:active {
    transform: scale(0.95);
}

.activity-content h6 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

/* Advanced Mobile Responsiveness */
@media (max-width: 992px) {
    .profile-card {
        position: static;
        margin-bottom: 2rem;
    }
    
    .container-fluid {
        padding: 1rem;
    }
    
    .summary-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    /* Mobile-first navigation improvements */
    .nav-tabs {
        border-bottom: none;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        margin-right: 0.1rem;
    }
    
    /* Stack user stats vertically on mobile */
    .user-details {
        text-align: center;
    }
    
    .detail-item {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    /* Improve button spacing on mobile */
    .btn-modern {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile-optimized activity items */
    .activity-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.75rem;
    }
    
    .activity-icon {
        align-self: center;
        margin-bottom: 0.5rem;
    }
    
    /* Friend items mobile optimization */
    .friend-item .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .friend-avatar {
        align-self: center;
    }
    
    /* Chart responsiveness */
    #activityChart {
        max-height: 250px;
    }
    
    /* Modal improvements for mobile */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .card-body {
        padding: 1rem 0.75rem;
    }
    
    .card-header {
        padding: 1rem 0.75rem;
    }
    
    .profile-picture {
        width: 80px;
        height: 80px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .rank-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .activity-summary {
        gap: 0.5rem;
    }
    
    .summary-item {
        padding: 0.75rem 0.5rem;
    }
    
    /* Reduce margins for mobile */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Adjust typography for mobile */
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    h6 {
        font-size: 0.9rem;
    }
    
    /* Improve touch targets */
    .btn-modern {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape mobile optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .profile-card {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .dashboard-card {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-picture,
    .friend-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .page-loader,
    .btn-modern,
    .modal,
    .alert {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card-header {
        background: #f8f9fa !important;
        color: black !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .page-loader {
        display: none;
    }
}

/* Focus visible improvements for keyboard navigation */
.btn-modern:focus-visible,
.nav-link:focus-visible,
.card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-primary);
    }
    
    .btn-modern {
        border: 2px solid currentColor;
    }
    
    .profile-picture {
        border-width: 3px;
    }
}

/* Improved loading states */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Performance optimizations */
.dashboard-card,
.btn-modern,
.activity-item {
    will-change: transform;
}

/* GPU acceleration for smooth animations */
.profile-picture-container,
.activity-item:hover,
.friend-item:hover {
    transform: translateZ(0);
}

/* Optimized transitions for better performance */
.card,
.btn-modern {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.3s ease;
}



