/* ================= GLOBAL ================= */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #eef5ef;
}

/* ================= NAVBAR ================= */
.navbar {
    background: #2e7d32;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 500;
}

.navbar a:hover {
    text-decoration: underline;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}

/* ================= CARD ================= */
.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ================= HEADINGS ================= */
h2 {
    margin-bottom: 20px;
}

/* ================= FORM ================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* FULL WIDTH */
.full-width {
    grid-column: span 2;
}

/* LABEL */
label {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 6px;
}

/* INPUT */
input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: 0.2s;
}

/* INPUT FOCUS */
input:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 5px rgba(76,175,80,0.3);
}

/* ================= BUTTON ================= */
button {
    margin-top: 20px;
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* ================= NAV BUTTONS ================= */
.nav-buttons {
    margin-top: 20px;
}

.nav-buttons a {
    display: inline-block;
    margin: 5px;
    background: #66bb6a;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
}

/* ================= TABLE ================= */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    background: #2e7d32;
    color: white;
    padding: 10px;
    text-align: left;
}

.table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.table tr:nth-child(even) {
    background: #f9f9f9;
}

.table tr:hover {
    background: #e8f5e9;
}

/* ================= BUTTON SMALL ================= */
.btn-small {
    background: #4caf50;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
}

.btn-small.edit {
    background: #ff9800;
}

/* ================= ALERT ================= */
.success {
    background: #d4edda;
    padding: 10px;
    border-radius: 5px;
    color: green;
}

.error {
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    color: red;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    button {
        width: 100%;
    }
}