/**
 * Hair Salon - Estilos Personalizados
 * Compatible con AdminLTE v4.0.0 + Bootstrap 5
 */
@font-face {
  font-family: "Futura";
  src:
    local("Futura"),
    url("fonts/futura.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}
 
@font-face {
  font-family: "FuturaMedium";
  src:
    local("FuturaMedium"),
    url("fonts/futura-second.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    /* Colores principales */
    --hs-primary: #667eea;
    --hs-secondary: #764ba2;
    --hs-success: #28a745;
    --hs-info: #17a2b8;
    --hs-warning: #ffc107;
    --hs-danger: #dc3545;
    
    /* Gradientes */
    --hs-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hs-gradient-success: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    --hs-gradient-info: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    --hs-gradient-warning: linear-gradient(135deg, #f09819 0%, #edde5d 100%);
    --hs-gradient-danger: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    
    /* Sombras */
    --hs-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --hs-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --hs-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --hs-shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    
    /* Transiciones */
    --hs-transition: all 0.3s ease;
}


body{
    font-family: 'Futura' !important;
}
/* ============================================
   SIDEBAR PERSONALIZADO
   ============================================ */
.swal2-confirm{
    background-color: var(--hs-success);
}

/* Fondo con gradiente */
.app-sidebar {
    background: var(--hs-gradient-primary) !important;
}

/* Enlaces del menú */
.app-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    margin: 2px 8px;
    transition: var(--hs-transition);
}

.app-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(5px);
}

.app-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 600;
}

/* Iconos del menú */
.app-sidebar .nav-icon {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Headers del menú */
.app-sidebar .nav-header {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px 5px;
}

/* Brand link */
.app-sidebar .brand-link {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--hs-transition);
}

.app-sidebar .brand-link:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.app-sidebar .brand-text {
    font-weight: 600;
    font-size: 1.2rem;
}

/* User panel */
.app-sidebar .user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.app-sidebar .user-panel .info a {
    color: white;
    font-weight: 500;
    text-decoration: none;
}

.app-sidebar .user-panel .info a:hover {
    text-decoration: underline;
}

/* ============================================
   NAVBAR / HEADER
   ============================================ */

.app-header {
    background: white;
    border-bottom: 1px solid #e3e6f0;
    box-shadow: var(--hs-shadow-sm);
}

.app-header .navbar-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
}

/* User menu dropdown */
.user-menu .user-image {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.user-menu .user-header {
    background: var(--hs-gradient-primary) !important;
    padding: 20px;
    text-align: center;
}

.user-menu .user-header img {
    width: 90px;
    height: 90px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-menu .user-header p {
    color: white;
    margin-top: 10px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    border-radius: 12px;
    box-shadow: var(--hs-shadow-md);
    border: none;
    transition: var(--hs-transition);
}

.card:hover {
    box-shadow: var(--hs-shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e3e6f0;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    padding: 15px 20px;
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-warning,
.card-header.bg-danger {
    color: white;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e3e6f0;
    padding: 12px 20px;
}

/* ============================================
   SMALL BOXES (Info boxes)
   ============================================ */

.small-box {
    border-radius: 12px;
    position: relative;
    display: block;
    margin-bottom: 20px;
    box-shadow: var(--hs-shadow-md);
    transition: var(--hs-transition);
}

.small-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--hs-shadow-xl);
}

.small-box > .inner {
    padding: 15px;
}

.small-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.small-box p {
    font-size: 1rem;
    margin-bottom: 0;
}

.small-box .icon {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 70px;
    opacity: 0.15;
}

.small-box-footer {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.8);
    display: block;
    padding: 8px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
    transition: var(--hs-transition);
}

.small-box-footer:hover {
    background-color: rgba(0, 0, 0, 0.15);
    color: white;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: var(--hs-transition);
}

.btn-primary {
    background: var(--hs-gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-2px);
    box-shadow: var(--hs-shadow-md);
}

.btn-sm {
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Botones con iconos */
.btn i {
    margin-right: 0px;
}

/* ============================================
   FORMULARIOS
   ============================================ */

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #e3e6f0;
    padding: 10px 15px;
    transition: var(--hs-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hs-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.input-group {
    margin-bottom: 15px;
}

/* ============================================
   TABLAS
   ============================================ */

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #495057;
}

.table tbody tr {
    transition: var(--hs-transition);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-responsive {
    border-radius: 8px;
}

/* DataTables personalización */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #e3e6f0;
    padding: 6px 12px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--hs-gradient-primary) !important;
    border-color: transparent !important;
    color: white !important;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-dismissible .btn-close {
    padding: 18px 20px;
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: var(--hs-shadow-xl);
}

.modal-header {
    border-bottom: 1px solid #e3e6f0;
    border-radius: 12px 12px 0 0;
    padding: 20px;
}

.modal-header.bg-primary,
.modal-header.bg-success,
.modal-header.bg-info,
.modal-header.bg-warning,
.modal-header.bg-danger {
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #e3e6f0;
    padding: 15px 20px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 15px;
}

.breadcrumb-item a {
    color: var(--hs-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */

.app-main {
    background-color: #f4f6f9;
    min-height: 100vh;
}

.content-header {
    padding: 20px 0;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.content {
    padding: 20px 0;
}

/* ============================================
   FOOTER
   ============================================ */

.app-footer {
    background-color: white;
    border-top: 1px solid #e3e6f0;
    color: #6c757d;
    padding: 15px;
    font-size: 0.875rem;
}

.app-footer a {
    color: var(--hs-primary);
    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   UTILIDADES
   ============================================ */

/* Gradientes de fondo */
.bg-gradient-primary {
    background: var(--hs-gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--hs-gradient-success) !important;
}

.bg-gradient-info {
    background: var(--hs-gradient-info) !important;
}

.bg-gradient-warning {
    background: var(--hs-gradient-warning) !important;
}

.bg-gradient-danger {
    background: var(--hs-gradient-danger) !important;
}

/* Sombras */
.shadow-sm {
    box-shadow: var(--hs-shadow-sm) !important;
}

.shadow {
    box-shadow: var(--hs-shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--hs-shadow-lg) !important;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease;
}

.animate-fadeInDown {
    animation: fadeInDown 0.5s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .small-box h3 {
        font-size: 2rem;
    }
    
    .small-box .icon {
        font-size: 50px;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 15px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--hs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .app-sidebar,
    .app-header,
    .app-footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .app-main {
        margin: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}