/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores baseadas em #0E6518 (Verde Portuário) */
    --primary-green: #0E6518;
    --secondary-green: #16A34A;
    --accent-green: #22C55E;
    --light-green: #DCFCE7;
    --dark-green: #0A4D13;
    --forest-green: #166534;
    
    /* Cores complementares */
    --ocean-blue: #0369A1;
    --light-blue: #E0F2FE;
    --steel-gray: #475569;
    --light-gray: #F8FAFC;
    --medium-gray: #64748B;
    --dark-gray: #334155;
    --white: #FFFFFF;
    
    /* Estados */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    --gradient-accent: linear-gradient(135deg, var(--light-green) 0%, #F0FDF4 100%);
    --gradient-ocean: linear-gradient(135deg, var(--ocean-blue) 0%, #0284C7 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(14, 101, 24, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(14, 101, 24, 0.1), 0 2px 4px -1px rgba(14, 101, 24, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(14, 101, 24, 0.1), 0 4px 6px -2px rgba(14, 101, 24, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(14, 101, 24, 0.1), 0 10px 10px -5px rgba(14, 101, 24, 0.04);
    
    /* Transições */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Bordas */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* Container Principal */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 100;
    border-right: 1px solid rgba(34, 197, 94, 0.1);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(34,197,94,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

/* Logo */
.logo {
    padding: 30px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    position: relative;
    background: rgba(34, 197, 94, 0.05);
}

.logo h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.logo p {
    font-size: 13px;
    color: var(--accent-green);
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navegação */
.nav-menu {
    list-style: none;
    flex-grow: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    margin: 4px 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background: var(--accent-green);
    border-radius: 0 4px 4px 0;
    transition: var(--transition-normal);
}

.nav-item:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: translateX(8px);
    border-color: rgba(34, 197, 94, 0.2);
}

.nav-item:hover::before {
    width: 4px;
    height: 24px;
}

.nav-item.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateX(8px);
}

.nav-item.active::before {
    width: 4px;
    height: 32px;
    background: var(--accent-green);
}

.nav-icon {
    font-size: 20px;
    margin-right: 16px;
    width: 24px;
    text-align: center;
    opacity: 0.9;
    transition: var(--transition-fast);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

.nav-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Botão de Logout */
.logout-btn {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    margin: 15px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #fca5a5;
    cursor: pointer;
    transition: var(--transition-normal);
    font-weight: 600;
    font-size: 15px;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main-content {
    flex: 1;
    background: var(--light-gray);
    overflow-y: auto;
    position: relative;
}

/* Header */
.header {
    background: var(--white);
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 35px;
    border-bottom: 3px solid var(--accent-green);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left h1 {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-left p {
    color: var(--medium-gray);
    font-size: 16px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(14, 101, 24, 0.1);
}

.company-name {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 15px;
}

.company-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--white);
}

/* ===== CONTEÚDO DAS PÁGINAS ===== */
.content {
    padding: 0 35px 35px;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: pageEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== DASHBOARD ===== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition-normal);
    border: 1px solid rgba(14, 101, 24, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-green);
}

.stat-icon {
    font-size: 52px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(14, 101, 24, 0.1);
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-green);
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.stat-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.stat-change.neutral {
    color: var(--medium-gray);
    background: rgba(100, 116, 139, 0.1);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
}

/* Categorias de Resíduos */
.waste-categories {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 101, 24, 0.08);
}

.waste-categories h3 {
    color: var(--primary-green);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.waste-categories h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    padding: 25px;
    border: 2px solid #e2e8f0;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1;
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card:hover {
    border-color: var(--secondary-green);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.category-card > * {
    position: relative;
    z-index: 2;
}

.category-icon {
    font-size: 42px;
    margin-bottom: 18px;
    display: block;
}

.category-card h4 {
    color: var(--primary-green);
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.category-card p {
    color: var(--medium-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.available {
    font-size: 14px;
    color: var(--success);
    font-weight: 600;
}

.price {
    font-size: 18px;
    color: var(--primary-green);
    font-weight: 800;
}

/* Atividades Recentes */
.recent-activity {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 101, 24, 0.08);
}

.recent-activity h3 {
    color: var(--primary-green);
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.recent-activity h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-green);
    transition: var(--transition-normal);
}

.activity-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.activity-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(14, 101, 24, 0.1);
}

.activity-info p {
    color: var(--dark-gray);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
    font-weight: 500;
}

.activity-time {
    color: var(--medium-gray);
    font-size: 13px;
    font-weight: 500;
}

/* ===== MARKETPLACE ===== */
.marketplace-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 101, 24, 0.08);
}

.marketplace-header h2 {
    color: var(--primary-green);
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 800;
}

.marketplace-filters {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.marketplace-filters select,
.marketplace-filters input {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
    background: var(--white);
    min-width: 200px;
}

.marketplace-filters select:focus,
.marketplace-filters input:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.filter-btn {
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

.offer-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border: 1px solid rgba(14, 101, 24, 0.08);
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.offer-company {
    font-weight: 800;
    color: var(--primary-green);
    font-size: 20px;
}

.offer-date {
    color: var(--medium-gray);
    font-size: 13px;
    font-weight: 500;
}

.offer-category {
    background: var(--gradient-accent);
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    display: inline-block;
    border: 1px solid rgba(14, 101, 24, 0.2);
}

.offer-details {
    margin-bottom: 18px;
}

.offer-quantity {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 6px;
}

.offer-price {
    font-size: 22px;
    color: var(--success);
    font-weight: 800;
}

.offer-description {
    color: var(--medium-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.offer-actions {
    display: flex;
    gap: 12px;
}

.contact-btn, .buy-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition-normal);
}

.contact-btn {
    background: #f1f5f9;
    color: var(--primary-green);
    border: 2px solid #e2e8f0;
}

.contact-btn:hover {
    background: #e2e8f0;
    border-color: var(--secondary-green);
}

.buy-btn {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== FORMULÁRIOS ===== */
.form-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 101, 24, 0.08);
}

.form-container h2 {
    color: var(--primary-green);
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.form-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-group small {
    color: var(--medium-gray);
    font-size: 13px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

.submit-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 18px 36px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 77, 19, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--white);
    margin: 3% auto;
    padding: 40px;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(14, 101, 24, 0.1);
    animation: modalEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: var(--medium-gray);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.close:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ===== TABS ===== */
.contracts-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.tab-btn {
    padding: 16px 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 700;
    font-size: 15px;
    color: var(--medium-gray);
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: var(--transition-fast);
}

.tab-btn.active {
    color: var(--primary-green);
    background: rgba(14, 101, 24, 0.05);
}

.tab-btn.active::after {
    background: var(--gradient-primary);
}

.tab-btn:hover:not(.active) {
    color: var(--secondary-green);
    background: rgba(22, 163, 74, 0.05);
}

/* ===== CARDS DIVERSOS ===== */
.logistics-grid,
.reports-grid,
.settings-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.logistics-card,
.report-card,
.settings-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 101, 24, 0.08);
    transition: var(--transition-normal);
}

.logistics-card:hover,
.report-card:hover,
.settings-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.logistics-card h3,
.report-card h3,
.settings-section h3 {
    color: var(--primary-green);
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.logistics-card h3::after,
.report-card h3::after,
.settings-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== LISTAS ===== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    transition: var(--transition-fast);
}

.setting-item:hover {
    border-color: var(--accent-green);
    transform: translateX(4px);
}

.setting-item label {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 15px;
}

/* ===== BOTÕES ESPECIAIS ===== */
.create-demand-btn {
    background: var(--gradient-ocean);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.create-demand-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== CONTAINERS ESPECIAIS ===== */
.purchase-container,
.contracts-container,
.logistics-container,
.reports-container,
.settings-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(14, 101, 24, 0.08);
}

.purchase-container h2,
.contracts-container h2,
.logistics-container h2,
.reports-container h2,
.settings-container h2 {
    color: var(--primary-green);
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.purchase-container h2::after,
.contracts-container h2::after,
.logistics-container h2::after,
.reports-container h2::after,
.settings-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
        position: relative;
    }
    
    .logo {
        padding: 15px;
        min-width: 200px;
    }
    
    .logo h2 {
        font-size: 18px;
    }
    
    .logo p {
        font-size: 11px;
    }
    
    .nav-menu {
        display: flex;
        gap: 8px;
        padding: 0;
        margin-left: 15px;
    }
    
    .nav-item {
        min-width: 100px;
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
        margin: 0;
    }
    
    .nav-icon {
        margin-right: 0;
        margin-bottom: 4px;
        font-size: 18px;
    }
    
    .nav-text {
        font-size: 11px;
        font-weight: 600;
    }
    
    .logout-btn {
        min-width: 80px;
        flex-direction: column;
        padding: 12px 8px;
        margin: 0;
        margin-left: 15px;
    }
    
    .header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 24px;
    }
    
    .content {
        padding: 0 20px 20px;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .marketplace-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .marketplace-filters select,
    .marketplace-filters input {
        min-width: auto;
    }
    
    .marketplace-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .logistics-grid,
    .reports-grid,
    .settings-sections {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .form-container,
    .waste-categories,
    .recent-activity,
    .marketplace-header,
    .purchase-container,
    .contracts-container,
    .logistics-container,
    .reports-container,
    .settings-container {
        padding: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 20px;
    }
}

/* ===== ANIMAÇÕES ADICIONAIS ===== */
@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== SCROLLBAR CUSTOMIZADA ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

/* ===== UTILITÁRIOS ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }