/* Enhanced Icons and Top Bar Styling */

/* ===== TOP BAR ENHANCEMENTS ===== */

.content-header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 50%,
        rgba(249, 250, 251, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 28px 36px;
    margin-bottom: 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.03), transparent);
    transition: left 0.8s ease;
}

.content-header:hover::before {
    left: 100%;
}

.content-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.content-header:hover::after {
    opacity: 0.6;
}

/* Header Info Enhancements */
.header-info {
    position: relative;
    z-index: 2;
}

.header-info h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--primary-color) 50%,
        var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
    animation: fadeInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.header-info h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width var(--transition-slow);
}

.header-info:hover h1::after {
    width: 80px;
}

.header-info p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    animation: fadeInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards;
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
    animation: fadeInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

/* Community Selector Enhancement */
.community-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.community-selector label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-base);
}

.community-selector:hover label {
    color: var(--primary-color);
}

.community-dropdown {
    min-width: 220px;
    padding: 12px 16px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(255, 255, 255, 0.9));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310B981' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.community-dropdown:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.community-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.12),
        0 6px 20px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* Admin Info Enhancement */
.admin-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(255, 255, 255, 0.9));
    border: 2px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-base);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.admin-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.05), transparent);
    transition: left 0.6s ease;
}

.admin-info:hover::before {
    left: 100%;
}

.admin-info:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 
        0 8px 24px rgba(16, 185, 129, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 3px rgba(16, 185, 129, 0.08);
}

.admin-info span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-base);
    position: relative;
    z-index: 1;
}

.admin-info:hover span {
    color: var(--primary-color);
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.admin-info:hover .admin-avatar {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* ===== ICON ENHANCEMENTS ===== */

/* Stat Card Icons */
.stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%,
        var(--accent-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-slow);
    flex-shrink: 0;
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.3),
        0 2px 8px rgba(16, 185, 129, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.stat-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all var(--transition-base);
}

.stat-card:hover .stat-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Navigation Icons */
.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all var(--transition-base);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.nav-item:hover svg {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.3));
}

.nav-item.active svg {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.4));
}

/* Button Icons */
.btn-primary svg,
.btn-secondary svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all var(--transition-base);
}

.btn-primary:hover svg {
    transform: scale(1.2) rotate(-8deg);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.btn-secondary:hover svg {
    transform: scale(1.15) rotate(5deg);
}

/* Input Icons */
.input-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all var(--transition-base);
}

.input-wrapper:focus-within .input-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

/* Feature Icons (Login Page) */
.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all var(--transition-slow);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon svg {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Activity Icons */
.activity-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.activity-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.activity-item:hover .activity-icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 
        0 6px 16px rgba(16, 185, 129, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Logo Enhancement */
.sidebar-logo,
.logo {
    transition: all var(--transition-base);
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3));
}

.sidebar-header:hover .sidebar-logo,
.logo-section:hover .logo {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 6px 16px rgba(16, 185, 129, 0.4));
}

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

.stat-icon,
.activity-icon,
.nav-item.active svg {
    animation: iconPulse 2s ease-in-out infinite;
}

/* Icon Glow Effect */
@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 16px rgba(16, 185, 129, 0.5));
    }
}

.stat-card:hover .stat-icon,
.activity-item:hover .activity-icon {
    animation: iconGlow 1.5s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-header {
        padding: 20px 24px;
        border-radius: 16px;
    }
    
    .header-info h1 {
        font-size: 28px;
    }
    
    .admin-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
    }
    
    .stat-icon svg {
        width: 28px;
        height: 28px;
    }
}
