@import url("https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css");
@import url("background.css");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

/* Custom properties to control title spacing (edit to increase/reduce) */
:root {
    --title-margin-top: 0px;
    /* space above h2 */
    --title-margin-bottom: 18px;
    /* space below h2 */
    /* Color palette from user */
    --color-bg: #F5F2F2;
    /* very light background */
    --color-accent: #FEB05D;
    /* orange accent */
    --color-primary: #5A7ACD;
    /* blue primary */
    --color-dark: #2B2A2A;
    /* dark text */
    --color-muted: #e6e6e6;
    /* borders / muted */
    --white: #ffffff;

    /* Bootstrap Overrides */
    --bs-primary: #5A7ACD;
    --bs-primary-rgb: 90, 122, 205;
    --bs-warning: #FEB05D;
    --bs-warning-rgb: 254, 176, 93;
    --bs-body-bg: #F5F2F2;
    --bs-body-color: #2B2A2A;
}

/* Logo sizing and centering */
.site-logo {
    height: 60px;
    display: inline-block;
    max-width: 90%;
    width: auto
}

.navbar .site-logo {
    height: 60px
}

.login-sec h2.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0
}

.login-sec h2.brand .site-logo {
    height: 80px;
    width: auto;
    max-width: 320px;
    display: block;
    margin: 0 auto
}

/* Responsive reductions */
@media (max-width: 991px) {
    .site-logo {
        height: 54px
    }

    .navbar .site-logo {
        height: 54px
    }

    .login-sec h2.brand .site-logo {
        height: 60px;
        max-width: 280px
    }
}

@media (max-width: 576px) {
    .site-logo {
        height: 40px
    }

    .navbar .site-logo {
        height: 40px
    }

    .login-sec h2.brand .site-logo {
        height: 40px;
        max-width: 220px
    }
}

/* ProEats table styles */
.table-proeats-wrapper {
    overflow-x: auto;
    margin-top: 18px
}

.table-proeats {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px
}

.table-proeats th,
.table-proeats td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-muted);
    text-align: left
}

.table-proeats thead th {
    background: var(--color-primary);
    color: var(--white);
    font-weight: 700
}

.table-proeats tbody tr:nth-child(even) {
    background: rgba(90, 122, 205, 0.04)
}

.table-proeats tbody tr:hover {
    background: rgba(43, 42, 42, 0.04)
}

.table-proeats .badge-yes {
    background: var(--color-accent);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 14px;
    font-weight: 700
}

.table-proeats .badge-no {
    background: #f1f1f1;
    color: var(--color-dark);
    padding: 6px 10px;
    border-radius: 14px
}

.table-proeats tfoot td {
    background: var(--color-bg);
    font-weight: 700
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: var(--color-bg);
    font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Center the whole login block in the viewport */
main.login-block {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Center the ProEats heading inside the login panel */
.brand,
.login-sec h2.brand,
.login-sec .brand {
    width: 100%;
    text-align: center;
    margin: 0 0 var(--title-margin-bottom) 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-dark);
    display: block;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar full width */
.navbar {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.navbar .navbar-brand {
    position: static;
    text-align: left;
    margin-left: 0
}

.navbar .navbar-brand strong {
    display: inline-block
}

/* Ensure toggler sits above brand on small screens */
.navbar .navbar-toggler {
    z-index: 1040
}




.container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 100%;
    max-width: 360px;
    margin: 40px auto;
    padding: 0;
}

.login-sec {
    position: relative;
    background: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    box-sizing: border-box;
}

.login-sec .copy-text {
    position: absolute;
    width: 80%;
    bottom: 20px;
    font-size: 13px;
    text-align: center;
}

.login-sec .copy-text i {
    color: var(--color-accent);
}

.login-sec .copy-text a {
    color: var(--color-primary);
}

.login-sec h2 {
    margin: var(--title-margin-top) 0 var(--title-margin-bottom);
    font-weight: 800;
    font-size: 32px;
    color: var(--color-dark);
    text-align: center;
    width: 100%;
    padding: 0;
}

.login-sec h2.brand {
    text-align: center;
    width: 90%;
    justify-content: center;
    display: flex;
}

.login-sec h2:after {
    content: " ";
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    display: block;
    margin: 10px auto 0 auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 3px;
}

.login-sec h2.brand:after {
    content: " ";
    width: 80px;
    height: 4px;
    background: #FEB58A;
    display: block;
    margin: 10px auto 0 auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 3px;
}

.form-control {
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid var(--color-muted);
    height: 44px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--color-accent);
}

.btn-login {
    background: var(--color-accent);
    color: var(--white);
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 25px;
    display: inline-block
}

.btn-login:hover {
    background: rgba(254, 176, 93, 0.9);
    color: var(--white)
}

/* Center form layout and buttons inside .login-sec */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.form-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px
}

.form-check .form-check-label {
    margin: 0
}


/* Responsive adjustments */
@media (max-width: 991px) {
    .banner-text {
        width: 85%;
    }
}

@media (max-width: 767px) {
    main.login-block {
        padding: 30px 0
    }

    .container {
        box-shadow: none
    }

    .banner-sec {
        display: none
    }

    .login-sec {
        border-radius: 10px;
        padding: 30px
    }

    .login-sec .copy-text {
        position: relative;
        bottom: auto;
        margin-top: 20px
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 2rem;
        padding: 15px 0;
    }

    main.login-block {
        padding: 20px 0;
    }

    .login-sec {
        padding: 20px;
    }

    .form-control {
        height: 40px;
    }

    .btn-login {
        padding: 8px 18px;
        font-size: 14px;
    }

    .ms-login-btn {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Microsoft sign-in button */
.ms-login-btn {
    background: var(--white);
    border: 1px solid var(--color-muted);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-top: 20px;
}

.ms-login-btn .ms-logo {
    display: inline-flex;
    align-items: center
}

.ms-login-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 576px) {
    .ms-login-btn {
        background: #fff;
        border: 1px solid #e6e6e6;
        color: #222;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 8px;
        font-weight: 700;
        width: 100%;
        max-width: none;
        box-sizing: border-box
    }
}

.ms-login-btn.btn-block {
    width: 100%
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: auto
}

.popup {
    position: relative;
    background: var(--white);
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: 460px;
    width: calc(100% - 40px);
    transform: translateY(-10px);
    transition: transform .22s ease, opacity .22s ease;
    opacity: 0
}

.popup-overlay.show .popup {
    transform: translateY(0);
    opacity: 1
}

.popup--error {
    border-left: 6px solid var(--color-accent)
}

.popup--success {
    border-left: 6px solid #38A169
}

.popup--info {
    border-left: 6px solid var(--color-primary)
}

.popup-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-dark)
}

.popup-content {
    color: var(--color-dark);
    font-size: 15px;
    line-height: 1.4;
    padding-right: 8px
}

@media (max-width: 576px) {
    .popup {
        max-width: 92%;
        padding: 14px 14px;
        border-radius: 8px
    }

    .popup-content {
        font-size: 14px
    }
}

/* Mobile-specific adjustment for background behavior */
@media (max-width: 767px) {
    body {
        background-attachment: scroll;
        background-position: center top;
    }
}

/* Reduce all buttons by ~15% for a slightly smaller appearance */
button,
input[type="button"],
input[type="submit"],
.btn,
.btn-login,
.ms-login-btn {
    transform: scale(0.85);
    transform-origin: center;
    display: inline-block;
    vertical-align: middle;
}

/* Ensure reduced buttons don't break full-width layouts (e.g., .ms-login-btn) */
.ms-login-btn,
.ms-login-btn.btn-block {
    width: 100%;
}

/* Background Opacity for Internal Pages */
.internal-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 50% opacity black overlay */
    z-index: -1;
    pointer-events: none;
}

/* Global Bold Titles */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-weight: 700 !important;
}

/* Force Warning Button to Palette Orange */
.btn-warning {
    background-color: #FEB05D !important;
    border-color: #FEB05D !important;
    color: #2B2A2A !important;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #fda950 !important;
    border-color: #fda950 !important;
    color: #2B2A2A !important;
}

/* Global Button Hover Effect */
button,
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
    transform: scale(0.90);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar - Orange Default, Blue Hover */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 6px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #5A7ACD;
}