.stat-card {
    transition: transform 0.2s;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    color: #6c757d;
}

.page-header {
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.page-title {
    margin-bottom: 0.5rem;
    color: #495057;
}

.page-subtitle {
    color: #6c757d;
    margin-bottom: 0;
}


/* Custom CSS for Recycle Management System */
.custom-bin-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .marker-pin i {
        transform: rotate(45deg);
        color: white;
        font-size: 14px;
    }

/* Custom popup styles */
.bin-popup .leaflet-popup-content {
    margin: 8px 12px;
    line-height: 1.4;
}

.bin-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
}
#map {
    border-radius: 0.375rem;
}

.state-filter + label {
    cursor: pointer;
}

/* Custom bin marker styles */
.custom-bin-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .marker-pin i {
        transform: rotate(45deg);
        color: white;
        font-size: 14px;
    }

/* Custom popup styles */
.bin-popup .leaflet-popup-content {
    margin: 8px 12px;
    line-height: 1.4;
}

.bin-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
}

@media (max-width: 992px) {
    #mapSidebar {
        margin-bottom: 1rem;
    }
}
.padder {

    padding-left:20px;
    padding-right:20px;
}
:root {
    --primary-green: #28a745;
    --secondary-green: #20c997;
    --dark-green: #1e7e34;
    --light-green: #d4edda;
    --danger-red: #dc3545;
    --warning-yellow: #ffc107;
    --info-blue: #17a2b8;
    --dark-gray: #343a40;
    --light-gray: #f8f9fa;
}

/* Global Styles */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

main {
    flex: 1;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #f8f9fa !important;
        transform: translateY(-1px);
    }

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

  /*  .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }*/

.card-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.btn-success {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border: none;
}

    .btn-success:hover {
        background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    }

/* Form Controls */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-green);
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    }

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #cce7ff, #b3daff);
    color: #0c5460;
}

/* Login/Register Forms */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-11.046-8.954-20-20-20v40c11.046 0 20-8.954 20-20z'/%3E%3C/g%3E%3C/svg%3E");
    }

    .hero-section .container {
        position: relative;
        z-index: 1;
    }

/* Feature Cards */
.feature-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

.stat-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

/* Dashboard Styles */
.dashboard-card {
    border-left: 5px solid var(--primary-green);
}

    .dashboard-card.admin {
        border-left-color: var(--danger-red);
    }

    .dashboard-card.driver {
        border-left-color: var(--warning-yellow);
    }

    .dashboard-card.user {
        border-left-color: var(--info-blue);
    }

/* Loading Spinner */
.spinner-custom {
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

/* Custom Badge */
.badge-eco {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Status Indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active {
    background-color: var(--primary-green);
}

.status-pending {
    background-color: var(--warning-yellow);
}

.status-inactive {
    background-color: var(--danger-red);
}

.status-completed {
    background-color: var(--info-blue);
}

/* Utility Classes */
.text-eco {
    color: var(--primary-green);
}

.bg-eco {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
}

.border-eco {
    border-color: var(--primary-green) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-icon {
        font-size: 4rem !important;
    }

    .feature-icon {
        font-size: 2rem !important;
    }

    .stat-icon {
        font-size: 2rem !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .alert {
        display: none !important;
    }

    body {
        color: black !important;
        background: white !important;
    }
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.is-valid {
    border-color: #198754;
}

.is-invalid {
    border-color: #dc3545;
}

.card {
    border: none;
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
}

    .form-control:hover:not(:focus),
    .form-select:hover:not(:focus) {
        border-color: #adb5bd;
    }

.alert {
    border-radius: 8px;
    border: none;
}

.form-label {
    font-weight: 500;
    color: #495057;
}

 

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
    }

        .d-flex.justify-content-between .btn {
            width: 100%;
        }
}



.required::after {
    content: " *";
    color: red;
}

.card {
    transition: all 0.2s ease-in-out;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }

.address-details, .bin-details {
    font-size: 0.9em;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.modal-lg {
    max-width: 800px;
}

/* Certificates Index Styles */

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 1.25rem 1.5rem;
}

    .card-header h3 {
        color: white !important;
        font-weight: 600;
    }

.card-tools .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

    .card-tools .btn:hover {
        background: white;
        color: #667eea;
        transform: translateY(-2px);
    }

/* Search and Filter Section */
.input-group-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

#searchInput {
    border-left: none;
}

    #searchInput:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Statistics Cards */
.info-box {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .info-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }

.info-box-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin-right: 1rem;
}

.info-box-content {
    flex: 1;
}

.info-box-text {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.info-box-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

/* Table Styling */
.table {
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

    .table thead th {
        background: #343a40;
        color: white;
        border: none;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 0.875rem;
        padding: 1rem 0.75rem;
    }

    .table tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #f1f3f4;
    }

        .table tbody tr:hover {
            background-color: #f8f9fa;
            transform: scale(1.01);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

    .table td {
        padding: 1rem 0.75rem;
        vertical-align: middle;
        border: none;
    }

/* Badge Styling */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

    .badge.fs-6 {
        font-size: 0.9rem !important;
        padding: 0.6rem 0.8rem;
    }

/* Button Group Styling */
.btn-group .btn {
    border-radius: 6px !important;
    margin-right: 0.25rem;
    transition: all 0.3s ease;
}

    .btn-group .btn:last-child {
        margin-right: 0;
    }

.btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

    .modal-header .btn-close {
        filter: invert(1);
    }

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #f1f3f4;
    padding: 1rem 2rem;
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Loading Overlay */
.loading-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

/* No Data/Results Styling */
.text-muted i.fa-3x,
.text-muted i.fa-2x {
    color: #dee2e6 !important;
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .card-tools {
        margin-top: 1rem;
        width: 100%;
    }

        .card-tools .btn {
            width: 100%;
        }

    .info-box {
        flex-direction: column;
        text-align: center;
    }

    .info-box-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

        .btn-group .btn {
            margin-right: 0;
            margin-bottom: 0.25rem;
        }

    .table-responsive {
        border-radius: 8px;
    }

    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .info-box-number {
        font-size: 1.25rem;
    }

    .info-box-icon {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .table td,
    .table th {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .card-header .card-tools,
    .btn-group,
    .modal,
    .alert {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .table {
        font-size: 0.8rem;
    }

    .info-box {
        break-inside: avoid;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }

    .table {
        background-color: #2d3748;
        color: #e2e8f0;
    }

        .table tbody tr:hover {
            background-color: #4a5568;
        }

    .form-control,
    .form-select {
        background-color: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}