/* ============================================
   Koperasi Management System - Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Primary palette */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Success */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;

    /* Warning */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    /* Danger */
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;

    /* Info */
    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-500: #3b82f6;
    --info-600: #2563eb;

    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    /* Sidebar */
    --sidebar-bg: linear-gradient(135deg, #0F172A 0%, #065f46 50%, #10b981 100%);
    --sidebar-width: 270px;
    --sidebar-collapsed: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-indices */
    --z-sidebar: 100;
    --z-topbar: 150;
    --z-overlay: 200;
    --z-modal: 300;
    --z-dropdown: 400;
    --z-toast: 500;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* ============================================
   Login Page
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../image/gunung.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.3);
    border-left-color: rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 0 1px rgba(99, 102, 241, 0.3);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo .logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.login-logo img {
    filter: brightness(1.3) drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
}

.login-logo h1 {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.login-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 400;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.login-form .input-wrapper {
    position: relative;
}

.login-form .input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.login-form .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-align: center;
}

.login-form .toggle-password:hover {
    color: rgba(255, 255, 255, 0.7);
}

.login-form .input-wrapper:focus-within .toggle-password {
    color: var(--primary-400);
}

.login-form input {
    width: 100%;
    padding: 16px 48px 16px 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: white;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    outline: none;
    backdrop-filter: blur(10px);
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.login-form input:focus {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.2);
}

.login-form input:focus+i,
.login-form .input-wrapper:focus-within i {
    color: var(--primary-400);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

/* ============================================
   Layout
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
    gap: 8px;
    padding: 6px;
    background: #f8fafc;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0F172A 0%, #065f46 50%, #047857 85%, #0f766e 100%);
    position: fixed;
    top: 6px;
    left: 6px;
    bottom: 6px;
    z-index: var(--z-sidebar);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-slow);
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
    transition: all var(--transition-base);
    animation: logoFloat 3s ease-in-out infinite, logoBreathe 4s ease-in-out infinite;
    transform-origin: center center;
}

.sidebar-header:hover .logo-container img {
    filter: brightness(1.5) drop-shadow(0 0 16px rgba(59, 130, 246, 0.6));
}

.sidebar.collapsed .logo-container {
    margin-bottom: 8px;
}

.sidebar-header .logo-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #3B82F6, #1e40af);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar-header .logo-text {
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-header .logo-text h2 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sidebar-header .logo-text span {
    color: #94A3B8;
    font-size: 0.75rem;
}

.sidebar-collapse-btn {
    transition: all var(--transition-base) !important;
}

.sidebar-collapse-btn:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3B82F6 !important;
}

.sidebar.collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 10px;
    overflow-y: auto;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.nav-section {
    margin-bottom: 28px;
}

.nav-section-title {
    color: #94A3B8;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 0 16px;
    margin-bottom: 12px;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    color: #94A3B8;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    margin-bottom: 4px;
    font-size: 0.87rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.nav-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    min-width: 22px;
    transition: all var(--transition-base);
}

.nav-item:hover {
    color: #FFFFFF;
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(2px);
}

.nav-item.active {
    color: #FFFFFF;
    background: rgba(59, 130, 246, 0.15);
    border-left-color: #3B82F6;
    font-weight: 600;
}

.nav-item.active i {
    color: #3B82F6;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-footer .nav-item {
    margin-bottom: 0;
    color: #94A3B8;
    font-size: 0.85rem;
}

.sidebar-footer .nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #FFFFFF;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.08);
    transition: all var(--transition-base);
    position: relative;
}

.sidebar-user:hover {
    background: rgba(59, 130, 246, 0.15);
}

.sidebar-user .user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: linear-gradient(135deg, var(--success-500), var(--success-700));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.sidebar-user .user-info {
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-user .user-info .user-name {
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
}

.sidebar-user .user-info .user-role {
    color: #94A3B8;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.sidebar-user-logout {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    margin-left: auto;
}

.sidebar-user-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.sidebar.collapsed .sidebar-user-logout {
    margin-left: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: calc(var(--sidebar-width) + 8px + 6px);
    transition: margin-left var(--transition-slow);
    min-height: 100vh;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
    overflow: hidden;
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-header {
    padding: 16px 8px;
    justify-content: center;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-user .user-info {
    display: none;
}

.sidebar.collapsed .sidebar-nav {
    padding: 12px 4px;
}

.sidebar.collapsed .nav-item {
    padding: 12px 8px;
    justify-content: center;
    gap: 0;
    margin-bottom: 8px;
}

.sidebar.collapsed .nav-item i {
    width: auto;
    min-width: 24px;
}

.sidebar.collapsed .sidebar-footer {
    padding: 12px 4px;
}

.main-content.sidebar-collapsed {
    margin-left: calc(var(--sidebar-collapsed) + 8px + 6px);
}

/* Top Bar */
.topbar {
    background: url(../image/gunung.png) fixed center/cover;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 210;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    width: 100%;
    overflow: visible;
}

.topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100vw;
    right: -100vw;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.55));
    pointer-events: none;
    z-index: 1;
}

.topbar-left,
.topbar-right,
.page-title {
    position: relative;
    z-index: 2;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left .menu-toggle {
    display: none;
    font-size: 1.3rem;
    color: white;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-weight: 700;
}

.topbar-left .menu-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    color: white;
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    flex-wrap: nowrap;
    min-width: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item.active {
    color: white;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
    z-index: 220;
    position: relative;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    z-index: 220;
}

.header-divider {
    width: 1px;
    height: 32px;
    background: rgba(99, 102, 241, 0.4);
    margin: 0 4px;
    opacity: 0.8;
}

.header-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    min-width: 150px;
    padding: 0 8px;
}

.time-now {
    font-size: 1rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
}

.date-now {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    pointer-events: auto;
    z-index: 220;
}

.user-profile-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 6px;
    border-radius: 14px;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    outline: none;
    pointer-events: auto;
    position: relative;
    z-index: 220;
}

.user-profile-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.user-profile-toggle.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.user-profile-toggle.active .toggle-chevron {
    transform: rotate(180deg);
}

.toggle-avatar {
    width: 36px;
    height: 36px;
    background: var(--sidebar-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
}

.toggle-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.toggle-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.toggle-role {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: capitalize;
}

.toggle-chevron {
    font-size: 0.7rem;
    color: rgba(99, 102, 241, 0.9);
    transition: transform var(--transition-base);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-header {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.dropdown-header strong {
    font-size: 0.9rem;
    color: #0F172A;
    display: block;
}

.dropdown-header span {
    font-size: 0.75rem;
    color: #94A3B8;
}

.dropdown-divider {
    height: 1px;
    background: rgba(59, 130, 246, 0.1);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #0F172A;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: #94A3B8;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.dropdown-item:hover i {
    color: #3B82F6;
}

.dropdown-item.logout {
    color: var(--danger-600);
}

.dropdown-item.logout:hover {
    background: var(--danger-50);
    color: var(--danger-700);
}

.dropdown-item.logout i {
    color: var(--danger-400);
}

.topbar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 700;
    transition: all var(--transition-base);
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    pointer-events: auto;
    z-index: 220;
}

.topbar-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: white;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.topbar-btn .badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--danger-500);
    border-radius: 50%;
    border: 2px solid white;
}

/* Search Dropdown */
.search-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    pointer-events: auto;
    z-index: 220;
}

.search-menu {
    width: 380px;
    padding: 0;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-radius: 12px 12px 0 0;
}

.search-input-wrapper i {
    color: #3B82F6;
    font-size: 1rem;
    font-weight: 600;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #0F172A;
    outline: none;
    font-weight: 500;
}

.search-input-wrapper input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.search-results {
    overflow-y: auto;
    max-height: 320px;
    min-height: 100px;
}

.search-hint,
.search-loading,
.search-empty,
.search-error {
    padding: 32px 20px;
    text-align: center;
    color: #94A3B8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.search-hint i,
.search-loading i,
.search-empty i,
.search-error i {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.search-loading i {
    color: #3B82F6;
    animation: spin 1s linear infinite;
}

.search-error i {
    color: #ef4444;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.search-result-item:hover {
    background: rgba(59, 130, 246, 0.08);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    flex-shrink: 0;
    font-weight: 600;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 0.78rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
    font-weight: 500;
}

.search-result-arrow {
    font-size: 0.75rem;
    color: #3B82F6;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.search-result-item:hover .search-result-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.search-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(59, 130, 246, 0.01) 100%);
    border-radius: 0 0 12px 12px;
}

.search-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #3B82F6;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.search-all-link:hover {
    color: #1e40af;
    gap: 10px;
}

.search-all-link i {
    font-size: 0.75rem;
}

/* Notification Dropdown */
.notification-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    pointer-events: auto;
    z-index: 220;
}

.notification-menu {
    width: 320px;
    padding: 0;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

.notification-list {
    overflow-y: auto;
    max-height: 350px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-50);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.03);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notif-icon.info {
    background: var(--info-50);
    color: var(--info-600);
}

.notif-icon.success {
    background: var(--success-50);
    color: var(--success-600);
}

.notif-icon.warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.notif-icon.danger {
    background: var(--danger-50);
    color: var(--danger-600);
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.notif-message {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.4;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-400);
}

.notification-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

.notification-empty p {
    font-size: 0.9rem;
}

/* Content Area */
.content {
    padding: 28px 32px;
}

/* ============================================
   Cards & Widgets
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.primary::before {
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
}

.stat-card.success::before {
    background: linear-gradient(90deg, var(--success-500), #34d399);
}

.stat-card.warning::before {
    background: linear-gradient(90deg, var(--warning-500), #fbbf24);
}

.stat-card.info::before {
    background: linear-gradient(90deg, var(--info-500), #60a5fa);
}

.stat-card.danger::before {
    background: linear-gradient(90deg, var(--danger-500), #f87171);
}

.stat-info h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-info .stat-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -1px;
    line-height: 1.2;
}

.stat-info .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.stat-change.up {
    color: var(--success-700);
    background: var(--success-50);
}

.stat-change.down {
    color: var(--danger-600);
    background: var(--danger-50);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-icon.primary {
    background: var(--primary-50);
    color: var(--primary-600);
}

.stat-icon.success {
    background: var(--success-50);
    color: var(--success-600);
}

.stat-icon.warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.stat-icon.info {
    background: var(--info-50);
    color: var(--info-600);
}

.stat-icon.danger {
    background: var(--danger-50);
    color: var(--danger-600);
}

/* Card */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* ============================================
   Table
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    font-size: 0.88rem;
}

.data-table thead th {
    text-align: left;
    padding: 14px 16px;
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 2px solid var(--gray-200);
}

.data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-700));
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-outline {
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
    background: var(--primary-50);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger-500);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: white;
    transition: all var(--transition-base);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-text {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-primary {
    background: var(--primary-50);
    color: var(--primary-700);
}

.badge-success {
    background: var(--success-50);
    color: var(--success-700);
}

.badge-warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.badge-danger {
    background: var(--danger-50);
    color: var(--danger-600);
}

.badge-info {
    background: var(--info-50);
    color: var(--info-600);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    pointer-events: none;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal>form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-lg {
    max-width: 800px;
}

@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }

    .modal-header,
    .modal-footer {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
}

/* ============================================
   Alerts / Flash Messages
   ============================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
    position: relative;
}



@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes logoBreathe {

    0%,
    100% {
        filter: brightness(1.3) drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
    }

    50% {
        filter: brightness(1.4) drop-shadow(0 0 16px rgba(59, 130, 246, 0.5));
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: var(--success-50);
    color: var(--success-700);
    border: 1px solid var(--success-100);
}

.alert-danger {
    background: var(--danger-50);
    color: var(--danger-600);
    border: 1px solid var(--danger-100);
}

.alert-warning {
    background: var(--warning-50);
    color: var(--warning-600);
    border: 1px solid var(--warning-100);
}

.alert-info {
    background: var(--info-50);
    color: var(--info-600);
    border: 1px solid var(--info-100);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    padding: 16px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.pagination .active {
    background: var(--primary-600);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ============================================
   Search & Filter Bar
   ============================================ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all var(--transition-base);
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary-400);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group select {
    padding: 10px 36px 10px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--gray-700);
    background: var(--gray-50);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 18px;
    outline: none;
    transition: all var(--transition-base);
}

.filter-group select:focus {
    border-color: var(--primary-400);
    background-color: white;
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================
   Member Avatar
   ============================================ */
.member-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: white;
}

.avatar-1 {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.avatar-2 {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.avatar-3 {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.avatar-4 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.avatar-5 {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.avatar-6 {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.member-details .member-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
}

.member-details .member-id {
    font-size: 0.78rem;
    color: var(--gray-500);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.88rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}

/* ============================================
   Dashboard Specific
   ============================================ */
.chart-container {
    position: relative;
    height: 300px;
    padding: 16px;
}

.recent-list {
    list-style: none;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.recent-info {
    flex: 1;
}

.recent-info .recent-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-800);
}

.recent-info .recent-desc {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.recent-amount {
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
}

.recent-amount.positive {
    color: var(--success-600);
}

.recent-amount.negative {
    color: var(--danger-600);
}

/* ============================================
   Detail Info Grid
   ============================================ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.detail-item .detail-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-item .detail-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* ============================================
   Mobile Sidebar Overlay
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-sidebar) - 1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {

    .sidebar,
    .topbar,
    .btn,
    .toolbar {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .app-layout {
        gap: 8px;
        padding: 6px;
    }

    .sidebar {
        transform: translateX(-100%);
        top: 6px;
        left: 6px;
        bottom: 6px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        width: var(--sidebar-width);
    }

    .main-content.sidebar-collapsed {
        margin-left: 0;
    }

    .sidebar-collapse-btn {
        display: none;
    }


    .sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 16px;
        height: 60px;
    }

    .topbar-left .menu-toggle {
        display: flex;
    }

    .content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .modal {
        width: 95%;
        max-height: 95vh;
    }

    .page-title h1 {
        font-size: 1.15rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-right,
.text-end {
    text-align: right;
}

.text-success {
    color: var(--success-600);
}

.text-danger {
    color: var(--danger-600);
}

.text-warning {
    color: var(--warning-600);
}

.text-info {
    color: var(--info-600);
}

.text-muted {
    color: var(--gray-500);
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

/* ============================================
   Loading Animation
   ============================================ */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Action Buttons in Tables
   ============================================ */
.action-buttons {
    display: flex;
    gap: 6px;
}

.action-buttons .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
}

.btn-icon.btn-outline:hover.text-info {
    background: var(--info-50);
    border-color: var(--info-200);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    transition: width var(--transition-slow);
}

/* ============================================
   Glassmorphism Animations - Login Page
   ============================================ */

/* Enhanced Floating Orbs Background */
.login-page .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.login-page .orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation: floatOrb 12s ease-in-out infinite;
}

.login-page .orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

.login-page .orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* Staggered Entrance Animation */
.login-card {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Animation */
.login-logo {
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups Animation with Stagger */
.login-form .form-group {
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-form .form-group:nth-child(1) {
    animation-delay: 0.35s;
}

.login-form .form-group:nth-child(2) {
    animation-delay: 0.45s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Animation */
.login-btn {
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

/* Enhanced Input Focus with Glow Effect */
.login-form .input-wrapper {
    position: relative;
}

.login-form input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: white;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    outline: none;
}

.login-form input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(0, 0, 0, 0.3);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.15),
        0 0 20px rgba(99, 102, 241, 0.3),
        0 0 40px rgba(99, 102, 241, 0.15);
}

.login-form input:focus+i,
.login-form .input-wrapper:focus-within i {
    color: var(--primary-400);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

/* Floating Label Animation */
.login-form .form-group {
    position: relative;
    margin-bottom: 24px;
}

.login-form .form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all var(--transition-base);
    position: absolute;
    top: -8px;
    left: 15px;
    background: rgba(2, 6, 23, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 1;
}

.login-form .input-wrapper {
    position: relative;
}

/* Button Hover Scale Effect */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all var(--transition-base);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transform-origin: center;
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.login-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.login-btn:hover::before {
    opacity: 1;
}

.login-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Button Loading State */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading .btn-text {
    visibility: hidden;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Shake Animation for Error */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-8px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(8px);
    }
}

.login-card.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

.login-card.shake {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(239, 68, 68, 0.2);
}

/* Alert Animation */
.alert {
    animation: slideDown 0.4s ease-out, shake 0.5s ease-in-out 0.3s;
}

/* Subtle pulse for empty input state */
.login-form input:placeholder-shown+i {
    transition: all var(--transition-base);
}

.progress-bar.success {
    background: linear-gradient(90deg, var(--success-500), #34d399);
}