/* Estilos para el panel de administración */

body {
    font-family: 'Raleway', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Botones principales - Negro para fondo claro */
button[type="submit"],
button.bg-black,
.btn-primary,
#add-product-btn,
#save-landing-btn {
    background-color: #2f4b28 !important;
    color: white !important;
}

button[type="submit"]:hover,
button.bg-black:hover,
.btn-primary:hover,
#add-product-btn:hover,
#save-landing-btn:hover {
    background-color: #579143 !important;
}

/* Tablas */
table {
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 12px 16px;
}

/* Badges de estado */
.badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background-color: #dcfce7; color: #166534; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-error { background-color: #fee2e2; color: #991b1b; }
.badge-info { background-color: #dbeafe; color: #1e40af; }

/* Modal */
#product-modal.active {
    display: flex;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2f4b28;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast-success { background-color: #2f4b28; }
.toast-error { background-color: #dc2626; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
