/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
    --primary:       #1a5c38;
    --primary-dark:  #134429;
    --primary-light: #2a7a4e;
    --accent:        #c8a951;
    --accent-dark:   #a88933;
    --text-muted:    #6c757d;
    --bg-light:      #f8f9fa;
    --sidebar-width: 260px;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ── Public Navbar ─────────────────────────────────────────────────────────── */
.navbar-main {
    background: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-main .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-main .navbar-brand .mosque-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.navbar-main .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.2s;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--accent) !important;
}

.navbar-main .btn-login {
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.4rem 1.2rem !important;
    transition: background 0.2s;
}

.navbar-main .btn-login:hover {
    background: var(--accent-dark);
    color: #fff !important;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0a2a18 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-section .hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-mosque-art {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    opacity: 0.15;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Section headings ──────────────────────────────────────────────────────── */
.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-heading .divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 0.8rem;
    border-radius: 2px;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card-hover {
    transition: transform 0.25s, box-shadow 0.25s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.card-hover:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.badge-kategori {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}

.badge-status-aktif {
    background: #d1fae5;
    color: #065f46;
}

.badge-status-draft {
    background: #fef3c7;
    color: #92400e;
}

/* ── Kajian Card ─────────────────────────────────────────────────────────────── */
.kajian-card {
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1.2rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s;
}

.kajian-card:hover {
    transform: translateX(5px);
}

.kajian-card .kajian-date {
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.kajian-card .kajian-date .day {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.kajian-card .kajian-date .month {
    font-size: 0.72rem;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ── Info Masjid brief ───────────────────────────────────────────────────────── */
.info-masjid-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 0;
}

.info-masjid-section h2 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.9rem;
    font-size: 0.93rem;
}

.info-item i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ── Finance summary cards ───────────────────────────────────────────────────── */
.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    position: absolute;
    right: 16px;
    bottom: 10px;
    font-size: 3.5rem;
    opacity: 0.2;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

.stat-card-green   { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-card-blue    { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.stat-card-red     { background: linear-gradient(135deg, #991b1b, #ef4444); }
.stat-card-gold    { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: var(--primary-dark); }

/* ── Gallery ─────────────────────────────────────────────────────────────────── */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 220px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,92,56,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    flex-direction: column;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ── Donasi ──────────────────────────────────────────────────────────────────── */
.donasi-card {
    border: 2px solid var(--accent);
    border-radius: 16px;
    overflow: hidden;
}

.donasi-card .donasi-header {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer-main {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
}

.footer-main h5 {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-main a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}

.footer-main a:hover { color: var(--accent); }

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    font-size: 0.82rem;
    text-align: center;
    opacity: 0.6;
}

/* ── Dashboard Sidebar ───────────────────────────────────────────────────────── */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-dark);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s;
}

.sidebar .sidebar-brand {
    padding: 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar .sidebar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.sidebar .sidebar-brand .brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
}

.sidebar .sidebar-brand .brand-text small {
    display: block;
    font-weight: 400;
    opacity: 0.6;
    font-size: 0.75rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    padding: 0.8rem 1.2rem 0.3rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1.2rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.sidebar-nav a.active {
    background: rgba(200,169,81,0.15);
    color: var(--accent);
    border-left-color: var(--accent);
}

/* ── Dashboard main content ──────────────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f0f2f5;
}

.topbar {
    background: #fff;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topbar .page-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar .user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
}

.topbar .user-badge .avatar {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

.content-area {
    padding: 1.5rem;
    flex: 1;
}

/* ── Dashboard icon tiles ────────────────────────────────────────────────────── */
.icon-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1rem;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border: 2px solid transparent;
    height: 100%;
}

.icon-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--accent);
    color: var(--primary);
    text-decoration: none;
}

.icon-tile .tile-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.icon-tile .tile-label {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
}

.icon-tile .tile-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Icon tile colors */
.tile-green    { background: #d1fae5; color: #065f46; }
.tile-blue     { background: #dbeafe; color: #1e40af; }
.tile-yellow   { background: #fef3c7; color: #92400e; }
.tile-purple   { background: #ede9fe; color: #5b21b6; }
.tile-red      { background: #fee2e2; color: #991b1b; }
.tile-pink     { background: #fce7f3; color: #9d174d; }
.tile-teal     { background: #ccfbf1; color: #0f766e; }
.tile-orange   { background: #ffedd5; color: #9a3412; }
.tile-indigo   { background: #e0e7ff; color: #3730a3; }
.tile-lime     { background: #ecfccb; color: #365314; }
.tile-cyan     { background: #cffafe; color: #155e75; }
.tile-gray     { background: #f1f5f9; color: #334155; }

/* ── Dashboard stat cards ────────────────────────────────────────────────────── */
.dash-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem;
    border-left: 5px solid;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.dash-stat-card .stat-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.border-green { border-color: var(--primary); }
.border-blue  { border-color: #3b82f6; }
.border-red   { border-color: #ef4444; }
.border-gold  { border-color: var(--accent); }

/* ── Tables ──────────────────────────────────────────────────────────────────── */
.table-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.table-card .table-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.table-card .table-header h5 {
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.table thead th {
    background: #f8f9fa;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #dee2e6;
}

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-label { font-weight: 500; font-size: 0.88rem; }

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26,92,56,0.15);
}

.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

/* ── Login page ──────────────────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
}

.login-card .login-header {
    background: var(--primary);
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.login-card .login-header .mosque-logo {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    color: var(--primary-dark);
}

.login-card .login-header h4 {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.login-card .login-header small {
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Login logo image (replaces mosque-logo icon) */
.login-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    padding: 8px;
    margin: 0 auto 1rem;
    display: block;
}

/* Sidebar brand logo image */
.brand-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--accent);
    padding: 4px;
    flex-shrink: 0;
}

/* User dropdown toggle — remove Bootstrap's default arrow */
.user-dropdown-toggle::after { display: none; }
.user-dropdown-toggle {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-card .login-body {
    padding: 2rem;
}

/* ── Sidebar toggle button (always visible) ──────────────────────────────────── */
.btn-sidebar-toggle {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 1.2rem;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.btn-sidebar-toggle:hover {
    background: #f0f2f5;
    color: var(--primary);
}

/* ── Desktop sidebar collapse ────────────────────────────────────────────────── */
@media (min-width: 992px) {
    .sidebar         { transition: width 0.28s ease; }
    .main-content    { transition: margin-left 0.28s ease; }

    .dashboard-wrapper.sidebar-collapsed .sidebar       { width: 0; overflow: hidden; }
    .dashboard-wrapper.sidebar-collapsed .main-content  { margin-left: 0; }
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .hero-section {
        padding: 70px 0 50px;
    }
    .hero-section h1 {
        font-size: 1.7rem;
    }
    .content-area {
        padding: 1rem;
    }
}

/* ── Sidebar overlay ─────────────────────────────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

/* ── Print ───────────────────────────────────────────────────────────────────── */
@media print {
    .sidebar, .topbar, .btn, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { padding: 0 !important; }
}

/* ── Misc ─────────────────────────────────────────────────────────────────────── */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom   { background-color: var(--primary) !important; }
.text-accent         { color: var(--accent) !important; }

.img-placeholder {
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2rem;
}

.modal-header-custom {
    background: var(--primary);
    color: #fff;
}

.modal-header-custom .btn-close {
    filter: invert(1);
}

.alert-flash {
    border-radius: 10px;
    font-weight: 500;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2.5rem;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

/* Page section backgrounds */
.section-alt { background: var(--bg-light); }

.kajian-empty, .artikel-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.thumbnail-sm {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.role-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: capitalize;
}

.role-admin     { background: #fee2e2; color: #991b1b; }
.role-bendahara { background: #fef3c7; color: #92400e; }
.role-editor    { background: #dbeafe; color: #1e40af; }
.role-anggota   { background: #d1fae5; color: #065f46; }

/* ── Jadwal Sholat ──────────────────────────────────────────────────────────── */
.sholat-section {
    background: var(--primary-dark, #083326);
    padding: 2rem 0 2.25rem;
    border-top: 3px solid rgba(255,255,255,0.06);
}

.sholat-city-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255,255,255,0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    padding: 0.4rem 2.2rem 0.4rem 0.85rem;
    min-width: 160px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.sholat-city-select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255,255,255,0.15);
}
.sholat-city-select option {
    background: #0f4c31;
    color: #fff;
}

.sholat-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1.1rem 0.5rem 0.9rem;
    text-align: center;
    transition: background 0.2s, transform 0.15s;
}
.sholat-card:hover { background: rgba(255,255,255,0.12); }

.sholat-card.next-prayer {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.sholat-icon {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.35rem;
    line-height: 1;
}
.next-prayer .sholat-icon { color: var(--primary-dark, #083326); }

.sholat-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.next-prayer .sholat-name { color: rgba(8,51,38,0.75); }

.sholat-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.next-prayer .sholat-time { color: var(--primary-dark, #083326); }

.sholat-next-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary-dark, #083326);
    margin-top: 0.3rem;
    opacity: 0.75;
}

@media (max-width: 575.98px) {
    .sholat-card { padding: 0.85rem 0.25rem 0.7rem; }
    .sholat-time { font-size: 0.95rem; }
    .sholat-icon { font-size: 1.25rem; }
}

/* ── Hero Carousel ─────────────────────────────────────────────────────────── */
.hero-carousel { width: 100%; }

.hero-carousel .carousel-item {
    min-height: 520px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--primary);
    position: relative;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 76, 49, 0.82) 0%,
        rgba(15, 76, 49, 0.45) 60%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

/* Carousel controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    margin: 0 16px;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s;
}
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(255,255,255,0.32);
    opacity: 1;
}

/* Carousel indicators */
.hero-carousel .carousel-indicators {
    bottom: 20px;
    gap: 6px;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    opacity: 0.5;
    background-color: #fff;
    transition: opacity 0.3s, transform 0.3s;
}
.hero-carousel .carousel-indicators .active {
    opacity: 1;
    transform: scale(1.3);
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item { min-height: 380px; }
}

/* ── Teks Tanggal Jadwal Sholat ────────────────────────────────────────────── */
.sholat-date-txt {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}
.sholat-hijri-txt::before {
    content: '·';
    margin-right: 0.45rem;
    color: rgba(255,255,255,0.25);
}

/* ── Maps Embed ────────────────────────────────────────────────────────────── */
.map-embed-wrap {
    height: 360px;
    position: relative;
}

@media (max-width: 767.98px) {
    .map-embed-wrap { height: 260px; }
}

/* ── Navbar Dropdown ────────────────────────────────────────────────────────── */
.navbar-main .dropdown-menu {
    background-color: #1c6b42;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    min-width: 180px;
    padding: 0.3rem 0;
}
.navbar-main .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    padding: 7px 16px;
    transition: background 0.15s;
    white-space: nowrap;
}
.navbar-main .dropdown-menu .dropdown-item:hover,
.navbar-main .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255,255,255,0.12);
    color: var(--accent);
}
@media (max-width: 991px) {
    .navbar-main .dropdown-menu {
        background: rgba(0,0,0,0.15);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding-left: 1rem;
        min-width: unset;
    }
    .navbar-main .dropdown-toggle::after { float: right; margin-top: 6px; }
}

/* ── Mobile touch improvements ───────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .btn { min-height: 38px; }
    .table td, .table th { font-size: 0.82rem; padding: 0.5rem 0.4rem; }
    .modal-dialog { margin: 0.5rem; }
    .modal-body { padding: 1rem; }
    .form-label { font-size: 0.88rem; }
}

@media (max-width: 575px) {
    .table-card .table-header { padding: 0.75rem 1rem; }
    .dashboard-card { padding: 1rem; }
    .btn-sm { font-size: 0.78rem; }
}
