* {
    font-family: 'Inter', sans-serif
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 99px
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155
}

.glass {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px)
}

.glow-p {
    box-shadow: 0 0 25px rgba(99, 102, 241, .35)
}

/* Gradients */
.g-indigo {
    background: linear-gradient(135deg, #6366F1, #8B5CF6)
}

.g-emerald {
    background: linear-gradient(135deg, #10B981, #34D399)
}

.g-rose {
    background: linear-gradient(135deg, #F43F5E, #FB7185)
}

.g-amber {
    background: linear-gradient(135deg, #F59E0B, #FBBF24)
}

.g-blue {
    background: linear-gradient(135deg, #3B82F6, #60A5FA)
}

.g-cyan {
    background: linear-gradient(135deg, #06B6D4, #22D3EE)
}

.g-teal {
    background: linear-gradient(135deg, #14B8A6, #2DD4BF)
}

.g-orange {
    background: linear-gradient(135deg, #F97316, #FB923C)
}

.g-violet {
    background: linear-gradient(135deg, #7C3AED, #A78BFA)
}

.g-pink {
    background: linear-gradient(135deg, #EC4899, #F472B6)
}

.g-slate {
    background: linear-gradient(135deg, #475569, #64748B)
}

.g-team {
    background: linear-gradient(135deg, #6366F1, #8B5CF6, #EC4899)
}

/* Sidebar */
.sidebar-link {
    transition: all .25s cubic-bezier(.4, 0, .2, 1)
}

.sidebar-link:hover {
    transform: translateX(6px)
}

.sidebar-link.active {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF)
}

.dark .sidebar-link.active {
    background: linear-gradient(135deg, #312E81, #3730A3)
}

.sidebar-mobile {
    transform: translateX(-100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1)
}

.sidebar-mobile.open {
    transform: translateX(0)
}

/* Modal */
.modal-overlay {
    transition: opacity .3s ease, visibility .3s ease
}

.modal-content {
    transition: all .45s cubic-bezier(.4, 0, .2, 1)
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important
}

/* Loader */
.skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: sk 1.5s infinite
}

.dark .skeleton {
    background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
    background-size: 200% 100%
}

@keyframes sk {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.float-anim {
    animation: float 3s ease-in-out infinite
}

@keyframes pulse-ring {
    0% {
        transform: scale(.8);
        opacity: 1
    }

    100% {
        transform: scale(2.5);
        opacity: 0
    }
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-ring 2s infinite
}

.dark .notification-badge::after {
    border-color: #0B1120
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    transform: scale(0);
    animation: rp .6s linear;
    pointer-events: none
}

@keyframes rp {
    to {
        transform: scale(4);
        opacity: 0
    }
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, .18);
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    transform: translateY(100px);
    opacity: 0;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    min-width: 280px
}

.dark .toast {
    background: #1E293B;
    color: #F1F5F9
}

.toast.show {
    transform: translateY(0);
    opacity: 1
}

/* Member cards */
.member-card {
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .12)
}

.dark .member-card:hover {
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .45)
}

/* Status dots */
.dot-online {
    background: #10B981
}

.dot-away {
    background: #F59E0B
}

.dot-busy {
    background: #F43F5E
}

.dot-offline {
    background: #94A3B8
}

/* Progress bars */
.pbar {
    transition: width 1.4s cubic-bezier(.4, 0, .2, 1)
}

/* Skill bars */
.skill-bar {
    height: 6px;
    border-radius: 99px;
    overflow: hidden;
    background: #F1F5F9
}

.dark .skill-bar {
    background: #1E293B
}

.skill-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1.6s cubic-bezier(.4, 0, .2, 1)
}

/* Table */
.trow {
    transition: background .15s
}

.trow:hover {
    background: rgba(99, 102, 241, .04)
}

.dark .trow:hover {
    background: rgba(99, 102, 241, .08)
}

/* Avatar ring */
.av-ring {
    box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor
}

.dark .av-ring {
    box-shadow: 0 0 0 2px #0F172A, 0 0 0 4px currentColor
}

/* View btns */
.vbtn {
    transition: all .2s;
    border-radius: 10px;
    padding: 7px
}

.vbtn.active {
    background: white;
    color: #6366F1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08)
}

.dark .vbtn.active {
    background: #1E293B;
    color: #A5B4FC
}

/* Org chart */
.org-node {
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer
}

.org-node:hover {
    transform: scale(1.04)
}

.org-line {
    stroke: #CBD5E1;
    stroke-width: 1.5;
    fill: none
}

.dark .org-line {
    stroke: #334155
}

/* Badge chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700
}

.chip-emerald {
    background: #D1FAE5;
    color: #065F46
}

.chip-blue {
    background: #DBEAFE;
    color: #1E40AF
}

.chip-violet {
    background: #EDE9FE;
    color: #5B21B6
}

.chip-rose {
    background: #FFE4E6;
    color: #9F1239
}

.chip-amber {
    background: #FEF3C7;
    color: #92400E
}

.chip-slate {
    background: #F1F5F9;
    color: #475569
}

.dark .chip-emerald {
    background: rgba(16, 185, 129, .15);
    color: #34D399
}

.dark .chip-blue {
    background: rgba(59, 130, 246, .15);
    color: #60A5FA
}

.dark .chip-violet {
    background: rgba(124, 58, 237, .15);
    color: #A78BFA
}

.dark .chip-rose {
    background: rgba(244, 63, 94, .15);
    color: #FB7185
}

.dark .chip-amber {
    background: rgba(245, 158, 11, .15);
    color: #FCD34D
}

.dark .chip-slate {
    background: rgba(71, 85, 105, .2);
    color: #94A3B8
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.slide-up {
    animation: slideUp .35s ease forwards
}

/* Radar chart label fix */
.chart-label {
    font-size: 10px
}

/* Activity timeline */
.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px
}

.activity-line {
    width: 1.5px;
    background: #E5E7EB;
    flex: 1;
    margin: 4px auto 0
}

.dark .activity-line {
    background: #334155
}

/* Input style */
.inp {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid #E5E7EB;
    background: #F8FAFC;
    font-size: 13px;
    outline: none;
    transition: border .2s, box-shadow .2s;
    width: 100%;
    color: #1E293B
}

.inp:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12)
}

.dark .inp {
    background: #1E293B;
    border-color: #334155;
    color: #F1F5F9
}

.dark .inp:focus {
    border-color: #6366F1
}

/* Switch */
.sw-track {
    width: 44px;
    height: 24px;
    border-radius: 99px;
    transition: background .2s;
    cursor: pointer;
    position: relative
}

.sw-thumb {
    position: absolute;
    top: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: left .2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2)
}

.sw-on .sw-track {
    background: #6366F1
}

.sw-off .sw-track {
    background: #CBD5E1
}

.dark .sw-off .sw-track {
    background: #475569
}

.sw-on .sw-thumb {
    left: 23px
}

.sw-off .sw-thumb {
    left: 3px
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.pop-in {
    animation: popIn .28s cubic-bezier(.4, 0, .2, 1) forwards
}

/* Rating stars */
.star {
    transition: transform .15s, color .15s;
    cursor: pointer
}

.star:hover,
.star.lit {
    color: #F59E0B;
    transform: scale(1.2)
}