body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f8fa;
    color: #232323;
}
.header {
    background: #173553;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 1px;
}
.logout-btn, .back-btn {
    color: #fff;
    background: #2563eb;
    border: none;
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 1em;
    text-decoration: none;
    transition: background .2s;
}
.logout-btn:hover, .back-btn:hover { background: #173553; }
.contacts-btn {
    color: #fff;
    background: #00bb87;
    padding: 7px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.01em;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.contacts-btn:hover { background: #00a076; color: #fff; }
.container {
    max-width: 900px;
    margin: 24px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(24, 44, 89, 0.09);
    padding: 24px;
}
h2, h3 {
    margin-top: 0;
}
.primary-btn {
    display: inline-block;
    background: #00bb87;
    color: #fff;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s;
}
.primary-btn:hover { background: #00a076; }
.check-form label, .check-form select, .check-form textarea, .check-form input[type="file"] {
    display: block;
    width: 100%;
    margin: 10px 0;
}
.section-title {
    margin-top: 20px;
    font-weight: bold;
    color: #173553;
    font-size: 1.1em;
}
.check-form textarea {
    min-height: 60px;
    border-radius: 7px;
    border: 1px solid #ddd;
    padding: 8px;
    resize: vertical;
}
.success { color: #008250; margin-bottom: 1em; }
.error { color: #d00; margin-top: 1em; }

/* Checklist & dashboard improvements */
ul.check-list {
    padding: 0;
    margin: 24px 0 0 0;
    list-style: none;
}
ul.check-list li {
    background: #f6f8fa;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 1.09em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.17s;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
ul.check-list li:hover {
    background: #e6eef7;
}
.badge {
    color: #fff;
    background: #ff994c;
    padding: 4px 11px;
    border-radius: 7px;
    font-size: 0.97em;
    margin-left: 10px;
    font-weight: 500;
}

/* Contacts info page (cards) */
.contacts-list {
    margin-top: 28px;
    margin-bottom: 12px;
    padding: 0;
}
.contacts-item {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 18px 14px 15px 14px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(23,53,83,0.05);
}
.contacts-title {
    font-weight: bold;
    color: #173553;
    margin-bottom: 7px;
    font-size: 1.15em;
    letter-spacing: 0.03em;
}
.contacts-info {
    font-size: 1.07em;
    color: #202325;
    white-space: pre-line;
    line-height: 1.5;
}

.login-bg { background: #173553; }
.login-container {
    max-width: 360px;
    margin: 60px auto;
    background: #fff;
    border-radius: 18px;
    padding: 34px 30px 22px 30px;
    box-shadow: 0 6px 18px rgba(24,44,89,0.15);
}
.login-form input {
    width: 100%;
    margin: 12px 0 14px 0;
    padding: 10px 1px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1em;
}
.login-form button {
    background: #2563eb;
    color: #fff;
    width: 100%;
    border: none;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 1.08em;
    cursor: pointer;
}
.login-hint {
    margin-top: 22px;
    font-size: .96em;
    color: #767676;
    background: #f6f8fa;
    border-radius: 9px;
    padding: 8px 10px;
}
.admin-table, .detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}
.admin-table th, .admin-table td,
.detail-table th, .detail-table td {
    padding: 8px 7px;
    border: 1px solid #f2f2f2;
    font-size: 1em;
}

/* Responsive tweaks for smaller screens */
@media (max-width: 600px) {
    .container, .login-container { max-width: 98vw; padding: 7vw 2vw; }
    .admin-table th, .admin-table td, .detail-table th, .detail-table td { font-size: .95em; padding: 6px 3px; }
}

@media (max-width: 700px) {
    .container {
        max-width: 98vw !important;
        padding: 8vw 2vw 4vw 2vw !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-top: 12px !important;
        margin-bottom: 24px !important;
    }
    .section-title, h2, h3, label {
        text-align: center !important;
    }
    h2, h3 {
        font-size: 1.22em !important;
        margin-top: 18px !important;
        margin-bottom: 16px !important;
        letter-spacing: 0.5px;
    }
    .primary-btn, .check-form button {
        width: 100% !important;
        font-size: 1.18em !important;
        margin: 22px 0 18px 0 !important;
        padding: 18px 0 !important;
        border-radius: 13px !important;
        letter-spacing: 0.03em;
    }
    ul.check-list {
        margin: 0;
        padding: 0;
    }
    ul.check-list li {
        padding: 17px 14px !important;
        margin-bottom: 15px !important;
        font-size: 1.15em !important;
        border-radius: 10px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f6f8fa !important;
        box-shadow: 0 1px 6px rgba(23,53,83,0.07);
        line-height: 1.3;
    }
    .contacts-list {
        margin-top: 24px;
        margin-bottom: 0;
    }
    .contacts-item {
        padding: 19px 10px 15px 10px;
        margin-bottom: 14px;
        font-size: 1.09em;
    }
    .contacts-title {
        font-size: 1.13em;
        margin-bottom: 6px;
    }
    .contacts-info {
        font-size: 1em;
    }
    .badge {
        padding: 5px 12px !important;
        font-size: 0.98em !important;
        border-radius: 8px !important;
    }
}

/* Tickboxes for coolant/lights */
.tickbox-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 10px 0;
}
.tickbox {
  display: flex;
  align-items: center;
  font-size: 1.19em;
  padding: 8px 16px;
  border-radius: 10px;
  border: 2px solid #bbb;
  cursor: pointer;
  background: #f8f8f8;
  transition: border 0.18s, background 0.18s;
}
.tickbox input[type="radio"] {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  accent-color: #00bb87;
}
.tickbox input[type="radio"]:checked + span { font-weight: bold; color: #2563eb; }
@media (max-width: 1000px) {
    .check-form label,
    .check-form select,
    .check-form textarea,
    .check-form input[type="file"] {
        font-size: 1.15em !important;
        margin: 18px auto !important;
        display: block;
        width: 100% !important;
        text-align: left;
    }

    .check-form label {
        font-weight: 600;
        margin-bottom: 10px;
        margin-top: 22px;
        color: #173553;
    }

    .check-form input[type="file"] {
        padding: 26px 0 !important;
        background: #f3f8fa;
        border-radius: 12px;
        border: 2.5px dashed #85a6d6;
        color: #173553;
        font-size: 1.16em !important;
        cursor: pointer;
        margin-bottom: 20px !important;
        margin-top: 2px !important;
        min-height: 64px;
    }

    .check-form input[type="file"]::-webkit-file-upload-button {
        font-size: 1.1em;
        padding: 9px 22px;
        background: #2563eb;
        color: #fff;
        border-radius: 7px;
        border: none;
        margin-right: 12px;
        cursor: pointer;
    }

    .section-title {
        margin-top: 34px !important;
        font-size: 1.22em !important;
        text-align: center !important;
        letter-spacing: 0.5px;
    }

    #dipstick-wrapper {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto 20px auto;
    }
    #dipstick {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 90vw !important;
        max-width: 350px !important;
        height: auto !important;
    }
    #dipstick-selected-label {
        text-align: center;
        width: 100%;
        display: block;
        margin-top: 12px;
        font-size: 1.13em;
    }

    .swatch {
        width: 54px !important;
        height: 54px !important;
        margin: 0 9px;
    }
}
@media (max-width: 900px) {
    .check-form label,
    .check-form select,
    .check-form textarea {
        font-size: 1.13em !important;
        margin: 14px auto 7px auto !important;
        display: block;
        width: 99% !important;
        text-align: left;
    }
    .check-form input[type="file"] {
        padding: 12px 0 !important;
        background: #f3f8fa;
        border-radius: 9px;
        border: 2px dashed #85a6d6;
        color: #173553;
        font-size: 1.09em !important;
        margin-bottom: 17px !important;
        margin-top: 3px !important;
        min-height: 46px;
        width: 98% !important;
        max-width: 340px;
        box-sizing: border-box;
    }
    .check-form input[type="file"]::-webkit-file-upload-button {
        font-size: 1em;
        padding: 7px 16px;
        background: #2563eb;
        color: #fff;
        border-radius: 7px;
        border: none;
        margin-right: 9px;
        cursor: pointer;
    }
    .section-title {
        margin-top: 30px !important;
        font-size: 1.17em !important;
        text-align: center !important;
    }
    #dipstick-wrapper {
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin: 0 auto 18px auto;
    }
    #dipstick {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 80vw !important;
        min-width: 100px !important;
        max-width: 100px !important;
        height: auto !important;
    }
    #dipstick-selected-label {
        text-align: center;
        width: 100%;
        display: block;
        margin-top: 10px;
        font-size: 1.10em;
    }
    .swatch {
        width: 42px !important;
        height: 42px !important;
        margin: 0 6px;
    }
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24,44,89,0.08);
    border-radius: 12px;
    overflow: hidden;
}
.admin-table th, .admin-table td {
    padding: 12px 9px;
    border: 1px solid #f2f2f2;
    font-size: 1em;
    text-align: left;
}
.admin-table th {
    background: #f3f6fb;
    color: #173553;
    font-weight: 600;
}
.admin-table tr:nth-child(even) {
    background: #fafbfc;
}
.admin-table input[type="password"] {
    padding: 6px 9px;
    border-radius: 7px;
    border: 1px solid #bbb;
    font-size: 1em;
}
.admin-table button[type="submit"] {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 13px;
    border-radius: 7px;
    font-size: 1em;
    cursor: pointer;
    margin-left: 6px;
    transition: background .18s;
}
.admin-table button[type="submit"]:hover {
    background: #173553;
}
.admin-table button[type="submit"][name="delete_user"] {
    background: #e74c3c;
    margin-left: 0;
}
.admin-table button[type="submit"][name="delete_user"]:hover {
    background: #c0392b;
}
.add-driver-form {
    padding: 22px 18px 18px 18px;
    margin-bottom: 30px;
    max-width: 900px;
}

.add-driver-form .form-row {
    margin-bottom: 18px;
}

.add-driver-form input[type="text"],
.add-driver-form input[type="password"],
.add-driver-form select.styled-select {
    width: 100%;
    padding: 12px 13px;
    border-radius: 8px;
    border: 1.5px solid #b8c7db;
    font-size: 1.08em;
    margin-top: 2px;
    background: #fff;
    transition: border 0.18s;
}

.add-driver-form input:focus,
.add-driver-form select.styled-select:focus {
    border: 1.5px solid #2563eb;
    outline: none;
}

.add-driver-form select.styled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="gray" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center/22px 22px;
    cursor: pointer;
}
.login-bg {
    background: #173553;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-wrapper {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    background: #fff;
    padding: 40px 32px 30px 32px;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(24,44,89,0.14);
    max-width: 370px;
    width: 98vw;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.login-logo {
    text-align: center;
    margin-bottom: 10px;
}
.logo-text {
    font-weight: 800;
    font-size: 2em;
    letter-spacing: 1px;
    color: #2563eb;
}
.login-card h2 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    color: #173553;
}
.login-card label {
    font-size: 1.09em;
    margin-bottom: 4px;
    color: #333;
    font-weight: 500;
}
.login-card input[type="text"],
.login-card input[type="password"] {
    padding: 12px 12px;
    border-radius: 9px;
    border: 1.5px solid #e4e7ec;
    font-size: 1.08em;
    margin-bottom: 6px;
    transition: border-color .2s;
    outline: none;
}
.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus {
    border-color: #2563eb;
}
.remember-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.remember-row input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #2563eb;
    width: 18px;
    height: 18px;
}
.remember-row label {
    margin: 0;
    font-size: 1.09em;
    font-weight: 500;
    cursor: pointer;
    color: #444;
}
.login-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px 0;
    font-size: 1.18em;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background .17s;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}
.login-btn:hover {
    background: #173553;
}
.login-support {
    margin-top: 18px;
    padding: 13px 13px 11px 13px;
    background: #f6f8fa;
    border-radius: 11px;
    font-size: 1.03em;
    color: #747b88;
    font-weight: 500;
    text-align: left;
}
.login-support strong {
    color: #5c5e64;
    font-size: 1.08em;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

/* Responsive tweaks */
@media (max-width: 500px) {
    .login-card {
        padding: 22px 7vw 18px 7vw;
        border-radius: 0;
        box-shadow: none;
    }
    .login-logo .logo-text { font-size: 1.45em; }
}




