/* --- Global & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-blue: #0f539d; 
    --dark-blue: #0f539d;
    --light-blue: #EBF5FF;
    --light-gray: #f4f7f9;
    --text-color: #333;
    --card-bg: #fff;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: 0.3s ease;
    --footer-height: 70px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    padding: 50px;
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(var(--footer-height) + 20px);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color var(--transition);
}

a:hover {
    color: var(--dark-blue);
}

.btn {
    display: block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    background-color: var(--primary-blue);
    color: #fff;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition);
}

.btn:hover {
    background-color: var(--dark-blue);
}

/* --- App Header & Navigation --- */
.app-header {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-logo {
    font-size: 24px;
    font-weight: 700;
}

.app-name {
    font-size: 18px;
    margin-left: 10px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
}

.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #777;
    transition: color var(--transition);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    transition: all var(--transition);
}

.nav-item.active {
    color: var(--primary-blue);
}

.nav-item.active i {
    background-color: var(--primary-blue);
    color: #fff;
}

/* --- Card & Section Styling --- */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 15px;
    transition: transform var(--transition);
}

.card:hover {
    transform: translateY(-3px);
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
}

.form-group-with-icon {
    position: relative;
    margin-bottom: 20px;
}

.form-group-with-icon label {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.form-group-with-icon input,
.form-group-with-icon select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    color: #555;
    background-color: #f8f9fa;
    appearance: none;
}

.form-group-with-icon input:focus,
.form-group-with-icon select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group-with-icon .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(15px);
    color: #999;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.button-group .btn {
    flex: 1;
}

/* --- Specific Page Components --- */
/* Home Page */
.welcome-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.avatar-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 40px;
    color: var(--primary-blue);
}

.welcome-text {
    flex: 1;
}

.welcome-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
}

.welcome-subtitle {
    font-size: 0.6em;
    font-weight: 500;
    color: #555;
    margin: 5px 0 10px 0;
}

.btn-login {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 50px;
}

.menu-section-card {
    padding: 20px 10px;
    box-shadow: none;
}



.menu-icon-wrapper i {
    font-size: 24px;
    color: var(--primary-blue);
}


.avatar-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 40px;
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tetap 3 kolom karena ruangnya cukup */
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .welcome-container .welcome-text {
        padding-left: 30px;
        /* Menyesuaikan padding untuk layar yang lebih kecil */
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .menu-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .menu-icon-wrapper i {
        font-size: 20px;
    }

    .menu-card span {
        font-size: 10px;
    }
}

.section-title {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.slider-container {
    overflow: hidden;
    padding: 15px 0;
}

.slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.news-card {
    min-width: 85%;
    scroll-snap-align: start;
    padding: 0;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-content h4 {
    font-size: 1em;
    margin: 0 0 5px 0;
}

.news-content p {
    font-size: 0.8em;
    margin: 0;
    color: #777;
    white-space: normal;
}

.call-to-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 20px;
    margin-top: 25px;
}

.cta-content {
    flex: 1;
}

.cta-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

.cta-subtitle {
    font-size: 0.9em;
    margin: 5px 0 0 0;
}

.cta-icon {
    font-size: 40px;
    margin-left: 20px;
}

/* Notifications Page */
.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.list-item:hover {
    background-color: var(--light-gray);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
}

.list-item-icon-wrapper i {
    font-size: 20px;
    color: var(--primary-blue);
}

.list-item-content {
    flex: 1;
}

.list-item-content h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.list-item-content p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.list-item-icon-wrapper i.fa-circle-check {
    color: #28a745;
}

.list-item-icon-wrapper i.fa-wallet {
    color: #ffc107;
}

.list-item-icon-wrapper i.fa-tags {
    color: #17a2b8;
}

.list-item-icon-wrapper i.fa-arrow-down {
    color: #dc3545;
}

/* Profile Page */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-blue);
}

/* --- Gaya Khusus untuk Registrasi Bertahap --- */

/* Gaya untuk progress bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e9ecef;
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
}

.progress-info {
    font-weight: 500;
}

/* Gaya untuk form group dengan ikon dan label */
.form-section h3 {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group-with-icon {
    position: relative;
    margin-bottom: 20px;
}

.form-group-with-icon label {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.form-group-with-icon input,
.form-group-with-icon select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    color: #555;
    background-color: #f8f9fa;
    appearance: none;
    /* Menghilangkan panah default pada select */
}

.form-group-with-icon input:focus,
.form-group-with-icon select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group-with-icon .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(15px);
    /* Menyesuaikan posisi ikon agar di tengah */
    color: #999;
}

/* Gaya untuk tombol navigasi */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.button-group .btn {
    flex: 1;
}

.button-group .btn-secondary {
    background-color: #6c757d;
}

.button-group .btn-secondary:hover {
    background-color: #5a6268;
}

/* --- Tambahan Gaya untuk Halaman Lupa Password --- */

/* Menyesuaikan jarak pada halaman lupa password jika diperlukan */
.login-form-card {
    max-width: 400px;
    /* Batasi lebar card agar lebih rapi di layar lebar */
    margin: 40px auto;
    /* Tambahkan margin agar berada di tengah */
}

/* Menyesuaikan tombol jika perlu */
.btn-reset-password {
    margin-top: 20px;
}


/* Login Page */
.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 0.9em;
    color: #777;
    margin: 0;
}

.login-form-card {
    padding: 30px;
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.forgot-password a {
    color: var(--dark-blue);
    font-weight: 500;
}

.register-link-container {
    text-align: center;
    margin-top: 25px;
}

/* Confirmation Page */
.confirmation-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    padding: 20px;
    background-color: var(--primary-blue);
    color: #fff;
}

.app-header.confirmation-page {
    background-color: transparent;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.confirmation-icon {
    font-size: 120px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border: 3px solid #fff;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.confirmation-text h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 10px;
}

.confirmation-text p {
    font-size: 1em;
    margin-bottom: 40px;
    max-width: 300px;
}

.btn-block-lg {
    width: 100%;
    max-width: 300px;
    padding: 15px 25px;
    font-size: 1em;
    font-weight: 700;
    background-color: #fff;
    color: var(--primary-blue);
    border-radius: 50px;
}

/* --- Blog Specific --- */
.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: var(--text-color);
}

.blog-card-content p {
    margin: 0;
    color: #777;
    font-size: 0.9em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    margin: -20px -20px 20px -20px;
}

.article-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.article-content {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.article-content p {
    margin-bottom: 1em;
}

.btn-back {
    display: block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    border: 1px solid #ddd;
    transition: background-color var(--transition), color var(--transition);
    margin-top: 20px;
}

/* --- Halaman Khusus Akses Ditolak --- */

.main-content-login {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    flex-grow: 1;
}

.access-denied-container {
    padding: 20px;
    max-width: 400px;
    width: 100%;
    margin-top: -80px; /* Menarik container ke atas agar lebih di tengah vertikal */
}

.illustration-container {
    margin-bottom: 30px;
}

.access-illustration {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50; /* Menyesuaikan warna agar lebih gelap dan jelas */
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.4;
}

.login-btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    padding: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
}


/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .confirmation-text h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
        padding-bottom: calc(var(--footer-height) + 10px);
    }

    .app-logo {
        font-size: 20px;
    }

    .app-name {
        display: none;
    }

    .footer-nav {
        padding: 5px 0;
    }

    .form-group-with-icon input,
    .form-group-with-icon select {
        padding: 12px;
    }

    .form-group-with-icon .input-icon {
        transform: translateY(12px);
    }

    .confirmation-page {
        padding: 15px;
    }

    .confirmation-icon {
        font-size: 100px;
        width: 130px;
        height: 130px;
        margin-bottom: 25px;
    }

    .confirmation-text h2 {
        font-size: 1.3em;
    }

    .confirmation-text p {
        font-size: 0.9em;
        max-width: 250px;
    }

    .btn-block-lg {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .article-image {
        height: 200px;
    }


}