/* ——————— BASIC STYLING ——————— */
h2 {
    text-align: center;
    font-family: "futura-pt-bold", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 3em;
    display: block;
    text-align: center;
    width: 100%;
}

h3 {
    text-align: center;
    font-family: "futura-pt-bold", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 2em;
    display: block;
    text-align: center;
    width: 100%;
}

h4 {
    text-align: center;
    font-family: "futura-pt-bold", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.25em;
    display: block;
    text-align: center;
    width: 100%;
}

p {
    font-family: "futura-pt", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1em;
    line-height: 1em;
}

a {
    color: #F99F20;
}

.hidden {
    display: none;
}

.logo {
    width: auto;
    height: 1.75em;
    display: block;
    margin: 0 auto;
}

.form {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75em;
    gap: 1em;
}

.form label {
    margin-top:     0.5em;
    margin-bottom:  0.25em;
    font-weight:    bold;
    font-family:    "futura-pt-bold", sans-serif;
    font-weight:    700;
    font-style:     normal;
    font-size:      1em;
    white-space:    nowrap;
}

.form input {
    padding:        0.25em;
    border:         1px solid #ccc;
    border-radius:  6px;
    font-family:    "futura-pt", sans-serif;
    font-weight:    300;
    font-style:     normal;
    font-size:      1em;
}


/* ——————— STYLING FOR BUTTONS ——————— */
.truck-button {
    all:                unset;
    display:            block;
    padding:            0.5em 1em;

    background-color:   #FFFFFF;
    color:              #F99F20;
    border:             3px solid;
    border-color:       #F99F20;
    border-radius:      6px;

    font-weight:        bold;
    font-family:        "futura-pt-bold", sans-serif;
    font-weight:        700;
    font-style:         normal;
    font-size:          1em;

    appearance:         none;
    cursor:             pointer;
    box-shadow:         none;
    outline:            none;

    transition: background-color 0.2s, transform 0.1s;
}

.truck-button:hover {
    background-color:   #EEEEEE;
}

.truck-button:disabled {
    background-color:   #EEEEEE;
    cursor:             default;
}

.truck-button-invert {
    all:                unset;
    display:            block;
    padding:            0.5em 1em;

    background-color:   #F99F20;
    color:              #FFFFFF;
    border:             3px solid;
    border-color:       #F99F20;
    border-radius:      6px;

    font-weight:        bold;
    font-family:        "futura-pt-bold", sans-serif;
    font-weight:        700;
    font-style:         normal;
    font-size:          1em;

    appearance:         none;
    cursor:             pointer;
    box-shadow:         none;
    outline:            none;

    transition: background-color 0.2s, transform 0.1s;
}

.truck-button-invert:hover {
    background-color:  #ac7323;
}

.button-group {
    display:            flex;
    justify-content:    center;
    align-items:        center;
    gap:                1em;
}


/* ——————— STYLING FOR ACCORDIAN INFOBOX ——————— */
.accordion-conatiner {
    border-radius: 10px;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-item:first-of-type {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.accordion-item:last-of-type {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.accordion-header {
    width: 100%;
    padding: 12px;
    text-align: left;
    font-family: "futura-pt-bold", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1em;
    background-color: #f2f2f2;
    border: none;
    cursor: pointer;
    position: relative;
}

.accordion-icon {
    float: right;
    font-weight: bold;
}

.accordion-content {
    display: none;
    padding: 12px;
    background-color: #fff;
}



/* ——————— STYLING "LIVE" INDICATOR ——————— */
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

.live-indicator {
    color:        #FF0000;
    font-weight:    bold;
    font-family:    "futura-pt-bold", sans-serif;
    font-weight:    700;
    font-style:     normal;
    font-size:      1em;
    margin-bottom:  1em;
    animation:      blink 2s infinite;
}


/* ——————— STYLING FOR MAIN DASHBOARD CONTAINER ——————— */
.dashboard-main-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2em;
    flex-wrap: wrap; /* so it stacks on smaller screens */
}

/* Center the form if the truck list isn't showing */
.dashboard-main-container.center-form {
    display: block;
    justify-content: center;
}


/* ——————— STYLING FOR THE LOGIN FORM ——————— */
#login-form {
    flex: 1;
    max-width: 500px;
    margin: 0 auto; 
    padding: 1em;
}

@media (max-width: 600px) {
    #login-form {
        padding: 0.5em;
        max-width: 100%;
    }
}


/* ——————— STYLING FOR DASHBOARD TRUCK INFO & LOCTIMES ——————— */
.dashboard-truck-list {
    flex: 2;
    max-width: none;
    padding: 1em;
}

.dashboard-truck-entry {
    margin-bottom: 0;
}

.truck-label {
    font-weight: bold;
    font-family: 'futura-pt', sans-serif;
}

.truck-value {
    font-family: 'futura-pt', sans-serif;
    color: #333;
}
