
*{
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI';
    background:#f4f6f9;
    margin:0;
    color:#333;
}

/* ================= HEADER ================= */

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    background:#007bff;
    color:white;

    padding:15px 20px;

    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.header-title{
    font-size:22px;
    font-weight:bold;
}

.back-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;

    padding:9px 15px;

    background:white;
    color:#007bff;

    border-radius:10px;
    text-decoration:none;

    font-size:14px;
    font-weight:600;

    transition:0.2s;
}

.back-btn:hover{
    background:#e8e8e8;
    transform:translateY(-1px);
}

/* ================= CONTAINER ================= */

.container{
    padding:20px;
}

.card{
    background:white;

    border-radius:16px;

    padding:22px;

    margin-bottom:20px;

    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.card h3{
    margin-top:0;
    margin-bottom:20px;
    font-size:20px;
    color:#333;
}

/* ================= FORM ================= */

.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:16px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    margin-bottom:6px;
    font-size:13px;
    color:#666;
    font-weight:600;
}

.form-group input{
    padding:11px 13px;

    border:1px solid #dcdfe3;
    border-radius:10px;

    font-size:14px;

    transition:0.2s;
}

.form-group input:focus{
    outline:none;

    border-color:#007bff;

    box-shadow:0 0 0 3px rgba(0,123,255,0.15);
}

input{
    padding:10px 12px;

    border:1px solid #ddd;
    border-radius:8px;

    font-size:14px;

    transition:0.2s;
}

input:focus{
    border-color:#007bff;
    outline:none;

    box-shadow:0 0 0 3px rgba(0,123,255,0.15);
}

.form-select-search{
    padding:10px 12px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
    min-width:180px;
    background:white;
}

/* ================= STATUS ================= */

.checkbox-box{
    margin-top:18px;

    background:#f8f9fb;

    border:1px solid #e5e7eb;

    border-radius:12px;

    padding:14px;

    display:flex;
    align-items:center;
    gap:10px;
}

.checkbox-box input{
    width:18px;
    height:18px;
}

/* ================= BUTTON ================= */

.btn-primary{
    margin-top:20px;

    background:#007bff;
    color:white;

    border:none;

    padding:12px 18px;

    border-radius:10px;

    cursor:pointer;

    font-size:14px;
    font-weight:700;

    transition:0.2s;
}

.btn-primary:hover{
    background:#0056b3;
}

.btn-delete{
    background:#dc3545;
}

.btn-delete:hover{
    background:#b02a37;
}

.btn-edit{
    background:#28a745;
}

.btn-edit:hover{
    background:#1f7e34;
}

.btn-cancel{
    display:inline-block;

    margin-top:20px;
    margin-left:8px;

    background:#6c757d;
    color:white;

    padding:10px 14px;

    border-radius:10px;

    text-decoration:none;

    font-size:14px;
    font-weight:700;
}

.btn-cancel:hover{
    background:#545b62;
}

/* ================= TABLE ================= */

.table-wrapper{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;

    border-radius:12px;
}

table th{
    background:#007bff;
    color:white;

    padding:14px 12px;
    font-size:14px;
    text-align:center;
}

table td{
    background:white;

    padding:14px 12px;

    border-bottom:1px solid #edf0f2;

    text-align:center;

    font-size:14px;
}

table tr:hover td{
    background:#f8fbff;
}

/* ================= BADGE ================= */

.badge-pump{
    background:#d4edda;
    color:#155724;

    padding:5px 10px;

    border-radius:20px;

    font-size:12px;
    font-weight:bold;
}

.badge-non{
    background:#e9ecef;
    color:#555;

    padding:5px 10px;

    border-radius:20px;

    font-size:12px;
    font-weight:bold;
}

.badge-active{
    background:#d4edda;
    color:#155724;

    padding:6px 12px;

    border-radius:30px;

    font-size:12px;
    font-weight:700;
}

.badge-inactive{
    background:#ececec;
    color:#666;

    padding:6px 12px;

    border-radius:30px;

    font-size:12px;
    font-weight:700;
}

/* ================= ACTION ================= */

.action-group{
    display:flex;
    justify-content:center;
    gap:8px;
}

.action-btn{
    border:none;

    padding:9px 12px;

    border-radius:9px;

    color:white;

    font-size:13px;
    font-weight:700;

    cursor:pointer;

    transition:0.2s;
}

.action-group a{
    text-decoration:none;
}

.action-group button{
    border:none;

    color:white;

    padding:8px 12px;

    border-radius:8px;

    cursor:pointer;

    font-size:13px;
    font-weight:600;
}

a{
    text-decoration:none;
}


/* ================= PUMP CONFIG ================= */

#pumpConfig{
    margin-top:15px;
}

/* ================= SEARCH ================= */

.search-box{
    display:flex;
    gap:10px;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.search-box input{
    flex:1;
    min-width:250px;
}

.btn-search{
    background:#007bff;
    color:white;
    border:none;
    padding:10px 16px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
}

.btn-search:hover{
    background:#0056b3;
}

.btn-reset{
    background:#6c757d;
    color:white;
    padding:10px 16px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
}

.btn-reset:hover{
    background:#545b62;
}