:root {
    /* Clean Professional Blue Gradient */
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);

    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius-xl: 1rem;
    --border-radius-lg: 0.75rem;

    /* Refined Soft Colors - More Monochromatic/Clean */
    --bg-soft-primary: rgba(37, 99, 235, 0.1);
    /* Blue tint */
    --bg-soft-success: rgba(16, 185, 129, 0.1);
    /* Green tint */
    --bg-soft-warning: rgba(245, 158, 11, 0.1);
    /* Orange tint */
    --bg-soft-danger: rgba(239, 68, 68, 0.1);
    /* Red tint */
    --bg-soft-info: rgba(59, 130, 246, 0.1);
    /* Blue tint (similar to primary) */
}

/* Global Modernization */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: #f3f4f6;
    color: #374151;
    /* Dark Gray (Gray-700) */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    /* Subtle pattern for glass effect context */
}

/* Glassmorphism Sidebar */
.navbar-vertical.navbar-light {
    border-right: none;
    box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Header & Typography */
.header {
    /* Background removed by user preference */
    padding-bottom: 6rem;
}

.header .display-2 {
    color: #1f2937 !important;
    /* Very Dark Gray (Gray-800) */
    font-weight: 800;
}

.header p {
    color: #4b5563 !important;
    /* Dark Gray (Gray-600) */
    font-size: 1.1rem;
    font-weight: 500;
}

.h2,
h2 {
    color: #111827;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.text-muted {
    color: #6b7280 !important;
}

/* Modern Glassmorphic Cards */
.card-stats {
    background: rgba(255, 255, 255, 0.7);
    /* translucent */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card-stats:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Card Typography */
.card-stats .h2 {
    font-size: 2rem;
    color: #1f2937;
    font-weight: 800;
}

.card-stats .card-title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #4b5563 !important;
    text-transform: uppercase;
}

/* Icons - Soft Glassy Look */
.card-stats .icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.2rem !important;
    /* Squircle */
    font-size: 1.75rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
    /* Inner glow */
}

/* Links in Cards */
.card-stats a {
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 700 !important;
    padding: 4px 8px;
    border-radius: 6px;
}

.card-stats a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Quick Start & Other Cards */
.quick-start-card,
.card {
    border: none;
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque for content */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.step-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.step-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 24px;
    bottom: -10px;
    width: 2px;
    background-color: #e5e7eb;
}

/* Button & Badge Tweaks */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 0.375rem;
    font-weight: 600;
}

.btn {
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: none;
    /* remove robust uppercase */
    padding: 0.625rem 1.25rem;
}

/* Animation Polish */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.card-stats,
.card {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Staggered delays for cards */
.col-xl-3:nth-child(1) .card-stats {
    animation-delay: 0.1s;
}

.col-xl-3:nth-child(2) .card-stats {
    animation-delay: 0.2s;
}

.col-xl-3:nth-child(3) .card-stats {
    animation-delay: 0.3s;
}

.col-xl-3:nth-child(4) .card-stats {
    animation-delay: 0.4s;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .header {
        padding-bottom: 2rem !important;
        padding-top: 2rem !important;
    }

    .card-stats {
        margin-bottom: 1rem;
    }

    .navbar-vertical {
        background: rgba(255, 255, 255, 0.95);
        /* More opaque on mobile for readability */
    }

    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}