:root {
    --primary: #1152d4;
    --primary-light: #4477e6;
    --background: #f6f6f8;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(226, 232, 240, 0.85);
}

.dark {
    --background: #101622;
    --card-bg: rgba(30, 41, 59, 0.78);
    --border-color: rgba(51, 65, 85, 0.85);
}

body {
    background-color: var(--background);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Styles */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 1.75rem;
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px 0 rgba(15, 23, 42, 0.14);
}

/* Typography Enhancements */
.font-display {
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.04em;
}

/* Components */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.dark .badge-success {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

.dark .badge-primary {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.pulse-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.35rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pulse-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
}

.dark .pulse-card:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: #3b82f6;
}

.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(17, 82, 212, 0.4);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 15px 35px -5px rgba(17, 82, 212, 0.6);
}

/* Navigation Styles */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #94a3b8;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 1rem;
}

.nav-item.active {
    color: #3b82f6;
    transform: translateY(-3px);
}

.nav-item.active span.material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

.nav-item-top {
    color: #64748b;
}

.dark .nav-item-top {
    color: #94a3b8;
}

.nav-item-top.active {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(17, 82, 212, 0.35);
}

/* NPS Scale Interaction */
.nps-node {
    height: 3rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.nps-node:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.nps-node.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 18px -3px rgba(17, 82, 212, 0.5);
    transform: scale(1.06);
}

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

.view-section.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.hidden {
    display: none;
}
