/* Custom Styles untuk Website RT 03 RW 011 */

:root {
    --primary-color: #2e7d32;
    --secondary-color: #558b2f;
    --accent-color: #8bc34a;
    --success-color: #2e7d32;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #4caf50;
    --text-color: #27443c;
    --bg-soft: #f3f8f3;
    --bg-gradient: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
}

html {
    height: 100%;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
    background: var(--bg-soft);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > .container,
body > section,
body > div.container {
    flex: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Background hero menggunakan gambar khusus + overlay gelap agar teks tetap terbaca */
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../../uploads/bckg/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 110px 0 90px;
    margin-top: -76px;
    color: white;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.2;
    background: rgba(255, 255, 255, 0.4);
    z-index: 0;
}

.hero-section::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
}

.hero-section::after {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: -60px;
}

.hero-section .container,
.hero-section .row,
.hero-section .col-lg-6 {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Hero image removed */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    transition: transform 0.3s;
    text-decoration: none !important;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #fff;
    display: block;
}

.brand-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    margin-top: -2px;
}

@media (max-width: 991px) {
    .brand-subtitle {
        display: none;
    }
    
    .logo-wrapper {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .brand-title {
        font-size: 1.2rem;
    }
}

.custom-navbar {
    backdrop-filter: blur(12px);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.85), rgba(46, 125, 50, 0.75)) !important;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(46, 125, 50, 0.85)) !important;
    box-shadow: 0 6px 30px rgba(46, 125, 50, 0.5);
}

.navbar .nav-link {
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 999px;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(39, 68, 60, 0.08);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table tbody tr:hover {
    background-color: rgba(46, 125, 50, 0.05);
}

/* Badge */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-warning {
    color: #664d03;
}

/* Profile Cards */
.profile-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-color);
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.section-heading {
    font-weight: 700;
    color: var(--text-color);
}

.section-divider {
    width: 70px;
    height: 5px;
    border-radius: 4px;
    background: linear-gradient(135deg, #2e7d32 0%, #8bc34a 100%);
    margin: 16px auto 28px;
}

.feature-card {
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(39, 68, 60, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at center, rgba(139, 195, 74, 0.35), transparent 70%);
    top: -30px;
    right: -40px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(39, 68, 60, 0.12);
}

.feature-card:hover::after {
    transform: scale(1.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(46, 125, 50, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 28px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(46,125,50,0.1), rgba(139,195,74,0.15));
    border: 1px solid rgba(46, 125, 50, 0.2);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mini-stat-item {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.12);
}

.mini-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.mini-stat-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Status Badges */
.status-menunggu {
    background-color: #ffc107;
    color: #000;
}

.status-diproses {
    background-color: #0dcaf0;
    color: #000;
}

.status-selesai {
    background-color: #198754;
    color: #fff;
}

.status-ditolak {
    background-color: #dc3545;
    color: #fff;
}

.status-aktif {
    background-color: #198754;
    color: #fff;
}

.status-tidak-aktif {
    background-color: #6c757d;
    color: #fff;
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Admin Layout & Sidebar */
.admin-layout {
    background: radial-gradient(circle at top left, rgba(46, 125, 50, 0.08), transparent 55%),
                radial-gradient(circle at bottom right, rgba(139, 195, 74, 0.1), transparent 55%);
}

.admin-main {
    min-height: calc(100vh - 56px);
}

.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .06);
    background: #f8faf9;
}

.admin-sidebar {
    padding-top: 0.75rem;
    padding-bottom: 1.25rem;
}

.sidebar .nav-link {
    color: #334155;
    padding: 10px 18px;
    border-radius: 999px;
    margin: 3px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: all 0.25s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(46, 125, 50, 0.08);
    color: var(--primary-color);
    transform: translateX(2px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
}

.sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.sidebar .nav-link i {
    margin-right: 2px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.admin-navbar {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #111827 0%, #1f2937 40%, #2e7d32 100%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
}

.admin-navbar .navbar-brand .icon-circle {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.admin-navbar .nav-link {
    border-radius: 999px;
    padding-inline: 14px;
    font-weight: 500;
}

.admin-navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.14);
}

.bg-leaf {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(139, 195, 74, 0.08));
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.12);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-image {
        font-size: 100px;
    }
    
    .profile-card img {
        width: 120px;
        height: 120px;
    }
    
    .feature-card {
        padding: 18px;
    }
    
    .sidebar {
        min-height: auto;
    }

    .mini-stats {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Footer Sticky */
footer {
    margin-top: auto;
    flex-shrink: 0;
}

.footer-map-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-map-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 200px;
}

/* Print Styles */
@media print {
    .navbar, .btn, footer {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}

