/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-body: #f0fdf4;
    --primary: #10b981;
    --primary-dark: #047857;
    --cyan: #06b6d4;
    --indigo: #6366f1;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 10% 10%, rgba(16, 185, 129, 0.12) 0px, transparent 40%),
        radial-gradient(at 90% 90%, rgba(6, 182, 212, 0.12) 0px, transparent 40%);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Layout Vibrant */
.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 2px solid #d1fae5;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 8px 0 25px rgba(16, 185, 129, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 2px dashed #a7f3d0;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.35);
}

.brand-text h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
}

.brand-text span {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 0.8px;
}

.menu-list {
    list-style: none;
    margin-top: 28px;
}

.menu-item {
    margin-bottom: 10px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.menu-link:hover, .menu-link.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    transform: translateX(4px);
}

/* Main Area */
.main-wrapper {
    flex: 1;
    padding: 36px;
    overflow-y: auto;
}

/* Header Vivid Medical Banner */
.top-header {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
    border-radius: 24px;
    padding: 28px 36px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.3);
    margin-bottom: 32px;
}

.header-info h2 {
    font-size: 26px;
    font-weight: 800;
}

.header-info p {
    font-size: 14px;
    opacity: 0.95;
    margin-top: 4px;
}

.date-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}

/* Stat Cards Full Warna */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 4px;
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.bg-emerald { background: #d1fae5; color: #059669; }
.bg-cyan    { background: #cff4fc; color: #0891b2; }
.bg-rose    { background: #ffe4e6; color: #e11d48; }

/* Grid Main Layout */
.content-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
}

@media (max-width: 1100px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; }
    .content-grid { grid-template-columns: 1fr; }
}

.card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* Energetic Action Button */
.btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(6, 182, 212, 0.45);
}

/* Search Box */
.search-box {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #a7f3d0;
    border-radius: 14px;
    font-size: 14px;
    outline: none;
    margin-bottom: 20px;
    background: #f0fdf4;
}

.search-box:focus {
    border-color: var(--cyan);
    background: white;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

/* Table Design */
.table-responsive {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
    padding: 16px 18px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
}

tr:hover td {
    background: #f0fdf4;
}

/* Badges Status Stok */
.badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-kat { background: #e0f2fe; color: #0284c7; }
.badge-stok-aman { background: #d1fae5; color: #047857; }
.badge-stok-kritis { background: #ffe4e6; color: #be123c; }