/* =======================================
   Root Variables
======================================= */
:root {
    --primary: #0B5ED7;
    --bg: #f6f8fb;
    --text: #1f2937;
}

/* =======================================
   Global Reset
======================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, system-ui, Roboto, Arial, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* =======================================
   Navigation
======================================= */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    padding: 12px 20px;
    color: #fff;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav strong {
    font-size: 1.2rem;
}

/* =======================================
   Containers
======================================= */
.container {
    max-width: 1000px;
    margin: 16px auto;
    padding: 0 12px;
}

/* =======================================
   Cards
======================================= */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.card h2,
.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

/* =======================================
   Login Box
======================================= */
.login-box {
    width: 420px;
    margin: 80px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
}

/* =======================================
   Form Fields
======================================= */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

input[type="number"],
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

.login-box input {
    margin: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* =======================================
   Buttons
======================================= */
.btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    margin-right: 8px;
}

.btn:hover {
    background-color: #094080;
}

/* =======================================
   Errors / Notifications
======================================= */
.error {
    color: #b91c1c;
}

/* =======================================
   Search Dropdown
======================================= */
#ac_list {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 6px;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* =======================================
   Pending Readings
======================================= */
#pending {
    padding: 10px;
    font-size: 0.95rem;
    background: #f0f4ff;
    border-radius: 6px;
    min-height: 50px;
}

/* =======================================
   Responsive Adjustments
======================================= */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    #ac_list {
        max-height: 150px;
    }
}
