body {
    background: #f5f7fb;
}

.login-page {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
}

.login-card {
    border-radius: 18px;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #101828;
    color: #fff;
    padding: 20px 15px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.sidebar-brand {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d0d5dd;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 6px;
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #1d2939;
    color: #fff;
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-width: 0;
}

.topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #eaecf0;
    display: flex;
    align-items: center;
    padding: 0 25px;
}

.ward-card .card {
    border-radius: 18px;
    transition: 0.2s ease;
}

.ward-card:hover .card {
    transform: translateY(-4px);
}

.ward-icon {
    width: 70px;
    height: 70px;
    background: #e7f0ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 32px;
}

@media (max-width: 768px) {
    .app-wrapper {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        bottom: auto;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.stat-card,
.quick-card .card {
    border-radius: 18px;
}

.stat-icon,
.quick-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.quick-card .card {
    transition: 0.2s ease;
}

.quick-card:hover .card {
    transform: translateY(-3px);
}

.table thead th {
    font-size: 13px;
    color: #667085;
    font-weight: 600;
}

.neonatal-form {
    max-width: 900px;
    margin: auto;
    background: #fff;
}

.neonatal-form label {
    font-size: 12px;
    font-weight: 700;
    color: #222;
}

.neonatal-form .form-control,
.neonatal-form .form-select {
    border-radius: 0;
    border-color: #222;
}

.neonatal-form .table td,
.neonatal-form .table th {
    border-color: #222;
    padding: 4px;
}

.neonatal-form textarea {
    resize: vertical;
}

.surgical-form {
    max-width: 1100px;
    margin: auto;
    background: #fff;
}

.surgical-form label {
    font-size: 12px;
    font-weight: 700;
    color: #222;
}

.surgical-form .section-title {
    border: 1px solid #222;
    padding: 8px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 0;
}

.surgical-form .form-control,
.surgical-form .form-select {
    border-radius: 0;
    border-color: #222;
}

.surgical-form .table td,
.surgical-form .table th {
    border-color: #222;
    font-size: 13px;
}

.surgical-form textarea {
    resize: vertical;
}

.referral-form {
    max-width: 850px;
    margin: auto;
    background: #fff;
}

.referral-form label {
    font-size: 12px;
    font-weight: 700;
    color: #222;
}

.referral-form .form-control,
.referral-form .form-select {
    border-radius: 0;
    border-color: #222;
}

.referral-form textarea {
    resize: vertical;
}