/* Premium Finance Theme Design System */

/* CSS Variables for Premium Theme */
:root {
    /* Dark Navy/Deep Blue Background */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #252b4a;
    --bg-card: rgba(26, 31, 58, 0.8);
    --bg-card-hover: rgba(26, 31, 58, 0.95);

    /* Vibrant Accent Colors */
    --cyan-primary: #4fd1c5;
    --cyan-secondary: #38b2ac;
    --purple-primary: #9333ea;
    --purple-secondary: #c026d3;
    --golden-yellow: #fbbf24;
    --success-green: #10b981;
    --danger-red: #ef4444;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --text-accent: #4fd1c5;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    --gradient-secondary: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
    --gradient-background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1629 100%);
    --gradient-card: linear-gradient(135deg, rgba(79, 209, 197, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);

    /* 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 -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(79, 209, 197, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(147, 51, 234, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-background);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 80px;
    /* Account for fixed navbar */
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(79, 209, 197, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 1;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Cards */
.premium-card {
    /* background: var(--bg-card); */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.premium-card:hover {
    /* background: var(--bg-card-hover); */
    background: linear-gradient(to right, ghostwhite, #FF00FF);
    border-color: rgba(79, 209, 197, 0.4);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    transform: translateY(-4px) scale(1.02);
}

/* Stats Cards */
.stats-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.stats-card:hover {
    border-color: rgba(79, 209, 197, 0.4);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translateY(-6px);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: var(--shadow-md);
}

.stats-icon.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.stats-icon.secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow-purple);
}

.stats-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(16, 185, 129, 0.3);
}

.stats-icon.warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(251, 191, 36, 0.3);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.5rem 0;
    line-height: 1;
}

.stats-label {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stats-change.positive {
    color: var(--success-green);
}

.stats-change.negative {
    color: var(--danger-red);
}

/* Premium Buttons */
.btn-premium {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    color: white;
    text-decoration: none;
}

.btn-premium-outline {
    background: transparent;
    color: var(--cyan-primary);
    border: 2px solid var(--cyan-primary);
    border-radius: var(--radius-md);
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-premium-outline:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    text-decoration: none;
}

/* Navigation */
.navbar {
    /* background: rgba(10, 14, 39, 0.95) !important; */
    /* background: linear-gradient(to right, #FFFFFF, #A40525) !important; */
    /* background: #FFFFFF !important; */
    background: #dbd5d5 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 209, 197, 0.2);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050 !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--cyan-primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: var(--transition-normal);
    border-radius: var(--radius-sm);
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover {
    color: var(--cyan-primary) !important;
    background: rgba(79, 209, 197, 0.1);
    transform: translateY(-1px);
}

/* Dropdown */
.dropdown-menu {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition-normal);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    text-decoration: none;
    display: block;
    width: 100%;
}

.dropdown-item:hover {
    background: rgba(79, 209, 197, 0.1);
    color: var(--cyan-primary);
    transform: translateX(4px);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    margin: 2rem 0 3rem;
    padding: 4rem 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(79, 209, 197, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(147, 51, 234, 0.2) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #4fd1c5 50%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-lg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.feature-card:hover {
    border-color: rgba(79, 209, 197, 0.4);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    transform: translateY(-8px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Forms */
.form-control {
    background: var(--bg-card);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--cyan-primary);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.2);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tables */
.table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.table thead th {
    background: var(--gradient-primary);
    border: none;
    font-weight: 700;
    color: white;
    padding: 1.5rem 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.table tbody tr {
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(79, 209, 197, 0.1);
}

.table tbody tr:hover {
    background: rgba(79, 209, 197, 0.05);
}

.table tbody td {
    padding: 1rem;
    border: none;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 10px rgba(79, 209, 197, 0.3);
}

.badge-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 10px rgba(147, 51, 234, 0.3);
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 10px rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 10px rgba(251, 191, 36, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Alerts */
.alert {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
}

.alert-success::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.alert-danger::before {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.alert-warning::before {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: var(--radius-xl);
    background: rgba(79, 209, 197, 0.1);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 0.8s ease;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 10px rgba(79, 209, 197, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 209, 197, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 3rem 1.5rem;
        margin: 1rem 0 2rem;
    }

    .stats-card,
    .premium-card,
    .feature-card {
        padding: 1.5rem;
    }

    .stats-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .btn-premium,
    .btn-premium-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.d-none {
    display: none;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.9;
}

/* Browser Compatibility Fallbacks */
@supports not (backdrop-filter: blur(20px)) {

    .premium-card,
    .stats-card,
    .feature-card,
    .navbar,
    .dropdown-menu,
    .hero-section,
    .form-control,
    .table,
    .alert {
        background: var(--bg-secondary);
        opacity: 0.95;
    }
}

/* Accessibility */
@media (prefers-contrast: high) {

    .premium-card,
    .stats-card,
    .feature-card {
        border: 2px solid var(--cyan-primary);
        background: var(--bg-primary);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-premium:focus,
.btn-premium-outline:focus,
.form-control:focus {
    outline: 2px solid var(--cyan-primary);
    outline-offset: 2px;
}