/* Dashboard Custom Styles - Enhanced */

:root {
    --dashboard-success: #22c55e;
    --dashboard-danger: #ef4444;
    --dashboard-warning: #f97316;
    --dashboard-info: #3b82f6;
    --dashboard-primary: #3b82f6;
}

/* Global Badge Styles - Modern with subtle backgrounds */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
}

.badge.bg-primary,
.badge.bg-blue {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #2563eb !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.badge.bg-success,
.badge.bg-green {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #16a34a !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.badge.bg-danger,
.badge.bg-red {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.badge.bg-warning,
.badge.bg-orange,
.badge.bg-yellow {
    background: rgba(249, 115, 22, 0.1) !important;
    color: #ea580c !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
}

.badge.bg-info,
.badge.bg-cyan {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #0891b2 !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
}

.badge.bg-secondary,
.badge.bg-gray {
    background: rgba(107, 114, 128, 0.1) !important;
    color: #4b5563 !important;
    border-color: rgba(107, 114, 128, 0.3) !important;
}

.badge.bg-dark {
    background: rgba(31, 41, 55, 0.1) !important;
    color: #1f2937 !important;
    border-color: rgba(31, 41, 55, 0.3) !important;
}

.badge.bg-light {
    background: rgba(243, 244, 246, 0.5) !important;
    color: #6b7280 !important;
    border-color: rgba(209, 213, 219, 0.5) !important;
}

/* Badge hover effects */
.badge:hover {
    opacity: 0.9;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Stat Cards Improvements */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: all 0.3s ease;
}

.stat-card:hover::after {
    transform: translate(20%, -20%) scale(1.2);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.stat-card .bg-primary,
.stat-card .bg-green,
.stat-card .bg-cyan,
.stat-card .bg-orange {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.trend-up {
    color: var(--dashboard-success);
    background-color: rgba(34, 197, 94, 0.1);
}

.trend-down {
    color: var(--dashboard-danger);
    background-color: rgba(239, 68, 68, 0.1);
}

.trend-neutral {
    color: #6b7280;
    background-color: rgba(107, 114, 128, 0.1);
}

/* Date Filter Presets */
.date-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.date-preset-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.date-preset-btn:hover {
    background: #f9fafb;
    border-color: var(--dashboard-primary);
    transform: translateY(-1px);
}

.date-preset-btn.active {
    background: linear-gradient(135deg, var(--dashboard-primary), #2563eb);
    color: white;
    border-color: var(--dashboard-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Occupancy Gauge */
.occupancy-gauge {
    position: relative;
    text-align: center;
}

.occupancy-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--dashboard-primary), #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.occupancy-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Top Clients List */
.top-clients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-client-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.top-client-item:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
    transform: translateX(4px);
}

.top-client-item:last-child {
    border-bottom: none;
}

.client-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: var(--dashboard-primary);
    border: 2px solid rgba(59, 130, 246, 0.3);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.top-client-item:hover .client-rank {
    background: linear-gradient(135deg, var(--dashboard-primary), #2563eb);
    color: white;
    transform: scale(1.1);
}

.client-info {
    flex: 1;
    margin-left: 1rem;
}

.client-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.125rem;
}

.client-stats {
    font-size: 0.75rem;
    color: #6b7280;
}

.client-revenue {
    font-weight: 700;
    color: var(--dashboard-success);
    font-size: 1rem;
}

/* Chart Containers */
.chart-container {
    position: relative;
    min-height: 300px;
}

.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6b7280;
}

/* Metric Cards with Gradients */
.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.metric-card.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.metric-card.warning {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.metric-card.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-presets {
        width: 100%;
    }

    .date-preset-btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }

    .occupancy-value {
        font-size: 2rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation delays */
.animate-fade-in-up:nth-child(1) {
    animation-delay: 0s;
}

.animate-fade-in-up:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-fade-in-up:nth-child(3) {
    animation-delay: 0.2s;
}

.animate-fade-in-up:nth-child(4) {
    animation-delay: 0.3s;
}

/* Pulse animation for important metrics */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Card Styles */
.card-sm {
    border-radius: 0.75rem;
}

.card-sm .card-body {
    padding: 1.25rem;
}

/* List Group Enhancements */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background: #f9fafb;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: none;
}

/* Avatar Enhancements */
.avatar {
    transition: all 0.2s ease;
}

.bg-primary.avatar,
.bg-green.avatar,
.bg-cyan.avatar,
.bg-orange.avatar {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Font Weight Utilities */
.font-weight-medium {
    font-weight: 600;
}