@font-face {
    font-family: 'Momo Trust Display';
    src: url('https://cdn.jsdelivr.net/fontsource/fonts/momo-trust-display@latest/latin-400-normal.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/fontsource/fonts/momo-trust-display@latest/latin-400-normal.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

:root {
    /* Brand Colors */
    --primary: #ff3131;
    /* Vibrant Red - Alert & Power */
    --primary-light: #fff1f1;

    /* Neutral Palette */
    --secondary: #0f172a;
    /* Deep Navy - Security */
    --surface: #f8fafc;
    --border: #e2e8f0;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ff3131;
}

.dark {
    --primary: #ff4d4d;
    /* Slightly softer red for dark bg */
    --secondary: #f8fafc;
    --surface: #020617;
    /* Absolute dark for premium feel */
    --border: #1e293b;
}

body {
    font-family: 'Momo Trust Sans', sans-serif;
    background-color: var(--surface);
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
.font-momo {
    font-family: 'Momo Trust Display', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark .font-momo {
    color: #f8fafc;
}

/* Glassmorphism Refined */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(30, 41, 59, 1);
}


/* Nav Link Animation */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), #fb7185);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 20px;
}

/* Sidebar Transition */
.sidebar-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
.hidden-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hero Gradient & Decoration */
.hero-gradient {
    background: radial-gradient(circle at 80% 20%, rgba(216, 45, 139, 0.05), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.05), transparent 40%);
}

.dark .hero-gradient {
    background: radial-gradient(circle at 80% 20%, rgba(216, 45, 139, 0.1), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.1), transparent 50%);
}


.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}



/* Shadcn UI Buttons Implementation */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    /* rounded-md - Shadcn Standard */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    height: 2.25rem;
    /* h-9 */
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.dark .btn-outline {
    background: #0f172a;
    border-color: #1e293b;
    color: #f1f5f9;
}

#tableTools .dataTables_filter {
    margin-bottom: 0 !important;
}

#tableTools {
    display: flex;
    align-items: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-lg {
    height: 2.75rem;
    /* h-11 */
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1rem;
}

.btn-sm {
    height: 2rem;
    /* h-8 */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.75rem;
}


.btn-primary {
    background-color: var(--secondary);
    /* Slate-900 */
    color: white;
}

.btn-primary:hover {
    background-color: rgba(15, 23, 42, 0.9);
}

.dark .btn-primary {
    background-color: white;
    color: #0f172a;
}

.dark .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-rose {
    background-color: var(--primary);
    color: white;
}

.btn-rose:hover {
    opacity: 0.9;
}

.btn-outline {
    border-color: #e2e8f0;
    background-color: transparent;
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: #f8fafc;
}

.dark .btn-outline {
    border-color: #334155;
    color: #f8fafc;
}

.dark .btn-outline:hover {
    background-color: #1e293b;
}

.btn-ghost {
    background-color: transparent;
    color: var(--secondary);
}

.btn-ghost:hover {
    background-color: #f1f5f9;
}

.dark .btn-ghost {
    color: #f8fafc;
}

.dark .btn-ghost:hover {
    background-color: #1e293b;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}


.card-premium {
    background-color: white;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2rem;
    padding: 2rem;
}

.dark .card-premium {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-premium:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
    border-color: #ffe4e6;
    transform: translateY(-10px);
}

.dark .card-premium:hover {
    border-color: #475569;
    background-color: #334155;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
}


/* Text Selection */
::selection {
    background-color: var(--primary);
    color: white;
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 25%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

.dark .marquee-container::before {
    background: linear-gradient(to right, #0f172a, transparent);
}

.dark .marquee-container::after {
    background: linear-gradient(to left, #0f172a, transparent);
}

.marquee-row {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 1.5rem;
    padding-right: 1.5rem;
    min-width: 100%;
    width: max-content;
}

.animate-marquee-left {
    animation: marquee-left 30s linear infinite;
}

.animate-marquee-right {
    animation: marquee-right 30s linear infinite;
}

@keyframes marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.marquee-row:hover {
    animation-play-state: paused;
}

/* Category Chips Active State */
.chip-active {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background-color: rgba(255, 49, 49, 0.05);
}

.dark .chip-active {
    background-color: rgba(255, 77, 77, 0.1);
}

/* Middlemen Card */
.gdv-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gdv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.dark .gdv-card:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.comment-card {
    flex: 0 0 320px;
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
}

/* Shadcn UI Component System */
.shadcn-card {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    /* zinc-200 */
    border-radius: 0.75rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .shadcn-card {
    background-color: #09090b;
    /* zinc-950 */
    border-color: #27272a;
    /* zinc-800 */
}

.badge-rose {
    background-color: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .badge-rose {
    background-color: rgba(225, 29, 72, 0.1);
    color: #fb7185;
    border-color: rgba(225, 29, 72, 0.2);
}

.badge-slate {
    background-color: #f4f4f5;
    color: #3f3f46;
    border: 1px solid #e4e4e7;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .badge-slate {
    background-color: #18181b;
    color: #a1a1aa;
    border-color: #27272a;
}

.btn-shadcn-primary {
    background-color: #18181b;
    color: #ffffff;
    transition: all 0.2s;
}

.dark .btn-shadcn-primary {
    background-color: #fafafa;
    color: #18181b;
}

.btn-shadcn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.bank-card {
    transition: all 0.2s ease;
}

.bank-card:hover {
    border-color: #e11d48;
    background-color: #fff1f2;
}

.dark .bank-card:hover {
    border-color: #fb7185;
    background-color: rgba(225, 29, 72, 0.05);
}

/* Skeleton Loading */
.skeleton {
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.dark .skeleton {
    background: #1e293b;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: skeleton-loading 1.5s infinite;
}

.dark .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

@keyframes skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-text {
    height: 1rem;
    width: 100%;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
}

.skeleton-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
}

.skeleton-rect {
    height: 100px;
    width: 100%;
    border-radius: 8px;
}