/* CARD STYLES */
.card:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--eco-green);
}

.__card_container__ {
    border: 0px; 
}
.__card_header__ {
    background: var(--bg-color);
    border-bottom: solid var(--eco-green);
}
.__card_body__ {
    background: var(--bg-card-body);
    border: 1px solid var(--eco-green);
    border-radius: 25px;
}
.__card_list_group__ {
    background: var(--bg-list-group);
}

.hover-glow {
    transition: all 0.3s ease;
}

/* Glow on hover */
.hover-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
}

/* Card Layout Classes */
.dashboard-card {
    height: 280px;
}

.dashboard-card-body {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Pickup List Styles  */
.pickup-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}

.pickup-item {
    background-color: var(--bg-card-body);
    border: 1px solid var(--eco-green);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: fit-content;
}

/* Subtle gradient background for depth */
.pickup-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(46, 125, 50, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pickup-date {
    font-weight: 600;
    color: var(--eco-green);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.pickup-type {
    font-weight: 500;
    color: var(--heading-color);
    font-size: 0.8rem;
}

.pickup-location {
    color: var(--text-color);
    font-size: 0.7rem;
    margin-top: 0.2rem;
    opacity: 0.8;
}

/* Dark theme adjustments */
[data-bs-theme=dark] .pickup-item {
    background-color: var(--bg-card-body);
    border-color: rgba(46, 125, 50, 0.5);
}

[data-bs-theme=dark] .pickup-item:hover {
    background-color: var(--bg-card-header);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

/* Light theme adjustments */
[data-bs-theme=light] .pickup-item {
    background-color: #ffffff;
    border-color: var(--eco-green);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-bs-theme=light] .pickup-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.15);
}


/* Fix for Request Status Card - Always fill card evenly */

/* Remove the existing stats-grid-compact styles and replace with these */
.stats-grid-compact {
    display: flex;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.stat-card-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1; /* Each item takes equal space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-hover);
}

.stat-card-item i {
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card-item h4 {
    margin: 0.5rem 0;
}

.stat-card-item small {
    display: block;
}

/* Mobile adjustments - keep cards side by side but adjust padding */
@media (max-width: 576px) {
    .stats-grid-compact {
        gap: 0.5rem;
    }

    .stat-card-item {
        padding: 1rem 0.25rem;
    }

    .stat-card-item i {
        font-size: 1.5rem;
    }

    .stat-card-item h4 {
        font-size: 1.1rem;
    }

    .stat-card-item small {
        font-size: 0.7rem;
    }
}

/* Very small screens - if text gets cramped */
@media (max-width: 360px) {
    .stat-card-item {
        padding: 0.75rem 0.25rem;
    }

    .stat-card-item small {
        font-size: 0.65rem;
    }
}

/* Common hover effect for both views */
.stat-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-hover);
}

/* Responsive adjustments for the dashboard card height */
@media (max-width: 767px) {
    .dashboard-card {
        height: auto;
        min-height: 280px;
    }
}

/* Recycling Lots Card Styles - Dashboard Style */

/* Timeline Styles - Compact like dashboard */
.lot-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    margin: 0.5rem 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    min-width: 0;
}

.step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: var(--bg-card-body);
    margin-bottom: 0.25rem;
    z-index: 2;
}

.timeline-step.completed .step-badge {
    background-color: var(--eco-green);
    color: white;
}

.timeline-step.current .step-badge {
    background-color: #0d6efd;
    color: white;
}

.timeline-step.current .step-badge i {
    font-size: 0.5rem;
}

.timeline-step .step-badge i {
    font-size: 0.8rem;
}

.step-label {
    font-size: 0.65rem;
    color: var(--text-color);
    opacity: 0.7;
    word-break: break-word;
    line-height: 1.1;
}

.timeline-step.completed .step-label,
.timeline-step.current .step-label {
    opacity: 1;
    font-weight: 500;
}

/* Timeline Connectors */
.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 13px;
    left: calc(50% + 13px);
    width: calc(100% - 26px);
    height: 2px;
    background-color: var(--border);
    z-index: 1;
}

.timeline-step.completed:not(:last-child)::after {
    background-color: var(--eco-green);
}

.timeline-step.current:not(:last-child)::after {
    background: linear-gradient(90deg, var(--eco-green) 0%, var(--border) 100%);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .lot-timeline {
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .step-badge {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 576px) {
    .lot-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .timeline-step {
        flex: 0 1 30%;
    }

    .timeline-step:not(:last-child)::after {
        display: none;
    }
}