/* ===================================
   PROFILE PAGE ENHANCEMENTS
   Beautiful, Responsive, Creative Theme
   Matching Homepage Colors & Compact Sizes
   =================================== */

/* ===================================
   SIDEBAR ENHANCEMENTS
   =================================== */

/* Sidebar Glassmorphism - Reduced Size */
.sidebar {
    width: 240px !important;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.08) 50%,
        rgba(240, 147, 251, 0.05) 100%) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        4px 0 20px rgba(102, 126, 234, 0.1),
        inset 0 0 60px rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Sidebar Background Particles */
.sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(102, 126, 234, 0.03) 0%, 
        transparent 60%);
    animation: particlesFloat 15s ease-in-out infinite;
    pointer-events: none;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #667eea 0%, 
        #764ba2 50%, 
        #f093fb 100%);
    opacity: 0.6;
    animation: shimmer 3s linear infinite;
}

/* Sidebar Header Logo Enhancement - Compact */
.sidebar-header .logo {
    position: relative;
    padding: 1rem !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sidebar-header .logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1),
        rgba(240, 147, 251, 0.1));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.sidebar-header .logo:hover::before {
    opacity: 1;
}

.sidebar-header .logo i {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(118, 75, 162, 0.5));
    }
}

.sidebar-header .logo:hover {
    transform: translateX(5px);
}

.sidebar-header .logo:hover i {
    animation: logoSpin 0.6s ease-in-out;
}

@keyframes logoSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(360deg) scale(1.1); }
}

/* Sidebar Navigation Enhancement - Compact */
.sidebar-nav {
    position: relative;
    z-index: 1;
    padding: 0.5rem 0;
}

.sidebar-nav .nav-item {
    position: relative;
    margin: 0.35rem 0.75rem;
    padding: 0.7rem 1rem !important;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: fadeInNav 0.5s ease backwards;
    font-size: 0.9rem;
}

.sidebar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-nav .nav-item:nth-child(2) { animation-delay: 0.15s; }
.sidebar-nav .nav-item:nth-child(3) { animation-delay: 0.2s; }
.sidebar-nav .nav-item:nth-child(4) { animation-delay: 0.25s; }
.sidebar-nav .nav-item:nth-child(5) { animation-delay: 0.3s; }
.sidebar-nav .nav-item:nth-child(6) { animation-delay: 0.35s; }
.sidebar-nav .nav-item:nth-child(7) { animation-delay: 0.4s; }

@keyframes fadeInNav {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Nav Item Background Animation */
.sidebar-nav .nav-item::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;
}

.sidebar-nav .nav-item:hover::before {
    left: 100%;
}

/* Nav Item Glow Effect */
.sidebar-nav .nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                   linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, 
          linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-nav .nav-item:hover::after,
.sidebar-nav .nav-item.active::after {
    opacity: 1;
}

/* Active State Enhancement */
.sidebar-nav .nav-item.active {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.2),
        rgba(118, 75, 162, 0.15),
        rgba(240, 147, 251, 0.1)) !important;
    box-shadow: 
        0 8px 16px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.sidebar-nav .nav-item:hover {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15),
        rgba(240, 147, 251, 0.08)) !important;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

/* Nav Item Icon Enhancement - Compact */
.sidebar-nav .nav-item i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15),
        rgba(240, 147, 251, 0.1));
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    margin-right: 0.7rem;
    font-size: 0.9rem;
}

.sidebar-nav .nav-item:hover i {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.25),
        rgba(240, 147, 251, 0.2));
    transform: rotate(360deg) scale(1.1);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.sidebar-nav .nav-item.active i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Sidebar Footer Enhancement - Compact */
.sidebar-footer {
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.sidebar-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(102, 126, 234, 0.3),
        transparent);
}

.sidebar-footer .btn-logout {
    width: 100%;
    padding: 0.7rem 1rem !important;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.1),
        rgba(244, 67, 54, 0.08)) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.sidebar-footer .btn-logout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-footer .btn-logout:hover::before {
    opacity: 1;
}

.sidebar-footer .btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(239, 68, 68, 0.3),
        0 4px 8px rgba(220, 38, 38, 0.2);
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.sidebar-footer .btn-logout span,
.sidebar-footer .btn-logout i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.sidebar-footer .btn-logout:hover span,
.sidebar-footer .btn-logout:hover i {
    color: white !important;
}

/* ===================================
   DASHBOARD HEADER ENHANCEMENTS
   =================================== */

.dashboard-header {
    padding: 1.25rem 2rem !important;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.08),
        rgba(118, 75, 162, 0.05),
        rgba(240, 147, 251, 0.03)) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Header Gradient Line */
.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        #667eea 0%,
        #764ba2 50%,
        #f093fb 100%);
    opacity: 0.5;
    animation: shimmer 3s linear infinite;
}

/* Header Title Enhancement - Compact */
.header-left h1 {
    font-size: 1.75rem !important;
    color: #667eea !important;
    animation: textShimmer 3s ease infinite;
    position: relative;
    display: inline-block;
}

/* User name with gradient - make it visible and colorful */
.header-left h1 #userName,
.header-left h1 span#userName {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700;
}

@keyframes textShimmer {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(118, 75, 162, 0.5));
    }
}

.header-left h1 span {
    display: inline-block;
    animation: bounceText 2s ease-in-out infinite;
}

@keyframes bounceText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.header-left p {
    color: var(--text-secondary);
    opacity: 0.8;
    animation: fadeInUp 0.6s ease 0.2s backwards;
    font-size: 0.9rem;
}

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

/* User Avatar Enhancement - Compact */
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px !important;
    position: relative;
    overflow: visible !important;
    animation: fadeInScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s backwards;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Avatar Pulse Ring */
.user-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    animation: avatarPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes avatarPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Avatar Shine Effect */
.user-avatar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%);
    animation: avatarShine 4s linear infinite;
}

@keyframes avatarShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.user-avatar:hover {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.4),
        0 4px 12px rgba(118, 75, 162, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* ===================================
   STAT CARDS ENHANCEMENTS
   =================================== */

.stats-grid {
    animation: fadeIn 0.6s ease 0.4s backwards;
    gap: 1.25rem !important;
}

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

.stat-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 1.35rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

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

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

/* Stat Card Hover Effect */
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.08),
        rgba(240, 147, 251, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

/* Stat Card Border Glow */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                   linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 32px rgba(102, 126, 234, 0.2),
        0 8px 16px rgba(118, 75, 162, 0.15),
        inset 0 0 25px rgba(255, 255, 255, 0.05);
}

/* Stat Icon Enhancement - Compact */
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: -100%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%);
    animation: iconShine 3s linear infinite;
}

.stat-card:hover .stat-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.stat-icon i {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Stat Content Enhancement - Compact */
.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
    animation: countUp 1s ease;
}

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

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===================================
   DASHBOARD CARDS ENHANCEMENTS
   =================================== */

.dashboard-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: fadeInUp 0.6s ease backwards;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 28px rgba(102, 126, 234, 0.15),
        0 4px 12px rgba(118, 75, 162, 0.1),
        inset 0 0 16px rgba(255, 255, 255, 0.03);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Card Header Enhancement - Compact */
.card-header {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.05)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem !important;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        #667eea 0%,
        #764ba2 50%,
        #f093fb 100%);
    opacity: 0.5;
}

.card-header h2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.35rem;
    font-weight: 600;
}

/* Card Content Enhancement - Compact */
.card-content {
    padding: 1.35rem !important;
    position: relative;
}

/* ===================================
   SECTION TITLE ENHANCEMENTS
   =================================== */

.section-title {
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease backwards;
}

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

.section-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    animation: lineExpand 0.6s ease 0.3s backwards;
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 50px;
        opacity: 1;
    }
}

.section-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

/* ===================================
   QUICK ACTIONS ENHANCEMENTS
   =================================== */

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.08),
        rgba(240, 147, 251, 0.05)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15),
        rgba(240, 147, 251, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: right 0.5s ease;
}

.action-btn:hover::after {
    right: 100%;
}

.action-btn:hover {
    transform: translateX(10px);
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.action-btn i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 11px;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
}

.action-btn:hover i {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
}

.action-btn div h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}

.action-btn div p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ===================================
   ACTIVITY LIST ENHANCEMENTS
   =================================== */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.05),
        rgba(240, 147, 251, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: slideInRight 0.5s ease backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-item:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(240, 147, 251, 0.05));
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.activity-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.activity-item:hover .activity-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.activity-content p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin: 0;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   DOWNLOADS SECTION ENHANCEMENTS
   =================================== */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.download-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

.downloads-grid .download-card:nth-child(1) { animation-delay: 0.1s; }
.downloads-grid .download-card:nth-child(2) { animation-delay: 0.2s; }

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(240, 147, 251, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-card:hover::before {
    opacity: 1;
}

.download-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.25),
        0 12px 24px rgba(118, 75, 162, 0.15),
        inset 0 0 24px rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.4);
}

.download-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.download-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    opacity: 0.3;
    filter: blur(8px);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.download-card:hover .download-icon {
    transform: rotateY(360deg) scale(1.08);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.4),
        inset 0 0 16px rgba(255, 255, 255, 0.3);
}

.download-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.download-card .version {
    font-size: 0.825rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-bottom: 1.25rem;
}

/* ===================================
   BUTTON ENHANCEMENTS
   =================================== */

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    border-radius: 12px;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Ripple Effect */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 28px rgba(102, 126, 234, 0.4),
        0 6px 12px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

/* ===================================
   FORM ENHANCEMENTS
   =================================== */

.settings-form {
    max-width: 560px;
}

.form-group {
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.5s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1.1rem;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.05),
        rgba(240, 147, 251, 0.03)) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 8px 16px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.08),
        rgba(240, 147, 251, 0.05)) !important;
    transform: translateY(-2px);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.password-input-wrapper .toggle-password:hover {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.1);
}

/* Password Requirements - Compact */
.password-requirements {
    margin-top: 0.6rem;
    padding: 0.875rem;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.05),
        rgba(240, 147, 251, 0.03));
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-requirements small {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.password-requirements li i {
    font-size: 0.45rem;
    transition: all 0.3s ease;
}

.password-requirements li.valid {
    color: #10b981;
}

.password-requirements li.valid i {
    color: #10b981;
    transform: scale(1.3);
}

/* Password Strength - Compact */
.password-strength {
    margin-top: 0.6rem;
}

.strength-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.strength-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
}

.strength-fill.weak {
    width: 33%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.strength-fill.medium {
    width: 66%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #10b981, #22c55e);
}

/* ===================================
   MODAL ENHANCEMENTS
   =================================== */

.modal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.1)) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(102, 126, 234, 0.2),
        inset 0 0 32px rgba(255, 255, 255, 0.05);
    animation: modalSlideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15),
        rgba(118, 75, 162, 0.1)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 1.75rem;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0.5;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 9px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-close:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.modal-close:hover i {
    color: white !important;
}

/* ===================================
   LOADING STATES ENHANCEMENTS
   =================================== */

.subscription-loading,
.licenses-loading,
.devices-loading,
.sessions-loading,
.plans-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.subscription-loading i,
.licenses-loading i,
.devices-loading i,
.sessions-loading i,
.plans-loading i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: spin 2s linear infinite;
}

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

.subscription-loading p,
.licenses-loading p,
.devices-loading p,
.sessions-loading p,
.plans-loading p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===================================
   RESPONSIVE ENHANCEMENTS
   =================================== */

@media (max-width: 768px) {
    .sidebar {
        width: 220px !important;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 
            8px 0 24px rgba(0, 0, 0, 0.2),
            inset 0 0 48px rgba(255, 255, 255, 0.03);
    }
    
    .dashboard-header {
        padding: 1rem 1.25rem !important;
    }
    
    .header-left h1 {
        font-size: 1.35rem !important;
    }
    
    .header-left p {
        font-size: 0.85rem;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .stat-card {
        padding: 1.1rem !important;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
    }
    
    .stat-icon i {
        font-size: 1.3rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .stat-content p {
        font-size: 0.825rem;
    }
    
    .download-icon {
        width: 64px;
        height: 64px;
    }
    
    .download-icon i {
        font-size: 2rem;
    }
    
    .download-card h3 {
        font-size: 1.35rem;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .action-btn {
        padding: 0.875rem;
    }
    
    .action-btn i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .action-btn div h4 {
        font-size: 0.95rem;
    }
    
    .action-btn div p {
        font-size: 0.8rem;
    }
    
    .sidebar-nav .nav-item {
        padding: 0.65rem 0.875rem !important;
        font-size: 0.85rem;
    }
    
    .sidebar-nav .nav-item i {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.35rem;
    }
    
    .section-title p {
        font-size: 0.875rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem !important;
    }
    
    .dashboard-card {
        border-radius: 14px;
    }
    
    .card-header,
    .card-content {
        padding: 1.1rem !important;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-content {
        margin: 0.875rem;
        border-radius: 18px;
    }
    
    .modal-header {
        padding: 1.25rem 1.35rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .sidebar-footer .btn-logout {
        padding: 0.65rem 0.875rem !important;
        font-size: 0.85rem;
    }
}

/* ===================================
   UTILITY ANIMATIONS
   =================================== */

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

@keyframes particlesFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes iconShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .sidebar,
    .dashboard-header,
    .stat-card,
    .dashboard-card,
    .download-card {
        border-width: 2px;
    }
    
    .btn-primary,
    .action-btn,
    .nav-item {
        border: 2px solid currentColor;
    }
}

/* Focus Visible Enhancement */
*:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ===================================
   FIX OVERFLOW SCROLLBARS ON PRICING SECTION
   =================================== */

/* Remove extra scrollbars from dashboard main */
.dashboard-main {
    overflow-x: hidden !important;
}

/* Ensure pricing grid doesn't cause horizontal overflow */
#plans .pricing-grid {
    max-width: 100%;
    overflow: hidden;
}

/* Ensure pricing section doesn't overflow */
#plans.content-section {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix pricing badge overflow */
#plans .pricing-badge {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Ensure section title doesn't overflow */
#plans .section-title {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Ensure pricing note doesn't overflow */
#plans .pricing-note {
    max-width: 100%;
    overflow-wrap: break-word;
}

