/* Estilos para el módulo de clientes */

.cliente-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.cliente-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--bs-primary);
}

.stats-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stats-number {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.transaction-row {
    transition: background-color 0.2s ease;
}

.transaction-row:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pagada {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pendiente {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-anulada {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cliente-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.search-highlight {
    background-color: yellow;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cliente-item {
    animation: fadeIn 0.5s ease-out;
}

.cliente-item:nth-child(1) { animation-delay: 0.1s; }
.cliente-item:nth-child(2) { animation-delay: 0.15s; }
.cliente-item:nth-child(3) { animation-delay: 0.2s; }
.cliente-item:nth-child(4) { animation-delay: 0.25s; }
.cliente-item:nth-child(5) { animation-delay: 0.3s; }
.cliente-item:nth-child(6) { animation-delay: 0.35s; }

/* Responsividad */
@media (max-width: 768px) {
    .stats-box {
        margin-bottom: 10px;
        padding: 15px;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .cliente-card {
        margin-bottom: 15px;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .cliente-card {
        background-color: #1a1d23;
        border-color: #2d3238;
        color: #e4e6eb;
    }
    
    .cliente-card:hover {
        border-color: var(--bs-primary);
    }
    
    .stats-box {
        background: linear-gradient(135deg, #1a1d23 0%, #2d3238 100%);
        border-color: #3a3d43;
    }
    
    .transaction-row:hover {
        background-color: #2d3238;
    }
    
    .table {
        color: #e4e6eb;
    }
}

/* Vista de impresión */
@media print {
    .btn, .nav-section, .sidebar {
        display: none !important;
    }
    
    .cliente-card {
        break-inside: avoid;
        border: 1px solid #000 !important;
        margin-bottom: 20px;
    }
    
    .stats-box {
        border: 1px solid #000 !important;
    }
}