/*==============================================================
  FILE: /er/css/style.css

  Emerald Reserve Maintenance Work Order System

  Main Stylesheet

  Copyright © 2026 Daniel Ester
==============================================================*/


/*==============================================================
  CSS STYLE STANDARD

  Keep one declaration per line.

  Place a blank line between declarations for readability.

  Keep each selector in its own clearly separated block.

  Organize related selectors beneath labeled section headings.
==============================================================*/


/*==============================================================
  RESET
==============================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/*==============================================================
  PAGE
==============================================================*/

body {

    font-family: Arial, Helvetica, sans-serif;

    background: #f6f4ec;

    color: #2c2c2c;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    min-height: 100vh;

    padding: 24px 40px 40px;

}


/*==============================================================
  LOGIN CARD
==============================================================*/

.login-card {

    width: min(420px, 92vw);

    background: #ffffff;

    border: 1px solid #d6d6d6;

    border-radius: 12px;

    padding: 20px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,.10);

}

/*==============================================================
  DASHBOARD PLAQUE
==============================================================*/

.dashboard-plaque {

    display: block;

    width: 100%;

    max-width: 320px;

    height: auto;

    margin: 0 auto 20px;

}

/*==============================================================
  DASHBOARD WELCOME
==============================================================*/

.dashboard-welcome {

    margin-bottom: 20px;

    font-size: 1rem;

}

/*==============================================================
  FORM
==============================================================*/

form {

    display: flex;

    flex-direction: column;

}


label {

    font-weight: bold;

    margin-bottom: 8px;

    color: #2d5b39;

}


input {

    width: 100%;

    padding: 12px;

    margin-bottom: 22px;

    border: 1px solid #bdbdbd;

    border-radius: 6px;

    font-size: 1rem;

    transition: border-color .2s ease;

}


input:focus {

    outline: none;

    border-color: #2d5b39;

}


/*==============================================================
  DASHBOARD ACTIONS
==============================================================*/

.dashboard-actions {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 14px;

}


/*==============================================================
  BUTTON
==============================================================*/

button {

    display: block;

    width: 100%;

    max-width: 260px;

    margin: 0 auto;

    padding: 14px;

    border: none;

    border-radius: 6px;

    background: #2d5b39;

    color: #ffffff;

    font-size: 1rem;

    font-weight: bold;

    cursor: pointer;

    transition: background-color .2s ease;

}


button:hover {

    background: #397247;

}


button:active {

    background: #23452c;

}


/*==============================================================
  ERROR MESSAGE
==============================================================*/

.error {

    background: #fdeaea;

    border: 1px solid #d54c4c;

    color: #9b1c1c;

    padding: 12px;

    border-radius: 6px;

    margin-bottom: 25px;

    text-align: center;

}


/*==============================================================
  SUCCESS MESSAGE
==============================================================*/

.success {

    background: #edf8ef;

    border: 1px solid #6ea96f;

    color: #24512d;

    padding: 12px;

    border-radius: 6px;

    margin-bottom: 25px;

    text-align: center;

}


/*==============================================================
  PAGE LINKS
==============================================================*/

.page-link {

    margin-top: 48px;

    text-align: center;

}


/*==============================================================
  LINKS
==============================================================*/

a {

    color: #2d5b39;

    text-decoration: none;

}


a:hover {

    text-decoration: underline;

}


/*==============================================================
  RESPONSIVE
==============================================================*/

@media (max-width: 600px) {

    body {

        padding: 20px;

    }

    .login-card {

        padding: 30px;

    }

}

/*==============================================================
  NEXT WORK ORDER
==============================================================*/

.next-work-order {

    margin: 1.25rem 0 1.5rem;

    text-align: center;

    font-size: 1rem;

    font-weight: 600;

    color: #2f4f4f;

}

/*==============================================================
  WORK ORDER QUANTITY
==============================================================*/

.quantity-control {

    margin: 0 0 24px;

}

.quantity-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;

}

.quantity-heading label {

    margin: 0;

}

.quantity-heading output {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 46px;

    height: 36px;

    padding: 0 10px;

    border-radius: 18px;

    background: #2d5b39;

    color: #ffffff;

    font-size: 1rem;

    font-weight: bold;

}

.quantity-control input[type="range"] {

    appearance: none;

    -webkit-appearance: none;

    width: 100%;

    height: 8px;

    margin: 0;

    padding: 0;

    border: none;

    border-radius: 999px;

    background: #d9e3dc;

    cursor: pointer;

}

.quantity-control input[type="range"]::-webkit-slider-thumb {

    appearance: none;

    -webkit-appearance: none;

    width: 24px;

    height: 24px;

    border: 3px solid #ffffff;

    border-radius: 50%;

    background: #2d5b39;

    box-shadow: 0 2px 7px rgba(0,0,0,.25);

    cursor: grab;

}

.quantity-control input[type="range"]::-webkit-slider-thumb:active {

    cursor: grabbing;

}

.quantity-control input[type="range"]::-moz-range-thumb {

    width: 20px;

    height: 20px;

    border: 3px solid #ffffff;

    border-radius: 50%;

    background: #2d5b39;

    box-shadow: 0 2px 7px rgba(0,0,0,.25);

    cursor: grab;

}

.quantity-control input[type="range"]:focus {

    outline: none;

}

.quantity-control input[type="range"]:focus-visible {

    outline: 3px solid rgba(45,91,57,.25);

    outline-offset: 6px;

}

.quantity-range-labels {

    display: flex;

    justify-content: space-between;

    margin-top: 8px;

    color: #777777;

    font-size: .8rem;

}

/*==============================================================
  LOGIN CONTENT WIDTH
==============================================================*/

:root {

    --login-content-width: 280px;

}


.login-plaque {
    display: block;

    width: min(var(--login-content-width), 100%);

    height: auto;

    margin: 0 auto 34px;
}

.welcome-title {
    margin: 0 0 28px;
    color: #2c2c2c;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.public-calendar-button,
.login-card form {

    width: min(var(--login-content-width), 100%);

    margin-left: auto;

    margin-right: auto;

}

.public-calendar-button {
    display: block;
    margin-bottom: 14px;
    padding: 13px 18px;

    border: 1px solid #145a37;
    border-radius: 9px;

    background: #176b42;
    color: #ffffff;

    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.public-calendar-button:hover {

    background: #208153;

    text-decoration: none;

}

.login-card form input,
.login-card form button {
    width: 100%;
}

/*==============================================================
  LOGIN MODAL
==============================================================*/

.login-modal[hidden] {

    display: none;

}

.login-modal {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.42);

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);

}

.login-modal-card {

    width: min(340px, 92vw);

    padding: 28px;

    border: 1px solid #d6d6d6;

    border-radius: 14px;

    background: #ffffff;

    color: #2c2c2c;

    text-align: center;

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);

}

.login-modal-card h2 {

    margin-bottom: 24px;

    font-size: 1.35rem;

}

.login-modal-card form {

    width: 100%;

}

.login-modal-card label {

    text-align: left;

}

.login-modal-card input {

    width: 100%;

}

.login-modal-actions {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 4px;

}

.login-modal-actions button {

    width: 100%;

    max-width: none;

    margin: 0;

}

#closeLoginButton {

    border: 1px solid #2d5b39;

    background: #ffffff;

    color: #2d5b39;

}

#closeLoginButton:hover {

    background: #edf4ee;

}

.open-login-button {

    width: min(var(--login-content-width), 100%);

    max-width: none;

    padding: 13px 18px;

    border: 1px solid #145a37;

    border-radius: 9px;

    background: #176b42;

    color: #ffffff;

    font-size: 1rem;

    font-weight: 700;

}

.open-login-button:hover {

    background: #208153;

}

.page-plaque {

    display: block;

    width: 100%;

    max-width: 320px;

    height: auto;

    margin: 0 auto 12px;

}

/*==============================================================
  WORK ORDER PAGE TITLE
==============================================================*/

.login-card h1 {

    margin: 14px 0 0;

    font-size: 2rem;

    font-weight: 700;

    line-height: 1.15;

}


/*==============================================================
  WORK ORDER SUBTITLE
==============================================================*/

.subtitle {

    margin: 10px 0 0;

    font-size: 1rem;

    font-weight: 400;

}

.page-title {

    font-size: 1.5rem !important;

    font-weight: 700 !important;

    margin-top: 12px !important;

    margin-bottom: 20px !important;

}