/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

/* Page Titles */
h1, h2, h3 {
    color: #222;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Card Container */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    display: flex;
    justify-content: center; /* center the table */
    width: 100%;
}

.table-container table {
    text-align: left;       /* keep table content aligned left */
    border-collapse: collapse;
    width: auto;            /* shrink table to content */
    min-width: 600px;       /* ensures readability */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
}

th {
    background: #4a90e2;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background: #f5f7fa;
}

/* Buttons */
button, .btn {
    padding: 10px 16px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    margin: 5px;
}

button:hover, .btn:hover {
    background: #357ac9;
}

/* Links */
a {
    text-decoration: none;
    color: #4a90e2;
    font-weight: 500;
}

a:hover {
    color: #2a6db4;
}

/* Form Elements */
form input, 
form select, 
form button {
    display: block;           
    margin: 15px auto;        /* vertical spacing + center */
    padding: 12px;            
    width: 90%;               
    max-width: 300px;         
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

form input:focus,
form select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 4px rgba(74,144,226,0.4);
}

/* Error Message */
.error {
    color: #e74c3c;
    font-weight: 500;
    margin-top: 5px;
}

/* Top bar / Navbar */
.navbar {
    background: #4a90e2;
    padding: 12px 20px;
    color: white;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* Subcounty summary cards inside flex container */
.summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* Individual summary card */
.summary-cards .card {
    flex: 1;
    min-width: 150px;
    text-align: center;
    color: white;
    background: #4a90e2;
}

/* Responsive chart canvas */
canvas {
    max-width: 100%;
    height: 350px;
}
.dashboard-btn {
    color: white;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    min-width: 150px;
    text-align: center;
}

.dashboard-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

