/* Amazon-Inspired Dashboard Design with Subtle Animated Gradients */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-text: #111111;
    --secondary-text: #565959;
    --accent-orange: #FF9900;
    --accent-orange-hover: #E88E00;
    --success-green: #067D62;
    --info-blue: #0066C0;
    --info-cyan: #008296;
    --warning-orange: #DC7000;
    --border-color: #DDDDDD;
    --hover-bg: #F0F2F2;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F5F5F5;
    color: var(--primary-text);
    -webkit-font-smoothing: antialiased;
}

.container-fluid {
    padding: 2rem !important;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.h3 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* KPI Cards - Subtle Animated Gradients */
.stat-card {
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-size: 200% 200%;
    animation: gradientFlow 10s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.stat-card .card-body {
    padding: 1.25rem !important;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card.border-left-primary {
    background: linear-gradient(135deg, #0066C0 0%, #0073D1 50%, #0066C0 100%);
}

.stat-card.border-left-success {
    background: linear-gradient(135deg, #067D62 0%, #078D70 50%, #067D62 100%);
}

.stat-card.border-left-info {
    background: linear-gradient(135deg, #008296 0%, #0092A8 50%, #008296 100%);
}

.stat-card.border-left-warning {
    background: linear-gradient(135deg, #DC7000 0%, #EC8010 50%, #DC7000 100%);
}

/* Card Text - User's Preferred Sizes */
.stat-card .text-xs {
    color: #FFFFFF !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 1 !important;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stat-card .h5 {
    color: #FFFFFF !important;
    font-weight: 900;
    font-size: 2rem;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-card .text-gray-800 {
    color: #FFFFFF !important;
}

.stat-card .text-primary,
.stat-card .text-success,
.stat-card .text-info,
.stat-card .text-warning {
    color: #FFFFFF !important;
}

.stat-card i {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 2.5rem;
    transition: all 0.2s ease;
}

.stat-card:hover i {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Chart Cards */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: white;
    border-bottom: 2px solid #F0F2F2;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-text);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #111111;
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    color: #111111;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Quick Actions */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.25rem;
    height: 100%;
    min-height: 140px;
    text-align: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-text);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quick-action-btn:hover {
    border-color: var(--accent-orange);
    background: #FFFBF5;
    color: var(--primary-text);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.quick-action-btn i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.quick-action-btn:nth-child(1) i {
    color: var(--info-blue);
}

.quick-action-btn:nth-child(2) i {
    color: var(--success-green);
}

.quick-action-btn:nth-child(3) i {
    color: #7c3aed;
}

.quick-action-btn:nth-child(4) i {
    color: var(--accent-orange);
}

.quick-action-btn:hover i {
    transform: scale(1.1);
}

.quick-action-btn span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-text);
}

/* List Group */
.list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem 0;
    color: var(--primary-text);
    transition: background 0.2s ease;
}

.list-group-item:hover {
    background: var(--hover-bg);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Badges */
.badge {
    font-weight: 700;
    padding: 0.4em 0.75em;
    border-radius: 4px;
    font-size: 0.8rem;
}

.bg-primary {
    background-color: var(--accent-orange) !important;
    color: #111111 !important;
}

/* Charts */
.chart-area,
.chart-pie {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Text Utilities */
.text-gray-800 {
    color: var(--primary-text) !important;
}

.text-gray-300 {
    color: #9CA3AF !important;
}

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

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

.font-weight-bold {
    font-weight: 700 !important;
}

/* Links */
a {
    color: var(--info-blue);
    text-decoration: none;
}

a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

/* Nav Tabs - Fix Invisible Text */
.nav-tabs .nav-link {
    color: #111111 !important;
}

.nav-tabs .nav-link.active {
    color: #111111 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .h3 {
        font-size: 1.65rem;
    }

    .container-fluid {
        padding: 1.5rem !important;
    }

    .stat-card {
        padding: 1.4rem;
    }

    .stat-card .card-body {
        padding: 1rem !important;
    }

    .stat-card .text-xs {
        font-size: 0.7rem;
    }

    .stat-card .h5 {
        font-size: 1.75rem;
    }

    .stat-card i {
        font-size: 2rem;
    }

    .quick-action-btn {
        min-height: 120px;
        padding: 1.5rem 1rem;
    }

    .quick-action-btn i {
        font-size: 2rem;
    }
}