* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

.sidebar-link {
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #6366f1, #818cf8);
    border-radius: 0 4px 4px 0;
    transition: height .25s ease;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    height: 60%;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, .08), transparent);
    color: #6366f1;
}

.dark .sidebar-link:hover,
.dark .sidebar-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, .18), transparent);
    color: #818cf8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp .5s ease both;
}

.animate-scaleIn {
    animation: scaleIn .2s ease both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 40;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

@media(max-width:1023px) {
    .sidebar-desktop {
        transform: translateX(-100%);
        position: fixed;
        z-index: 50;
    }

    .sidebar-desktop.open {
        transform: translateX(0);
    }
}

.tooltip-trigger {
    position: relative;
}

.tooltip-trigger .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    transition: all .2s;
    z-index: 100;
    pointer-events: none;
}

.dark .tooltip-trigger .tooltip-text {
    background: #e2e8f0;
    color: #1e293b;
}

.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    animation: scaleIn .3s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.badge-dot.online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 30%, #7c3aed 60%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, .08) 0%, transparent 50%), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .05) 0%, transparent 40%);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    object-fit: cover;
    transition: all .3s ease;
}

.dark .profile-avatar {
    border-color: #1e293b;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.stat-mini {
    transition: all .3s ease;
}

.stat-mini:hover {
    transform: translateY(-2px);
}

.activity-dot {
    position: relative;
}

.activity-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    bottom: -1.5rem;
    width: 2px;
    background: linear-gradient(180deg, #e0e7ff, transparent);
    transform: translateX(-50%);
}

.dark .activity-dot::after {
    background: linear-gradient(180deg, #312e81, transparent);
}

.activity-dot:last-child::after {
    display: none;
}

.edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    border-radius: 24px;
    cursor: pointer;
}

.edit-overlay:hover {
    opacity: 1;
}