:root {
    --primary-color: #2e7d32;
    --secondary-color: #81c784;
    --light-color: #e8f5e9;
    --dark-color: #1b5e20;
    --sidebar-width: 250px;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.footer {
    background-color: var(--dark-color);
    color: white;
}

.bg-primary-green {
    background-color: var(--primary-color);
}

.bg-secondary-green {
    background-color: var(--secondary-color);
}

.bg-light-green {
    background-color: var(--light-color);
}

.text-primary-green {
    color: var(--primary-color);
}

.navbar-brand.text-primary-green:hover {
    color:var(--dark-color) !important;

}

.navbar-brand.text-primary-green:hover {
    color: var(--dark-color) !important;

}

.nav-link.text-primary-green:hover {
    color: var(--dark-color) !important;
}

.nav-link.text-primary-green-active:hover {
    color: var(--dark-color) !important;
}

.text-primary-green-active {
    color: var(--dark-color);
}

.btn-primary-green {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary-green:hover {
    background-color: var(--dark-color);
    color: white;
}

.service-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s;
    border: none;
    overflow: hidden;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.btn-primary-green {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-primary-green:hover {
    background-color: var(--dark-color);
    color: white;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

.nav-pills .nav-link {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-right: 10px;
    margin-bottom: 10px;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.bg-light-green {
    background-color: var(--light-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80");
    background-size: cover;
    background-position: center;
    min-height: 95vh;
    color: white;
}

.judul-logo {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    padding-bottom: 10px;
}

.judul-logo::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 4px;
    background-color: var(--primary-color);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-card {
    transition: transform 0.3s;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
}

.card{
    transition: transform 0.3s;
}

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

.gallery-image {
    width: 100%;
    height: 300px;
    /* kamu bisa atur misalnya 250px */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.03);
}

.news-card .card-img-top {
    height: 50%;
    object-fit: cover;
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
}

.news-card .card-body {
    height: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.news-card .card-text {
    font-size: 0.875rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--dark-color);
    color: white;
    transition: all 0.3s;
    z-index: 1000;
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
}

/* Sidebar disembunyikan jika aktif (untuk toggle) */
.sidebar.active {
    left: -250px;
}

.sidebar-header {
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Penanda */
/* Dibuat oleh Pedro V Rapar */

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-brand i {
    font-size: 1.8rem;
    margin-right: 10px;
    color: var(--secondary-color);
}

.sidebar-menu {
    padding: 0;
    list-style: none;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border-left: 3px solid var(--secondary-color);
}

.sidebar-menu a i {
    width: 25px;
    display: inline-block;
    text-align: center;
    margin-right: 10px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s;
}

/* Konten bergeser jika sidebar disembunyikan */
.main-content.active {
    margin-left: 0;
}

.topbar {
    padding: 15px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-sidebar {
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

/* Dashboard Cards */
.card-stat {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-stat .card-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

.card-stat .card-body {
    padding: 1.5rem;
}

.card-stat .card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 5px;
}

.card-stat .card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0;
}

/* Recent Activity */
.activity-list {
    list-style: none;
    padding: 0;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
}

.activity-time {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Table Styles */
.table-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-top: 20px;
}

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

.table thead th {
    border-bottom: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(129, 199, 132, 0.1);
}

.badge-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-active {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.badge-inactive {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.action-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 3px;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.btn-view {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-edit {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.btn-delete {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.search-filter {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
}

 /* [CSS Sidebar dan Topbar sama seperti sebelumnya] */

 .profile-container {
     background-color: white;
     border-radius: 10px;
     box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
     padding: 30px;
     margin-top: 20px;
 }

 .profile-header {
     border-bottom: 2px solid var(--light-color);
     padding-bottom: 20px;
     margin-bottom: 30px;
 }

 .profile-logo {
     width: 150px;
     height: 150px;
     border-radius: 50%;
     object-fit: cover;
     border: 5px solid var(--light-color);
     margin: 0 auto 20px;
     display: block;
 }

 .image-upload {
     position: relative;
     width: 100%;
     height: 100%;
     max-width: 300px;
     margin: 0 auto;
 }

 .image-upload img {
     width: 100%;
     height: 100%;
     border-radius: 10px;
     cursor: pointer;
 }

 .image-upload .btn-upload {
     position: absolute;
     bottom: 10px;
     right: 10px;
     background-color: rgba(0, 0, 0, 0.7);
     color: white;
     border: none;
     border-radius: 50%;
     width: 40px;
     height: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
 }

 .image-upload input[type="file"] {
     display: none;
 }

 .info-card {
     background-color: var(--light-color);
     border-radius: 10px;
     padding: 20px;
     margin-bottom: 20px;
     border-left: 4px solid var(--primary-color);
 }

 .info-card h5 {
     color: var(--dark-color);
     margin-bottom: 15px;
 }

 .btn-edit {
     background-color: var(--primary-color);
     color: white;
     border: none;
     padding: 8px 15px;
     border-radius: 5px;
     transition: all 0.3s;
 }

 .btn-edit:hover {
     background-color: var(--dark-color);
 }

 .btn-save {
     background-color: #28a745;
     color: white;
 }

 .btn-cancel {
     background-color: #dc3545;
     color: white;
 }

 .form-control,
 .form-select {
     border-radius: 5px;
     border: 1px solid #ced4da;
 }

 .form-control:focus,
 .form-select:focus {
     border-color: var(--secondary-color);
     box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
 }

 .note-editor.note-frame {
     border-radius: 5px;
     border: 1px solid #ced4da;
 }

 .gallery-item {
     position: relative;
     margin-bottom: 15px;
     border-radius: 5px;
     overflow: hidden;
 }

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

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

 .gallery-item .btn-delete {
     position: absolute;
     top: 5px;
     right: 5px;
     background-color: rgba(220, 53, 69, 0.8);
     color: white;
     border: none;
     width: 25px;
     height: 25px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     opacity: 0;
     transition: opacity 0.3s;
 }

 .gallery-item:hover .btn-delete {
     opacity: 1;
 }


 .admin-card {
     border: none;
     border-radius: 10px;
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
     transition: all 0.3s;
     margin-bottom: 20px;
 }

 .admin-card:hover {
     transform: translateY(-3px);
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
 }

 .card-status {
     position: absolute;
     top: 15px;
     right: 15px;
     padding: 5px 10px;
     border-radius: 20px;
     font-size: 0.75rem;
     font-weight: 600;
 }

 .status-pending {
     background-color: #fff3cd;
     color: #856404;
 }

 .status-approved {
     background-color: #d4edda;
     color: #155724;
 }

 .status-rejected {
     background-color: #f8d7da;
     color: #721c24;
 }

 .status-completed {
     background-color: #e2e3e5;
     color: #383d41;
 }

 .nav-tabs .nav-link {
     color: #495057;
     border: none;
     padding: 10px 20px;
     font-weight: 500;
 }

 .nav-tabs .nav-link.active {
     color: var(--primary-color);
     border-bottom: 3px solid var(--primary-color);
     background-color: transparent;
 }

 .badge-type {
     background-color: var(--light-color);
     color: var(--dark-color);
     padding: 5px 10px;
     border-radius: 5px;
     font-size: 0.75rem;
 }

 .timeline {
     position: relative;
     padding-left: 30px;
 }

 .timeline::before {
     content: '';
     position: absolute;
     left: 10px;
     top: 0;
     bottom: 0;
     width: 2px;
     background-color: var(--light-color);
 }

 .timeline-item {
     position: relative;
     padding-bottom: 20px;
 }

 .timeline-item::before {
     content: '';
     position: absolute;
     left: -30px;
     top: 5px;
     width: 12px;
     height: 12px;
     border-radius: 50%;
     background-color: var(--primary-color);
     border: 2px solid white;
 }

 .timeline-date {
     font-size: 0.8rem;
     color: #6c757d;
 }

 .document-preview {
     border: 2px dashed #dee2e6;
     border-radius: 10px;
     height: 200px;
     display: flex;
     align-items: center;
     justify-content: center;
     background-color: #f8f9fa;
     cursor: pointer;
     overflow: hidden;
 }

 .document-preview img {
     max-width: 100%;
     max-height: 100%;
 }

 .stats-card {
     border-left: 4px solid var(--primary-color);
 }

/* batas testing */

/* Dashboard Specific Styles */
.complaint-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: none;
    margin-bottom: 20px;
}

.complaint-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-process {
    background-color: #cce5ff;
    color: #004085;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.stats-card {
    border-left: 4px solid var(--primary-color);
}

.stats-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.complaint-urgency-high {
    border-left: 4px solid #dc3545;
}

.complaint-urgency-medium {
    border-left: 4px solid #fd7e14;
}

.complaint-urgency-low {
    border-left: 4px solid #28a745;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.action-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 3px;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.btn-view {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-process {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.btn-complete {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}
/* batas testing */

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        left: -250px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.active {
        margin-left: var(--sidebar-width);
    }
}
