:root {
    --primary-color: #03bb65;
    --secondary-color: #7fcd83;
    --accent-color: #edf8b1;
    --text-color: #253238;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f7ff;
    color: var(--text-color);
    line-height: 1.6;
}

.puskesmas-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-content {
    position: relative;
    z-index: 2;
}

.puskesmas-logo {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.puskesmas-logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.login-btn-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* =========================
   LOGIN BUTTON
========================= */

.login-btn {
    position: absolute;
    top: 5px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    color: #03bb65;
    /* border: 2px solid rgba(255, 255, 255, 0.8); */
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    z-index: 10;
}

.login-btn:hover {
    background: #03bb65;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Style untuk dropdown login */
.login-btn-container .dropdown-menu {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-btn-container .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.login-btn-container .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2c7873;
}

.login-btn-container .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Style untuk modal login */
#loginRoleModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#loginRoleModal .modal-header {
    background: linear-gradient(135deg, #2c7873 0%, #6fb3b8 100%);
    color: white;
}

#loginRoleModal .btn-puskesmas,
#loginRoleModal .btn-outline-puskesmas {
    padding: 1.5rem 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#loginRoleModal .btn-puskesmas:hover,
#loginRoleModal .btn-outline-puskesmas:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.welcome-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.features {
    padding: 60px 40px 80px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0b2b4a;
}

.section-title p {
    color: #5f7d9c;
    font-size: 18px;
    margin-top: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    /* grid-template-columns: repeat(4, 1fr); */
    gap: 30px;
    margin-bottom: 29px;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(11, 43, 74, 0.06);
    border-color: #cbdae7;
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
}

.feature-card .icon.blue {
    background: #0b2b4a;
}

.feature-card .icon.green {
    background: #1d7a4a;
}

.feature-card .icon.purple {
    background: #6a3d7a;
}

.feature-card .icon.orange {
    background: #c97d2b;
}

.feature-card .icon.teal {
    background: #1a7a7a;
}

.feature-card .icon.red {
    background: #b03a3a;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0b2b4a;
}

.feature-card p {
    font-size: 14px;
    color: #5f7d9c;
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-card .btn {
    margin-top: auto !important;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.btn-puskesmas {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(44, 127, 184, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-puskesmas:hover {
    background: #03bb65;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(44, 127, 184, 0.4);
    color: white;
}

.info-section {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-radius: 20px 20px 0 0;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    border-radius: 0 0 15px 15px;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 127, 184, 0.25);
}

/* Login Modal Specific Styles */
.login-modal .modal-dialog {
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    background: white;
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.forgot-password {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Quick Login Section */
.quick-login-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.quick-login-section h3 {
    margin-bottom: 1rem;
}

.quick-login-section p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .puskesmas-header h1 {
        font-size: 1.8rem;
    }

    .puskesmas-header p {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    /* .login-btn-container {
        position: static;
        text-align: center;
        margin-top: 1rem;
    } */
    .login-btn {
        top: 14px;
        right: 14px;
        padding: 7px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .puskesmas-header {
        padding: 1.5rem 0;
    }

    .puskesmas-logo {
        width: 60px;
        height: 60px;
    }

    .puskesmas-logo i {
        font-size: 1.8rem;
    }

    .welcome-container {
        margin: 1rem auto;
    }

    .btn-puskesmas {
        width: 100%;
        margin-bottom: 1rem;
    }

    .login-btn {
        top: 2px;
        right: 2px;
        padding: 2px 5px;
        font-size: 8px;
        border-radius: 4px;
    }
}