* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #060606;
    color: #F8FAFC;
    overflow-x: hidden;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #060606;
}

::-webkit-scrollbar-thumb {
    background: #22C55E33;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22C55E66;
}

/* ========== Glassmorphism Card ========== */
.glass-card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.08), 0 0 40px rgba(34, 197, 94, 0.04);
    border-color: rgba(34, 197, 94, 0.15);
}

/* ========== Sidebar ========== */
.sidebar {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.05);
}

.sidebar-link.active {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

/* ========== Navbar ========== */
.navbar {
    background: rgba(6, 6, 6, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========== Green Glow ========== */
.green-glow {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15), 0 0 60px rgba(34, 197, 94, 0.05);
}

/* ========== Button Ripple ========== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ========== Progress Bar ========== */
.progress-bar {
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #22C55E, #4ADE80);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Badges ========== */
.badge-green {
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-red {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-yellow {
    background: rgba(234, 179, 8, 0.12);
    color: #EAB308;
    border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========== Sidebar Overlay ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 40;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* ========== Table ========== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table td {
    padding: 16px 18px;
    font-size: 14px;
    color: #F8FAFC;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(34, 197, 94, 0.03);
}

/* ========== Notification Dot ========== */
.notification-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    right: -2px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ========== Dropdown ========== */
.dropdown-menu {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    position: absolute;
    z-index: 50;
    min-width: 200px;
}

.dropdown-menu.active {
    display: block;
    animation: fadeInDown 0.25s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #94A3B8;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(34, 197, 94, 0.08);
    color: #22C55E;
}

/* ========== Animations ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Stat Card Gradient Border ========== */
.stat-card-gradient {
    position: relative;
}

.stat-card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22C55E, transparent);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card-gradient:hover::before {
    opacity: 1;
}

/* ========== Search Input ========== */
.search-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 16px 10px 42px;
    color: #F8FAFC;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.search-input::placeholder {
    color: #64748B;
}

/* ========== MODAL SYSTEM ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    pointer-events: all;
}

.modal-content {
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(34, 197, 94, 0.05);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #22C55E33;
    border-radius: 10px;
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 300;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(0);
}

/* ========== Image Avatar ========== */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ========== Profile Image Hover ========== */
.profile-avatar {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* ========== Client Avatar ========== */
.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.client-avatar:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: scale(1.1);
}

/* ========== Transaction Avatar ========== */
.txn-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

/* ========== Modal Form Inputs ========== */
.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: #F8FAFC;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.modal-input:focus {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.modal-input::placeholder {
    color: #64748B;
}

.modal-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: #F8FAFC;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.modal-select:focus {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.modal-select option {
    background: #111111;
    color: #F8FAFC;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .sidebar-desktop {
        transform: translateX(-100%);
        position: fixed;
        z-index: 50;
    }

    .sidebar-desktop.open {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .modal-content {
        margin: 10px;
        border-radius: 20px;
    }
}