/* =====================================
   VARIABLES DE COLOR
   ===================================== */
:root {
    /* Colores primarios naranja */
    --color-primary: #FF6B35;
    --color-primary-light: #FF8C5A;
    --color-primary-dark: #E05A2B;
    --color-primary-soft: #FFF0E8;
    --orange-gradient-start: #FF8C42;
    --orange-gradient-end: #FF6B35;

    /* Colores secundarios */
    --color-secondary: #004E7C;
    --color-accent: #FF9F1C;
    --color-success: #5CB85C;
    --color-danger: #D9534F;
    --color-warning: #F0AD4E;
    --color-info: #5BC0DE;

    /* Grises */
    --color-gray-dark: #292B2C;
    --color-gray: #5A5A5A;
    --color-gray-light: #ECECEC;
    --color-gray-lighter: #F8F9FA;
}

/* =====================================
   ESTILOS DE BOTONES
   ===================================== */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary-dark);
    box-shadow: 0 2px 5px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-outline-secondary {
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.btn-outline-secondary:hover {
    background-color: var(--color-primary-light);
    color: white;
}

/* =====================================
   ESTILOS DE FONDOS Y TEXTOS
   ===================================== */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-soft-primary {
    background-color: var(--color-primary-soft) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

/* =====================================
   ESTILOS DE TABLAS
   ===================================== */
.table thead {
    background: linear-gradient(135deg, var(--orange-gradient-start) 0%, var(--orange-gradient-end) 100%);
}

.table-hover tbody tr:hover {
    background-color: var(--color-primary-soft) !important;
}

/* =====================================
   AVATAR
   ===================================== */
.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 16px;
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
}

/* =====================================
   CARDS
   ===================================== */
.card {
    border: none;
    border-radius: 10px;
}

/* =====================================
   MODAL
   ===================================== */
.modal-header {
    background: linear-gradient(135deg, var(--orange-gradient-start) 0%, var(--orange-gradient-end) 100%) !important;
    border-bottom: none;
    color: white;
    padding: 1rem 1.5rem;
}

.modal-title {
    color: white;
    font-weight: bold;
}

.modal-body label {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.modal-content {
    border-radius: 0.8rem;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

.modal-footer {
    border-top: none;
    background-color: var(--color-primary-soft);
}

/* Cerrar modal */
.close {
    color: white;
    opacity: 1;
}

.close:hover {
    color: #333;
}

/* =====================================
   FORMULARIOS
   ===================================== */
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.input-group-text {
    background-color: var(--color-primary-light);
    color: white;
    border: none;
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* =====================================
   BADGES
   ===================================== */
.badge-pill {
    padding: 0.35em 0.65em;
}

/* Roles */
.badge-admin {
    background-color: var(--color-danger);
}

.badge-vendor {
    background-color: var(--color-warning);
    color: var(--color-gray-dark);
}

.badge-customer {
    background-color: var(--color-primary);
}

/* =====================================
   TOAST
   ===================================== */
.toast {
    min-width: 300px;
}

/* =====================================
   MODIFICADORES Y OTROS ESTILOS
   ===================================== */
.modal-lg {
    max-width: 850px; /* o el valor que prefieras */
}

.border-left-orange {
    border-left: 4px solid var(--color-primary-light) !important;
    transition: border-color 0.3s;
}
