/* css/fintech-pro.css - Apple-Inspired Fintech Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================================
   GLOBAL RESET & BASE (DARK MODE DEFAULT)
   ========================================= */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



/* Bring back the animated glowing orbs for intense glassmorphism */
.orb-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.dark .orb-container { background: #000000; }
.dark .orb-1 { background: #003399; opacity: 0.6; }
.dark .orb-2 { background: #1e1b4b; opacity: 0.6; }
.dark .orb-3 { background: #0044cc; opacity: 0.6; }

html:not(.dark) .orb-container { background: #e2e8f0; }
html:not(.dark) .orb-1 { background: #93c5fd; opacity: 0.6; }
html:not(.dark) .orb-2 { background: #c4b5fd; opacity: 0.6; }
html:not(.dark) .orb-3 { background: #6ee7b7; opacity: 0.6; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 10vh) scale(1.1); }
}

/* =========================================
   APPLE CARDS (FROSTED GLASS / VIBRANCY)
   ========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dark .glass-card {
    background: rgba(15, 20, 35, 0.4) !important; /* More transparent for glass effect */
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important; 
}

.glass-card:hover {
    transform: scale(1.01);
}

.dark .glass-card:hover {
    background: rgba(28, 28, 30, 0.7);
}

/* =========================================
   INPUTS (FORMS)
   ========================================= */
.glass-input {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #111827 !important;
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    transition: all 0.2s ease !important;
}

.dark .glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: #0044cc;
    box-shadow: 0 0 0 4px rgba(0, 51, 153, 0.15);
    outline: none;
}

.dark .glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(0, 51, 153, 0.3);
}

/* =========================================
   BUTTONS
   ========================================= */
.glass-button {
    background: rgba(0, 51, 153, 0.8);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 51, 153, 0.2);
    transition: all 0.2s ease;
}

.dark .glass-button {
    background: rgba(0, 51, 153, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 51, 153, 0.3);
}

.glass-button:hover {
    background: rgba(0, 68, 204, 1) !important; 
    transform: scale(1.02);
}

.glass-button:active {
    transform: scale(0.98);
}

/* =========================================
   NAVIGATION & SIDEBAR (ACRYLIC BLUR)
   ========================================= */
.glass-nav, .glass-sidebar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
}

.dark .glass-nav, .dark .glass-sidebar {
    background: rgba(10, 10, 12, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.glass-nav {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05) !important;
}
.dark .glass-nav {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1) !important;
}

.glass-sidebar {
    border-right: 0.5px solid rgba(0, 0, 0, 0.05) !important;
}
.dark .glass-sidebar {
    border-right: 0.5px solid rgba(255, 255, 255, 0.1) !important;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
::selection {
    background-color: #003399; /* Deep Blue Highlight */
    color: #ffffff;
}

::-moz-selection {
    background-color: #003399;
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .font-bold, .font-extrabold {
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
}

.dark .text-gray-400, .dark .text-gray-300 {
    color: #8e8e93 !important; /* Apple System Gray */
}

/* Accents (Deep Blue) */
.text-brand-primary { color: #0044cc !important; }
.bg-brand-primary { background-color: rgba(0, 51, 153, 0.9) !important; backdrop-filter: blur(10px) !important; color: #ffffff !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
.hover\:bg-brand-primary:hover { background-color: rgba(0, 68, 204, 1) !important; }
.bg-brand-primary\/10 { background-color: rgba(0, 51, 153, 0.15) !important; }

/* Sidebar/Link Hover Overrides */
[class*="hover\:bg-brand-700"]:hover,
[class*="hover\:bg-\[\#1c1f2a\]"]:hover {
    background-color: rgba(0, 51, 153, 0.15) !important;
    color: #0044cc !important;
}

/* Apply Glass to hardcoded tailwind cards */
.dark [class*="bg-[#1e293b]"], 
.dark [class*="bg-[#0f172a]"], 
.dark [class*="bg-[#1e2130]"], 
.dark [class*="bg-[#282c40]"], 
.dark [class*="bg-[#141620]"], 
.dark [class*="bg-[#0a0b10]"],
.dark [class*="bg-brand-800"],
.dark [class*="bg-[#0b0f19]"] {
    background: rgba(28, 28, 30, 0.6) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    border-radius: 24px !important;
}

/* Background overrides */
.dark [class*="bg-brand-900"] {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* End of CSS */

/* Hide native password reveal eye icon in Edge/IE */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

