html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4fbf6;
}

body {
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #14532d, #198754, #22c55e);
    color: white;
    padding: 25px 18px;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.12);
}

.sidebar-header {
    margin-bottom: 30px;
    text-align: center;
}

    .sidebar-header h3 {
        font-size: 22px;
        margin: 0;
        font-weight: bold;
    }

    .sidebar-header p {
        margin-top: 8px;
        font-size: 14px;
        opacity: 0.9;
    }

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .sidebar-menu a {
        text-decoration: none;
        color: white;
        padding: 14px 16px;
        border-radius: 12px;
        font-weight: 600;
        transition: 0.3s;
        background-color: rgba(255, 255, 255, 0.08);
    }

        .sidebar-menu a:hover {
            background-color: rgba(255, 255, 255, 0.22);
            transform: translateX(4px);
        }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #d7e7db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

    .topbar h2 {
        margin: 0;
        color: #166534;
        font-weight: 700;
    }

.content-area {
    padding: 30px;
}

h2, h3, h4 {
    color: #166534;
    font-weight: 700;
}

.card-box {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.table {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

    .table thead {
        background-color: #198754;
        color: white;
    }

.btn-primary,
.btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    border-radius: 10px;
    font-weight: 600;
}

    .btn-primary:hover,
    .btn-success:hover {
        background-color: #157347 !important;
        border-color: #157347 !important;
    }

.btn-danger {
    border-radius: 10px;
    font-weight: 600;
}

.btn-secondary {
    border-radius: 10px;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #cfe6d5;
}

    .form-control:focus, .form-select:focus {
        border-color: #22c55e;
        box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.20);
    }

.alert {
    border-radius: 12px;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #dff7e6, #f4fbf6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 980px;
    display: flex;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.login-image {
    width: 50%;
    min-height: 520px;
    background: url('/images/login.jpg') center center / cover no-repeat;
}

.login-form-area {
    width: 50%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    color: #166534;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #4b5563;
    margin-bottom: 25px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dashboard-card {
    background: white;
    border-left: 8px solid #198754;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

    .dashboard-card h4 {
        margin: 0 0 10px 0;
        color: #166534;
    }

    .dashboard-card p {
        margin: 0;
        font-size: 28px;
        font-weight: bold;
        color: #111827;
    }

@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .login-wrapper {
        flex-direction: column;
    }

    .login-image,
    .login-form-area {
        width: 100%;
    }

    .login-image {
        min-height: 220px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}
