/* ========== TOP NAVBAR ========== */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #222;
    border-right: 1px solid #111;
    width: 220px;
}

.sidebar .nav > li > a {
    color: #aaa;
    padding: 10px 15px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 13px;
}

.sidebar .nav > li > a:hover,
.sidebar .nav > li > a:focus {
    background-color: #333;
    color: #fff;
}

.sidebar .nav > li.active > a {
    background-color: #337ab7;
    color: #fff;
}

.sidebar .nav > li > a .glyphicon {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.sidebar .sidebar-heading {
    padding: 10px 15px 5px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #2a2a2a;
}

/* Sidebar submenu (Reports dropdown) */
.sidebar .nav > li.sidebar-submenu > a {
    cursor: pointer;
}

.sidebar .nav > li.sidebar-submenu > a::after {
    content: '\e114';
    font-family: 'Glyphicons Halflings';
    float: right;
    font-size: 10px;
    line-height: 18px;
    transition: transform 0.2s;
}

.sidebar .nav > li.sidebar-submenu.open > a::after {
    transform: rotate(90deg);
}

.sidebar .sidebar-sub-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background-color: #1a1a1a;
}

.sidebar .sidebar-submenu.open .sidebar-sub-nav {
    display: block;
}

.sidebar .sidebar-sub-nav > li > a {
    display: block;
    color: #888;
    padding: 8px 15px 8px 40px;
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px solid #222;
}

.sidebar .sidebar-sub-nav > li > a:hover {
    color: #fff;
    background-color: #2a2a2a;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    padding: 20px 30px;
}

/* When sidebar is present (logged-in vendor/admin) */
.has-sidebar .main-content {
    margin-left: 220px;
}

/* When no sidebar (public pages) */
.no-sidebar .main-content {
    margin-left: 0;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* ========== NAVBAR BRAND LOGO ========== */
.navbar-brand img {
    height: 30px;
    margin-top: -5px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* ========== LOGO UPLOAD PREVIEW ========== */
.logo-preview {
    max-width: 200px;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    position: fixed;
    bottom: 0px;
    width: 100%;
    height: 30px;
    background: black;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:6;
}

footer p {
    margin-bottom:0px;
}

    footer p a {
        color:orangered;
    }
    /* ========== MOBILE RESPONSIVE ========== */
    @media (max-width: 767px) {
        .sidebar {
        position: relative;
        top: 0;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #111;
        display: none;
    }
    .sidebar.in {
        display: block;
    }
    .has-sidebar .main-content {
        margin-left: 0;
    }
    .sidebar .nav > li > a {
        padding: 8px 15px;
    }
}


body {
    background: #f5f7fb;
}

.card {
    border-radius: 10px;
}

.btn-primary {
    font-weight: 600;
}
.btn-primary.btn-lg,
.btn-primary.btn-md,
.form-horizontal .btn-primary:not(.btn-xs) {
    padding: 10px 16px;
}
.btn-primary {
    background-color: lightseagreen;
    border-color: lightseagreen;
}

    .btn-primary:hover {
        background-color: #1aa79f;
        border-color: #1aa79f;
    }

    .btn-primary:focus,
    .btn-primary.focus {
        background-color: #1aa79f;
        border-color: #1aa79f;
        box-shadow: 0 0 0 0.2rem rgba(32, 178, 170, 0.5);
    }

    .btn-primary:not(:disabled):not(.disabled):active,
    .btn-primary:not(:disabled):not(.disabled).active,
    .show > .btn-primary.dropdown-toggle {
        background-color: #178f88;
        border-color: #178f88;
    }

    .btn-primary.disabled,
    .btn-primary:disabled {
        background-color: #7fd3ce;
        border-color: #7fd3ce;
    }

    .logo-div {
        width:120px;
        margin:auto;
        margin-bottom:20px;
    }

.validation-summary-valid {
    display:none;
}

.link {
    color: #20b2aa !important;
}

/* ========== BOOTSTRAP 4 COMPATIBILITY (Login/Register pages) ========== */

/* Card component (BS4 equivalent of BS3 panel) */
.card {
    position: relative;
    display: block;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.card-body {
    padding: 20px;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.border-0 {
    border: 0;
}

/* Spacing utilities */
.p-4 { padding: 24px; }
.mt-3 { margin-top: 15px; }
.mt-5 { margin-top: 48px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 24px; }

/* Flexbox utilities */
.d-flex { display: flex; }
.justify-content-center { display: flex; justify-content: center; }
.align-items-center { display: flex; align-items: center; }
.row.justify-content-center { justify-content: center; }
.row.align-items-center { align-items: center; }

/* Image fluid (BS4) - BS3 uses img-responsive */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Custom checkbox (BS4) */
.custom-control {
    position: relative;
    display: block;
    min-height: 20px;
    padding-left: 24px;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    cursor: pointer;
}

.custom-control-label::before {
    position: absolute;
    top: 2px;
    left: -24px;
    display: block;
    width: 16px;
    height: 16px;
    content: "";
    background-color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 3px;
}

.custom-control-label::after {
    position: absolute;
    top: 2px;
    left: -24px;
    display: block;
    width: 16px;
    height: 16px;
    content: "";
    background: no-repeat 50% / 50% 50%;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #20b2aa;
    border-color: #20b2aa;
}

.custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

/* btn-block - exists in BS3 but ensure it works */
.btn-block {
    display: block;
    width: 100%;
}

/* Navbar BS4 compatibility */
.navbar-dark {
    background-color: #222 !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav > li > a {
    color: #fff;
}

.bg-dark {
    background-color: #222 !important;
}

/* col-lg-5 exists in BS3, but ensure the login form row centers properly */
.row.justify-content-center.align-items-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}