/* Custom CSS for Ecocycle */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

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

.table th {
    font-weight: 600;
    color: #495057;
}

/* Dashboard summary cards */
.summary-card {
    color: white;
}
.summary-card.bg-primary { background: linear-gradient(45deg, #0d6efd, #0dcaf0) !important; }
.summary-card.bg-success { background: linear-gradient(45deg, #198754, #20c997) !important; }
.summary-card.bg-warning { background: linear-gradient(45deg, #ffc107, #fd7e14) !important; }

/* Timeline CSS */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #e9ecef;
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    color: #fff;
    font-size: 12px;
    z-index: 1;
}

.timeline-badge.bg-success { background-color: #198754 !important; }
.timeline-badge.bg-warning { background-color: #ffc107 !important; }
.timeline-badge.bg-primary { background-color: #0d6efd !important; }
.timeline-badge.bg-secondary { background-color: #6c757d !important; }

.timeline-content {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* --- APP SHELL (Mobile Bottom Bar & Desktop Sidebar) --- */
.app-header {
    background-color: #198754; /* Green */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-navbar {
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1020;
}

.nav-item-link {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.nav-item-link.active {
    color: #198754;
    font-weight: 600;
}

.nav-item-link:hover {
    color: #198754;
    background-color: #f8f9fa;
}

.nav-item-link i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* Desktop layout */
@media (min-width: 768px) {
    .app-navbar {
        position: fixed;
        top: 60px; /* Below header */
        left: 0;
        bottom: 0;
        width: 250px;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    }
    
    .nav-item-link {
        flex-direction: row;
        padding: 15px 20px;
        margin: 5px 15px;
    }
    
    .nav-item-link i {
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .app-main-content {
        margin-left: 250px;
        padding: 30px;
        min-height: calc(100vh - 60px);
    }
}

/* Mobile layout */
@media (max-width: 767.98px) {
    .app-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        padding: 5px 0;
    }
    
    .nav-item-link span {
        font-size: 0.75rem;
    }
    
    .app-main-content {
        padding: 20px 15px 80px 15px; /* bottom padding for navbar */
        min-height: calc(100vh - 60px);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Mockup specific styles */
.kpi-value-blue { color: #0d6efd; }
.kpi-value-green { color: #198754; }
.kpi-value-orange { color: #fd7e14; }

.tree-icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coleta-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: #fff;
    margin-bottom: 15px;
    padding: 15px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.coleta-kebab {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: #6c757d;
}

