.breadcrumb {
    margin-left: 3px;
}

.bg-danger {
    --bs-bg-opacity: 1;
    background-color: #ef5151 !important;
}

/*.bg-warning {
    --bs-bg-opacity: 1;
    background-color: #efef51 !important;
}
*/

.bg-success {
    --bs-bg-opacity: 1;
    background-color: #30ca3a !important;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Landing Page Styles */
.header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.logo {
    height: 50px;
    width: auto;
}

.overlay {
    background: url('../images/background.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: auto; /* Add this line */
}

body:has(.overlay) {
    margin-bottom: 0;
}

.hero {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2em;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

    .hero h1 {
        font-size: 3em;
        color: white;
        margin-bottom: 1em;
        text-shadow: 2px 2px 5px #000;
    }

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
}

    .buttons a {
        display: inline-block;
        background-color: white;
        color: black;
        padding: 0.75em 1.5em;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        transition: background 0.3s, color 0.3s;
    }

        .buttons a:hover {
            background-color: #f0f0f0;
        }

/* Mobile Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2em;
    }

    .buttons {
        flex-direction: column;
        align-items: stretch;
    }

        .buttons a {
            width: 100%;
            text-align: center;
            padding: 1em;
            font-size: 1em;
        }
}


/* Login Page Styles */
.login-wrapper {
    background: url('../images/background.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2em;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-align: center;
}

    .login-box h2 {
        margin-bottom: 1em;
        font-size: 2em;
        color: #333;
    }

    .login-box input[type="text"],
    .login-box input[type="password"] {
        width: 100%;
        padding: 0.75em;
        margin-bottom: 1em;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1em;
    }

    .login-box button {
        width: 100%;
        padding: 0.75em;
        background-color: white;
        color: black;
        border: 2px solid black;
        border-radius: 5px;
        font-weight: bold;
        font-size: 1em;
        cursor: pointer;
        transition: background 0.3s;
    }

        .login-box button:hover {
            background-color: #f0f0f0;
        }

    .login-box .forgot {
        margin-top: 1em;
        font-size: 0.9em;
    }

        .login-box .forgot a {
            color: #007bff;
            text-decoration: none;
        }

            .login-box .forgot a:hover {
                text-decoration: underline;
            }

@media (max-width: 600px) {
    .login-box {
        padding: 1em;
    }

        .login-box h2 {
            font-size: 1.5em;
        }
}

/* Fix login page scrolling */
body:has(.login-wrapper) {
    margin-bottom: 0;
    overflow: hidden;
}

.login-wrapper {
    height: 100vh;
    overflow: auto;
}

/* Row selection - override cell styles */
.table tbody tr.selected,
.table tbody tr.selected td {
    background-color: #e3f2fd !important;
}

/* Table with thin row borders */
.table tbody tr {
    border-bottom: 1px solid #e0d0c0;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Layout Toggle Styles */
.layout-boxed {
    background: #f8f9fa;
}

.layout-boxed .container {
    max-width: 1600px; /* MSN-style width */
    margin: 0 auto;
    padding: 0 1rem;
}

.layout-fullwidth .container {
    max-width: 99%;
    padding: 3px;
}

/* Ensure no horizontal scrolling */
html, body {
    overflow-x: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .layout-boxed .container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .layout-boxed .container {
        padding: 0 0.5rem;
    }
}

/* .layout-boxed .container {
  max-width: 1320px;
  margin: 0 auto;
}

.layout-fullwidth .container {
  max-width: 100%;
} */


/* Centered nav items hover effects */
.navbar-nav.mx-auto .nav-link {
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 2px;
}

    .navbar-nav.mx-auto .nav-link:hover {
        background-color: #cba071;
        /*    color: #007bff !important;*/
        transform: translateY(-1px);
    }

.badge {
    min-width: 100px;
    min-height: 24px;
    text-align: center;
}

/* Example: Blue theme */
.table-dark {
    background-color: #268df3 !important;
    color: #ffffff !important;
}

    .table-dark th {
        background-color: #268df3 !important;
        border-color: #3730a3 !important;
    }

:root {
    --primary-color: #268df3;
}

/* Override everywhere */
.primary-color {
    color: #268df3;
}

.bg-primary {
    background-color: #268df3 !important;
}

.btn-primary {
    background-color: #268df3;
    border-color: #268df3;
}

.text-primary {
    color: #268df3 !important;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

    .pagination .page-link:hover {
        background-color: #e9ecef;
        border-color: #dee2e6;
    }

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f8f9fa;
}

.modal-form .form-control,
.modal-form .form-select {
    font-size: 0.875rem;
}

.modal-form .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.modal-form .col-md-4,
.modal-form .col-md-6,
.modal-form .col-12 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Executive Dashboard Styles */
.trend-bars {
    font-size: 12px;
    letter-spacing: 1px;
}

.card-header h5 .fas {
    opacity: 0.8;
}

/* Smooth animations */
.card {
    transition: transform 0.2s ease-in-out;
}

    .card:hover {
        transform: translateY(-2px);
    }

.header-title {
    text-decoration: none !important;
}

    .header-title h3 {
        color: #0056b3 !important;
    }

@media (max-width: 768px) {
    .breadcrumb-item.active {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-item.active {
        max-width: 300px;
    }
}