* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f7e8;
    color: #2d3e2b;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2d6a2d;
}

/* Botones */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: #4caf50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4caf50;
    color: #4caf50;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-success {
    background: #2196f3;
    color: white;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 60px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #4caf50;
    color: white;
}

/* Productos grid */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.producto-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

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

.producto-nombre {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d6a2d;
    margin-bottom: 8px;
}

.producto-precio {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff9800;
    margin: 10px 0;
}

.producto-cantidad {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.producto-productor {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
}

/* Pedidos */
.pedido-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 15px;
    border-left: 5px solid #4caf50;
}

.pedido-estado {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 10px 0;
}

.estado-pendiente { background: #fff3e0; color: #ff9800; }
.estado-aceptado { background: #e3f2fd; color: #2196f3; }
.estado-completado { background: #e8f5e9; color: #4caf50; }
.estado-rechazado { background: #ffebee; color: #f44336; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.modal-content input, .modal-content select, .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
}

/* Search */
.search-bar input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Stats */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4caf50;
}

.reporte-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.reporte-section h4 {
    margin-bottom: 10px;
    color: #2e7d32;
}

.reporte-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.reporte-row:last-child {
    border-bottom: none;
}