/* FinMaster Custom CSS Stylesheet - Dark & Light Mode Glassmorphic Design */
:root {
    --bg-dark: #09121F;
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --border-dark: rgba(255, 255, 255, 0.12);
    --text-color-dark: #ffffff;
    
    --bg-light: #f8fafc;
    --card-bg-light: rgba(15, 23, 42, 0.03);
    --border-light: rgba(15, 23, 42, 0.08);
    --text-color-light: #0f172a;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color-dark);
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 80px; /* Offset for fixed navbar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Light Theme overrides */
body.light {
    background-color: var(--bg-light);
    color: var(--text-color-light);
}

body.light .navbar-dark {
    --bs-navbar-color: rgba(15, 23, 42, 0.7);
    --bs-navbar-hover-color: rgba(15, 23, 42, 0.95);
    --bs-navbar-active-color: #0f172a;
    --bs-navbar-brand-color: #0f172a;
    --bs-navbar-brand-hover-color: #0f172a;
}

body.light .glass-nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light .navbar-toggler-icon {
    filter: invert(1);
}

body.light .glass-card {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-color-light);
}

body.light .glass-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

body.light .card {
    background: #ffffff;
    color: var(--text-color-light);
    border-color: var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

body.light .accordion-item {
    background-color: #ffffff;
    color: var(--text-color-light);
    border-color: var(--border-light);
}

body.light .accordion-button {
    background-color: #f1f5f9;
    color: var(--text-color-light);
}

body.light .bg-dark {
    background-color: #f1f5f9 !important;
    color: var(--text-color-light) !important;
}

body.light .bg-light {
    background-color: #e2e8f0 !important;
}

body.light .list-group-item {
    background-color: #ffffff;
    color: var(--text-color-light);
    border-color: var(--border-light);
}

/* Glass Navbar */
.glass-nav {
    background: rgba(9, 18, 31, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-dark);
    padding: 12px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0d1b2a, #182848, #4b6cb7);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    border-radius: 0 0 40px 40px;
}

.hero h1 {
    font-weight: 800;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
}

.hero p {
    margin: 25px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Float Animation */
.floating {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Buttons */
.btn-warning {
    border-radius: 40px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

.btn-outline-light {
    border-radius: 40px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Glass Card */
.glass-card {
    background: var(--card-bg-dark);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-dark);
    padding: 35px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.25);
    border-color: rgba(0, 123, 255, 0.3);
}

.glass-card i {
    color: #4dabff;
    transition: transform 0.3s ease;
}

.glass-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* WhatsApp Floating Button */
.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #fff;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
    transition: all 0.3s ease;
}

.whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* Particles Div */
#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Industry icon / badges */
.industry-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

body.light .industry-box {
    background: rgba(15,23,42,0.02);
    border-color: var(--border-light);
}

.industry-box:hover {
    background: rgba(0, 123, 255, 0.08);
    transform: translateY(-4px);
}

/* Custom stats items */
.stat-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, #ffc107, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Text Contrast Fixes */
.text-muted {
    color: #a1a1aa !important;
}

body.light .text-muted {
    color: #6b7280 !important;
}

/* Themed Card & Action Buttons */
.themed-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-dark) !important;
    color: var(--text-color-dark) !important;
    transition: all 0.3s ease;
}
body.light .themed-card {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-color-light) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.themed-action-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-dark) !important;
    color: var(--text-color-dark) !important;
    transition: all 0.3s ease;
    text-decoration: none;
}
.themed-action-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffc107 !important;
    transform: translateY(-3px);
}
body.light .themed-action-card {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-color-light) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
body.light .themed-action-card:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #d97706 !important;
}

/* Sidebar List Item Actions */
.list-group-item-action {
    color: rgba(255, 255, 255, 0.65) !important;
    transition: all 0.2s ease;
}
.list-group-item-action:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}
.list-group-item-action.active {
    color: #ffc107 !important;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.02) !important;
}
body.light .list-group-item-action {
    color: rgba(15, 23, 42, 0.7) !important;
}
body.light .list-group-item-action:hover {
    color: #0f172a !important;
    background-color: rgba(15, 23, 42, 0.04) !important;
}
body.light .list-group-item-action.active {
    color: #d97706 !important;
    font-weight: 600;
    background-color: rgba(15, 23, 42, 0.02) !important;
}

/* Pricing Section Cards */
.pricing-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-dark) !important;
    color: var(--text-color-dark) !important;
    transition: all 0.3s ease;
}
.pricing-card.professional {
    background: rgba(255, 193, 7, 0.06) !important;
    border: 3px solid #ffc107 !important;
}

body.light .pricing-card {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-color-light) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
body.light .pricing-card.professional {
    background: #fffdf5 !important;
    border: 3px solid #f59e0b !important;
}

/* Footer Links & Theming */
body.light footer {
    background-color: #f1f5f9 !important;
    border-top: 1px solid var(--border-light) !important;
    color: var(--text-color-light) !important;
}
footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.2s ease;
}
footer a:hover {
    color: #ffc107 !important;
}
body.light footer a {
    color: rgba(15, 23, 42, 0.7) !important;
}
body.light footer a:hover {
    color: #d97706 !important;
}

/* Themed Card & Action Buttons */
.themed-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-dark) !important;
    color: var(--text-color-dark) !important;
    transition: all 0.3s ease;
}
body.light .themed-card {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-color-light) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.themed-action-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-dark) !important;
    color: var(--text-color-dark) !important;
    transition: all 0.3s ease;
    text-decoration: none;
}
.themed-action-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffc107 !important;
    transform: translateY(-3px);
}
body.light .themed-action-card {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-color-light) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
body.light .themed-action-card:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #d97706 !important;
}

/* Sidebar List Item Actions */
.list-group-item-action {
    color: rgba(255, 255, 255, 0.65) !important;
    transition: all 0.2s ease;
}
.list-group-item-action:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}
.list-group-item-action.active {
    color: #ffc107 !important;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.02) !important;
}
body.light .list-group-item-action {
    color: rgba(15, 23, 42, 0.7) !important;
}
body.light .list-group-item-action:hover {
    color: #0f172a !important;
    background-color: rgba(15, 23, 42, 0.04) !important;
}
body.light .list-group-item-action.active {
    color: #d97706 !important;
    font-weight: 600;
    background-color: rgba(15, 23, 42, 0.02) !important;
}

/* Light Navbar Outline Button Override */
body.light .btn-outline-light {
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.35) !important;
}
body.light .btn-outline-light:hover {
    color: #ffffff !important;
    background-color: #0f172a !important;
    border-color: #0f172a !important;
}

/* Form Controls & Inputs Contrast Fixes */
.form-control, .form-select, .input-group-text {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}
.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #ffc107 !important;
    color: #ffffff !important;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.25) !important;
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}
.form-control:disabled, .form-control[readonly] {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: #a1a1aa !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.light .form-control, body.light .form-select, body.light .input-group-text {
    background-color: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}
body.light .form-control:focus, body.light .form-select:focus {
    background-color: #ffffff !important;
    border-color: #d97706 !important;
    color: #0f172a !important;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.2) !important;
}
body.light .form-control::placeholder {
    color: rgba(15, 23, 42, 0.4) !important;
}
body.light .form-control:disabled, body.light .form-control[readonly] {
    background-color: #f1f5f9 !important;
    color: #6b7280 !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}
/* Themed Responsive Tables */
.themed-table {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}
.themed-table th {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffc107 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    font-weight: 700;
}
.themed-table td {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.light .themed-table {
    background-color: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
body.light .themed-table th {
    background-color: #f1f5f9 !important;
    color: #d97706 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}
body.light .themed-table td {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

/* Select Option Contrast Fix for Native Browser Dropdowns */
.form-select option, select option {
    background-color: #1e293b !important;
    color: #ffffff !important;
}
body.light .form-select option, body.light select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* SaaS Admin Dashboard Extensions */
.metric-card {
    background: #121c2c !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
}
.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    opacity: 0.8;
}
.metric-card:hover {
    transform: translateY(-4px);
    background: #17243c !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.15) !important;
}
.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light .metric-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
body.light .metric-card::before {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}
body.light .metric-card:hover {
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.08);
}

/* Glass Tabs & Pills Navigation */
.glass-nav-pills {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    padding: 6px;
    display: inline-flex;
    margin-bottom: 24px;
}
.glass-nav-pills .nav-item {
    margin-right: 4px;
}
.glass-nav-pills .nav-item:last-child {
    margin-right: 0;
}
.glass-nav-pills .nav-link {
    border-radius: 20px !important;
    border: none !important;
    padding: 10px 20px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 500;
    transition: all 0.25s ease !important;
}
.glass-nav-pills .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
.glass-nav-pills .nav-link.active {
    background: linear-gradient(135deg, #ffc107, #ff9800) !important;
    color: #000000 !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.25) !important;
}
body.light .glass-nav-pills {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.02);
}
body.light .glass-nav-pills .nav-link {
    color: rgba(15, 23, 42, 0.65) !important;
}
body.light .glass-nav-pills .nav-link:hover {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.04) !important;
}
body.light .glass-nav-pills .nav-link.active {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    color: #ffffff !important;
}

/* Sidebar Extensions */
.sidebar-link {
    border-left: 3px solid transparent !important;
    padding-left: 15px !important;
    transition: all 0.3s ease !important;
}
.sidebar-link:hover {
    border-left-color: rgba(255, 193, 7, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    padding-left: 20px !important;
}
.sidebar-link.active {
    border-left-color: #ffc107 !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffc107 !important;
    padding-left: 20px !important;
}
body.light .sidebar-link:hover {
    border-left-color: rgba(217, 119, 6, 0.5) !important;
    background-color: rgba(15, 23, 42, 0.03) !important;
}
body.light .sidebar-link.active {
    border-left-color: #d97706 !important;
    background-color: rgba(15, 23, 42, 0.05) !important;
    color: #d97706 !important;
}

/* Card Spacing & Text Contrast overrides for Admin Console */
.card.bg-dark {
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f3f4f6 !important;
}
.card.bg-dark span {
    color: #9ca3af !important;
}
.card.bg-dark strong {
    color: #ffffff !important;
}
.card.bg-dark h5, .card.bg-dark h6 {
    color: #ffc107 !important;
}
body.light .card.bg-dark {
    background-color: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}
body.light .card.bg-dark span {
    color: #475569 !important;
}
body.light .card.bg-dark strong {
    color: #0f172a !important;
}
body.light .card.bg-dark h5, body.light .card.bg-dark h6 {
    color: #d97706 !important;
}

/* Tenant selection list highlighting */
.active-tenant-item {
    background-color: rgba(255, 193, 7, 0.12) !important;
    border-color: #ffc107 !important;
}
