* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f1e8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-top: 8px solid #1f4d3a;
}

.login-card h1 {
    text-align: center;
    color: #1f4d3a;
    margin-bottom: 10px;
    font-size: 32px;
}

.logout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 420px;
    margin: 180px auto;
    padding: 35px 30px;

    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

    text-align: center;
}

.logout-container h2 {
    margin-bottom: 12px;
    font-size: 28px;
    color: #2f3a2f;
}

.logout-container p {
    margin-bottom: 22px;
    font-size: 16px;
    color: #555;
}

.logout-container a {
    display: inline-block;
    padding: 12px 28px;

    background-color: #7f996c;
    color: white;
    text-decoration: none;

    border-radius: 10px;
    font-weight: bold;
}

.logout-container a:hover {
    background-color: #6d855b;
}

.subtitle {
    text-align: center;
    color: #8c7a4f;
    margin-bottom: 25px;
    font-size: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #1f4d3a;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #d8cfb8;
    border-radius: 10px;
    font-size: 15px;
    background-color: #fcfaf5;
}

input:focus {
    outline: none;
    border-color: #c8a951;
    box-shadow: 0 0 6px rgba(200, 169, 81, 0.35);
}

button {
    width: 100%;
    padding: 13px;
    background-color: #1f4d3a;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #16382b;
}

.message {
    text-align: center;
    margin-top: 18px;
    color: #8c7a4f;
    font-weight: bold;
}


:root {
    --primary-green: #3f5f45;
    --secondary-green: #5f7d4d;
    --light-green: #dfe8d8;
    --olive: #7a8450;

    --burnt-brown: #3f8951;
    --deep-brown: #103b1c;
    --soft-brown: #49b841;
    --beige: #f7f1e8;
    --card-bg: #fffdf9;

    --text-dark: #2f241c;
    --text-muted: #6d6258;
    --white: #ffffff;
    --border: #eadfce;
    --shadow: 0 10px 30px rgba(80, 55, 30, 0.10);

    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8f4ee, #eef3e8);
    color: var(--text-dark);
    min-height: 100vh;
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-green), var(--deep-brown));
    color: var(--white);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.brand {
    margin-bottom: 28px;
}

.brand h2 {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 6px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-links a {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: 0.3s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}

.sidebar-footer {
    margin-top: 30px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

/* Main */
.main-content {
    flex: 1;
    padding: 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar h1 {
    font-size: 2rem;
    color: var(--deep-brown);
}

.topbar p {
    color: var(--text-muted);
    margin-top: 6px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 18px;
    min-width: 220px;
    outline: none;
    color: var(--text-dark);
}

.profile-chip {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

/* Cards */
.grid {
    display: grid;
    gap: 20px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 26px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-card .hint {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--soft-brown);
}

/* Layout rows */
.content-grid {
    grid-template-columns: 2fr 1fr;
    margin-bottom: 24px;
}

.secondary-grid {
    grid-template-columns: 1fr 1fr;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 16px;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
}

table th {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

table td {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.badge-success {
    background: #e5f3e6;
    color: #2f6b3b;
}

.badge-warning {
    background: #fff1db;
    color: #9a6519;
}

.badge-danger {
    background: #fde8e4;
    color: #a24432;
}

/* Product / quick action blocks */
.list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

.list-item h4 {
    color: var(--text-dark);
    margin-bottom: 6px;
}

.list-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--burnt-brown), var(--soft-brown));
    color: var(--white);
}

.btn-light {
    background: #f3ece2;
    color: var(--deep-brown);
}

/* Mini cards */
.mini-card {
    background: linear-gradient(135deg, #fffdf9, #f2ece2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
}

.mini-card h4 {
    margin-bottom: 8px;
    color: var(--primary-green);
}

.mini-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

body.dark-mode {
    --primary-green: #6fa67a;
    --secondary-green: #4f7f5c;
    --light-green: #2a3a2f;

    --burnt-brown: #c58b5a;
    --deep-brown: #e4c6a7;
    --soft-brown: #b07a4d;

    --beige: #1f1f1f;
    --card-bg: #2a2a2a;

    --text-dark: #f5f5f5;
    --text-muted: #b8b8b8;

    --border: #3a3a3a;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}


body.dark-mode {
    background: linear-gradient(135deg, #1a1a1a, #232323);
}


body.dark-mode .search-box,
body.dark-mode .profile-chip,
body.dark-mode .list-item,
body.dark-mode .mini-card {
    background: #2a2a2a;
    color: #fff;
}

body.dark-mode table td,
body.dark-mode table th {
    border-color: #3a3a3a;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-grid,
    .secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 18px;
    }

    .topbar h1 {
        font-size: 1.5rem;
    }

    .search-box {
        min-width: 100%;
    }

    .topbar-actions {
        width: 100%;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    padding: 15px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s ease;
}

.navbar a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}
