/**
 * BarberManager - Custom Dashboard Styles
 * Estilos reutilizables para mantener consistencia visual
 */

/* ==========================================================================
   STAT CARDS (KPIs)
   ========================================================================== */

.stat-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    border: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-icon-lg {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon-lg i {
    font-size: 20px !important;
    line-height: 1;
}

/* ==========================================================================
   TREND BADGES
   ========================================================================== */

.trend-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px;
}

.trend-up {
    color: #13DEB9;
}

.trend-down {
    color: #FA896B;
}

/* ==========================================================================
   QUICK ACTION BUTTONS
   ========================================================================== */

.quick-action-btn {
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h4 {
    margin-bottom: 0.25rem;
}

.page-header .text-muted {
    margin-bottom: 0;
}

/* ==========================================================================
   WELCOME/HERO CARDS
   ========================================================================== */

.welcome-card {
    background: linear-gradient(135deg, #5D87FF 0%, #3B5998 100%);
    border-radius: 12px;
    border: none;
}

.welcome-stat-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 16px;
    gap: 10px;
}

/* ==========================================================================
   PERFORMANCE CARD
   ========================================================================== */

.performance-card {
    background: linear-gradient(135deg, #13DEB9 0%, #0AA87E 100%);
    border-radius: 12px;
}

/* ==========================================================================
   MINI STATS
   ========================================================================== */

.mini-stat {
    background: linear-gradient(135deg, rgba(93, 135, 255, 0.1) 0%, rgba(93, 135, 255, 0.05) 100%);
    border-radius: 8px;
    padding: 12px;
}

/* ==========================================================================
   ACTIVITY TIMELINE
   ========================================================================== */

.activity-timeline .timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
    border-left: 2px solid #e9ecef;
    margin-left: 10px;
}

.activity-timeline .timeline-item:last-child {
    padding-bottom: 0;
}

.activity-timeline .timeline-icon {
    position: absolute;
    left: -12px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   AVATARS
   ========================================================================== */

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 40px;
    height: 40px;
}

.avatar-lg {
    width: 48px;
    height: 48px;
}

.avatar-xl {
    width: 64px;
    height: 64px;
}

.avatar-circle {
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

/* ==========================================================================
   CHARTS
   ========================================================================== */

.chart-container {
    position: relative;
    min-height: 300px;
}

.chart-container-sm {
    min-height: 200px;
}

.chart-container-lg {
    min-height: 400px;
}

/* ==========================================================================
   TABLES ENHANCED
   ========================================================================== */

.table-card {
    border-radius: 12px;
    overflow: hidden;
}

.table-card .card-body {
    padding: 0;
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table thead th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.875rem;
    color: #5a6a85;
    padding: 12px 16px;
}

.table-card .table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

/* ==========================================================================
   BRANCH INDICATOR
   ========================================================================== */

.branch-indicator-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #5D87FF !important;
}

.branch-indicator-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

/* ==========================================================================
   RANK BADGES
   ========================================================================== */

.rank-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state > i,
.empty-state-icon {
    font-size: 4rem;
    color: #a1aab2;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h5 {
    color: #5a6a85;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #a1aab2;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   FILTER CARDS
   ========================================================================== */

.filter-card {
    background-color: #f8f9fa;
    border: none;
    border-radius: 12px;
}

.filter-card .card-body {
    padding: 1rem 1.25rem;
}

/* ==========================================================================
   INFO CARDS / TIPS
   ========================================================================== */

.info-card {
    border-left: 4px solid #539BFF;
    background-color: #f8f9fa;
}

.info-card .card-header {
    background-color: transparent;
    border-bottom: 1px solid #e9ecef;
}

/* ==========================================================================
   SUMMARY ROW (Compact Stats)
   ========================================================================== */

.summary-stat {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.summary-stat .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.summary-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.summary-stat .stat-label {
    font-size: 0.75rem;
    color: #a1aab2;
}

/* ==========================================================================
   HOVER EFFECTS
   ========================================================================== */

.hover-shadow:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   STATUS INDICATORS
   ========================================================================== */

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-dot-success { background-color: #13DEB9; }
.status-dot-warning { background-color: #FFAE1F; }
.status-dot-danger { background-color: #FA896B; }
.status-dot-info { background-color: #539BFF; }
.status-dot-primary { background-color: #5D87FF; }

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 768px) {
    .stat-card:hover {
        transform: none;
    }

    .quick-action-btn:hover {
        transform: none;
    }

    .chart-container {
        min-height: 250px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}

/* ==========================================================================
   BRANCH SELECTOR SEARCH
   ========================================================================== */

.branch-card {
    transition: all 0.3s ease;
}

.branch-card.hidden {
    display: none !important;
}

.no-results {
    display: none;
}

.no-results.show {
    display: block;
}
