﻿/* ========== Base ========== */
body {
    font-family: 'Quicksand', Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #222;
}

a {
    color: #cc0000;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

img {
    max-width: 100%;
    height: auto;
}

/* ========== Container ========== */
.container {
    max-width: 960px;
    margin: auto;
    margin-bottom: 128px;
    padding: 24px;
    background: #fff;
    box-sizing: border-box;
}

/* ========== Header ========== */
.logo {
    text-align: center;
    margin-bottom: 16px;
}

    .logo img {
        max-width: 200px;
    }

.header h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #cc0000;
    margin: 0;
}

.header h3 {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #444;
    margin-top: 8px;
}

/* ========== Input Fields ========== */
input.textbox {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

    input.textbox:focus {
        border-color: #cc0000;
        outline: none;
    }

/* ========== Section Cards ========== */
.content {
    /*    display: flex;
    flex-direction: column;*/
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 16px;
    margin-bottom: 16px;
}

.section {
    display: flex;
    flex-direction: column;
    padding-top: .75rem;
    padding-bottom: .5rem;
}


.section,
.status-message {
    border-top: 1px solid #eef0f3;
}

    .section:first-child {
        border-top: 0;
    }

.label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.job-status.label, .proposed-date.label {
    font-size: 14px;
    align-content: center;
    margin-bottom: 0px;
}

.value {
    padding-left: 2rem;
    align-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

/* Status Pill */
.job-status.value, .proposed-date.value {
    display: flex;
    width: fit-content;
    padding: 6px 6px 6px 6px;
    background-color: #cc0000;
    color: #fff;
    border-radius: .5rem;
    font-weight: bold;
    align-content: center;
    text-transform: uppercase;
    font-size: 13px;
}

.proposed-date.value {
    margin-left: 2rem;
    margin-top: .5rem;
}

.live-etas {
    padding-top: .25rem;
    margin-left: 2rem;
    font-size: 12px;
    font-style:italic;
    color: red;
}

/*@media(min-width: 500px) {
    .value {
        margin-left: .5rem;
    }
}*/

/* ========== Fixed Action Buttons ========== */
.buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.btn {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .btn:hover {
        transform: scale(1.02);
        opacity: 0.95;
    }

.btn-accept {
    background-color: #cc0000; /* Deep red */
    color: white;
}

.btn-decline {
    background-color: #333; /* Dark grey for secondary */
    color: white;
}

/* ========== Status Message ========== */
.status-message {
    display: none;
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #fbeaea;
    color: #d60000;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

    .status-message.progress {
        display: flex;
        justify-content: flex-start;
        background-color: lightgray;
        color: green;
    }

    .status-message .icon {
        margin-right: .35rem;
        font-size: 1.1em;
        line-height: 1;
    }

    .status-message.visible {
        display: block;
    }

/* ========== Spinner ========== */
.spinner {
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    font-size: 14px;
    color: #444;
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

    .footer a {
        color: #cc0000;
    }

/* ========== Responsive Layout ========== */
@media (min-width: 600px) {
    .buttons {
        position: static;
        flex-direction: row-reverse;
        justify-content: center;
        gap: 12px;
        padding: 0;
        box-shadow: none;
        background: none;
        margin-top: 20px;
    }

    .btn {
        width: auto;
        min-width: 140px;
    }

    .container {
        padding: 32px;
    }

    input.textbox {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}
