/* Custom CSS untuk Bank Sampah Tri Alam Lestari */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #059A45 0%, #06B350 100%);
    color: white;
    padding: 100px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* Icon Animations */
.card i {
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

/* Button Styles */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Statistics Section */
.bg-light {
    background: linear-gradient(45deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        margin-bottom: 10px;
    }
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, #059A45 0%, #06B350 100%);
    color: white;
}

/* Custom Colors */
.text-primary {
    color: #059A45 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #059A45 0%, #06B350 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #048139 0%, #059A45 100%);
    border: none;
}

/* Dashboard Admin Styles */
.border-left-primary {
    border-left: 0.25rem solid #059A45 !important;
}

.border-left-success {
    border-left: 0.25rem solid #28a745 !important;
}

.border-left-danger {
    border-left: 0.25rem solid #dc3545 !important;
}

.border-left-info {
    border-left: 0.25rem solid #28a745 !important;
}

.border-left-warning {
    border-left: 0.25rem solid #ffc107 !important;
}

.border-left-dark {
    border-left: 0.25rem solid #343a40 !important;
}

.text-xs {
    font-size: 0.7rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.35rem;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
    line-height: 1.2;
}

.btn-block i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.25rem;
}

.chart-area {
    position: relative;
    height: 300px;
    width: 100%;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 0;
}

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

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-primary {
    background-color: #059A45 !important;
}

/* Specific override for login header */
.card-header.bg-primary {
    background: linear-gradient(135deg, #059A45 0%, #06B350 100%) !important;
    background-color: #059A45 !important;
}

.bg-info {
    background-color: #28a745 !important;
}

.text-info {
    color: #28a745 !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination Styling */
.pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: inline-block;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #059A45;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    min-width: 34px;
    max-width: 60px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagination .page-link:hover {
    color: #048139;
    background-color: #e8f5e8;
    border-color: #059A45;
    text-decoration: none;
}

.pagination .page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(5, 154, 69, 0.25);
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #059A45;
    border-color: #059A45;
}

.list-group-item.active {
    z-index: 3;
    color: #333;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination .page-link {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 32px;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 3px 6px;
        font-size: 11px;
        min-width: 28px;
    }
    
    /* Hide some pagination numbers on very small screens */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none;
    }
}

/* Modern Green & White Design Enhancements */

/* Clean White Background */
body {
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enhanced Navbar */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e8f5e8;
    padding: 1rem 0;
}

.navbar-brand {
    color: #059A45 !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #059A45 !important;
    background-color: #e8f5e8;
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: #059A45;
}

/* Clean Card Design */
.card {
    border: 1px solid #e8f5e8;
    border-radius: 15px;
    overflow: hidden;
    background-color: #ffffff;
}

.card-header {
    background-color: #f8fcf9;
    border-bottom: 1px solid #e8f5e8;
    font-weight: 600;
    color: #2c3e50;
}

/* Green Accent Elements */
.text-success {
    color: #059A45 !important;
}

.bg-success {
    background-color: #059A45 !important;
}

.btn-success {
    background-color: #059A45;
    border-color: #059A45;
}

.btn-success:hover {
    background-color: #048139;
    border-color: #048139;
}

/* Clean Section Backgrounds */
.bg-light {
    background-color: #f8fcf9 !important;
}

/* Enhanced Statistics Cards */
.border-left-success {
    border-left: 0.25rem solid #059A45 !important;
}

/* Modern Form Styling */
.form-control {
    border: 2px solid #e8f5e8;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #059A45;
    box-shadow: 0 0 0 0.2rem rgba(5, 154, 69, 0.15);
}

/* Clean Table Design */
.table {
    background-color: #ffffff;
}

.table thead th {
    background-color: #f8fcf9;
    border-bottom: 2px solid #e8f5e8;
    color: #2c3e50;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f8fcf9;
}

/* Modern Alert Styling */
.alert-success {
    background-color: #e8f5e8;
    border-color: #059A45;
    color: #1e7e34;
}

.alert-info {
    background-color: #e8f5e8;
    border-color: #059A45;
    color: #1e7e34;
}

/* Enhanced Sidebar for Admin */
.sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e8f5e8;
}

.sidebar .nav-link {
    color: #2c3e50;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: #e8f5e8;
    color: #059A45;
}

.sidebar .nav-link.active {
    background-color: #059A45;
    color: #ffffff;
}

.sidebar-heading {
    color: #059A45;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1rem 0.5rem;
}

.sidebar-brand {
    background: linear-gradient(135deg, #059A45 0%, #06B350 100%);
    color: white;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0 0 15px 15px;
}

/* Clean Dividers */
.sidebar-divider {
    border-top: 1px solid #e8f5e8;
    margin: 1rem 0;
}

/* Modern Badge Styling */
.badge-success {
    background-color: #059A45;
}

.badge-primary {
    background-color: #059A45;
}

/* Enhanced Button Variants */
.btn-outline-success {
    color: #059A45;
    border-color: #059A45;
}

.btn-outline-success:hover {
    background-color: #059A45;
    border-color: #059A45;
}

/* Clean Dropdown Styling */
.dropdown-menu {
    border: 1px solid #e8f5e8;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background-color: #e8f5e8;
    color: #059A45;
}

/* Modern Progress Bars */
.progress {
    background-color: #e8f5e8;
    border-radius: 10px;
}

.progress-bar {
    background-color: #059A45;
}

/* Enhanced Modal Styling */
.modal-header {
    background-color: #f8fcf9;
    border-bottom: 1px solid #e8f5e8;
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}