/* ===========================
   Base Link & Button Styles
   =========================== */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.form-control:focus {
    border-color: #0077cc;
    box-shadow: 0 0 0 0.2rem #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-link.nav-link:focus {
    outline: black auto 1px;
}

/* ===========================
   Typography & Layout
   =========================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-size: 0.95rem;
    height: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Containers */
.container {
    max-width: 960px;
}

.pricing-header {
    max-width: 700px;
}

/* Utility */
.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar .nav-link.active {
    background-color: #007bff;
    color: #fff;
}

/* ===========================
   Wrapper Layout
   =========================== */
.wrapper {
    min-height: 100vh; /* full screen height */
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #f4f6f9;
}

/* ===========================
   Sticky Footer
   =========================== */
.main-footer {
    margin-top: auto;
    width: 100%;
    padding: 6px 10px;
    font-size: 0.85rem;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
    color: #6c757d;
    z-index: 1030;
}

/* ===========================
   Navbar (Light Mode Default)
   =========================== */
.navbar {
    background-color: #f8f9fa;
    color: #212529;
}

.navbar-nav {
    flex-wrap: nowrap;
}

.navbar .nav-item {
    white-space: nowrap;
}

/* ===========================
   Brand Logo & Text
   =========================== */
.brand-link .brand-image {
    float: none;
    margin-left: .5rem;
    margin-right: .25rem;
    margin-top: -2px;
    max-height: 36px;
    width: auto;
    opacity: 10.85;
}

.brand-link .brand-text {
    vertical-align: middle;
}

/* ===========================
   Chart Styling
   =========================== */
.card-body.chart-sm {
    height: 300px; /* normal charts */
}

.card-body.chart-lg {
    height: 250px; /* larger charts */
}

.card-body.chart-sm canvas,
.card-body.chart-lg canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Default fallback if no class applied */
.card-body canvas {
    width: 100% !important;
    height: 300px !important;
}

/* ===========================
   Dark Mode Support
   =========================== */
/* ===========================
   Dark-mode header/nav fixes
   =========================== */

/* Keep navbar dark, only adjust text/icon colors */
body.dark-mode .main-header {
    background-color: #1f1f1f !important; /* dark panel */
    border-bottom: 1px solid #2c2c2c; /* subtle divider */
}

    /* Navbar links & text */
    body.dark-mode .main-header .nav-link,
    body.dark-mode .main-header .navbar-text,
    body.dark-mode .main-header .brand-link,
    body.dark-mode .main-header .brand-link .brand-text {
        color: #f8f9fa !important; /* light readable text */
    }

        /* Navbar links hover */
        body.dark-mode .main-header .nav-link:hover,
        body.dark-mode .main-header .nav-link:focus {
            color: #007bff !important; /* blue hover like links */
            text-decoration: none;
        }

        /* Navbar icons */
        body.dark-mode .main-header .nav-link i,
        body.dark-mode .main-header .brand-link .brand-image {
            color: #f8f9fa !important;
        }

/* Dropdown menus */
body.dark-mode .navbar .dropdown-menu {
    background-color: #2b2f33 !important;
    color: #e9ecef !important;
}

    body.dark-mode .navbar .dropdown-menu .dropdown-item {
        color: #e9ecef !important;
    }

        body.dark-mode .navbar .dropdown-menu .dropdown-item:hover {
            background-color: rgba(255, 255, 255, 0.04) !important;
        }


/* External Login Buttons */
/* Make external login buttons horizontal */
/* social login links */
/* External Login Buttons */
.social-auth-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: nowrap; /* Forces all children into a single line */
}

.social-btn form {
    /* Use display: flex to ensure the form content is aligned */
    display: flex;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px; /* Ensures buttons have a minimum width */
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    white-space: nowrap; /* Prevents text inside the button from wrapping */
}

    .btn-social img {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        border-radius: 4px;
    }

/* Specific button colors */
.btn-google {
    background-color: #db4437;
    border: 1px solid #c23321;
}

    .btn-google:hover {
        background-color: #c23321;
    }

.btn-facebook {
    background-color: #3b5998;
    border: 1px solid #2d4373;
}

    .btn-facebook:hover {
        background-color: #2d4373;
    }

.btn-microsoft {
    background-color: #2F2F2F;
    border: 1px solid #1c1c1c;
}

    .btn-microsoft:hover {
        background-color: #1c1c1c;
    }

/* External login buttons row fix */
/* Force external login buttons into one row */

