@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #F1F5F9; /* Clean Slate-100 for better card contrast */
    --bg-card: #FFFFFF;
    --border-color: #CBD5E1; /* Slate-300 for clearer card boundaries */
    --text-primary: #0F172A; /* Slate-900 */
    --text-secondary: #475569; /* Slate-600 */
    --accent-navy: #1E3A8A; /* Deep Navy 800 - representing Trust & Public Sector */
    --accent-blue: #3B82F6; /* Professional Blue 500 */
    --accent-green: #059669; /* Forest Green 600 - representing Municipal & Community */
    --accent-gradient: linear-gradient(135deg, #1E3A8A, #2563EB);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    background-image: 
        radial-gradient(at 10% 10%, rgba(30, 58, 138, 0.04) 0px, transparent 40%),
        radial-gradient(at 90% 80%, rgba(5, 150, 105, 0.04) 0px, transparent 40%);
    background-attachment: fixed;
}

/* Glassmorphism Styles (Refactored to Clean Public/Academic Border Card) */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); /* More visible slate-tinted shadow */
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}

.glass-card:hover {
    border-color: #94A3B8; /* Slate-400 on hover */
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

/* Formal Button Styles */
.glow-btn {
    background-color: var(--accent-navy) !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 1px solid #1D4ED8;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.1);
}

.glow-btn:hover {
    background-color: #1D4ED8 !important; /* Slightly brighter blue */
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
    transform: translateY(-1px);
}

.glow-btn-emerald {
    background-color: var(--accent-green) !important;
    border: 1px solid #047857;
    border-radius: 0.375rem;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.1);
}

.glow-btn-emerald:hover {
    background-color: #047857 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
    transform: translateY(-1px);
}

/* Custom Tabs styling */
.tab-btn {
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.tab-btn.active {
    border-bottom-color: var(--accent-navy);
    color: var(--accent-navy);
    font-weight: 600;
}

/* Admin Diff styles */
.diff-view {
    font-family: 'Courier New', Courier, monospace;
}

.diff-removed {
    background-color: #FEF2F2;
    border-left: 4px solid #EF4444;
    padding: 0.5rem;
    color: #991B1B;
}

.diff-added {
    background-color: #ECFDF5;
    border-left: 4px solid #10B981;
    padding: 0.5rem;
    color: #065F46;
}

.diff-neutral {
    padding: 0.5rem;
    color: #374151;
}

/* Locked Overlay style */
.locked-section {
    position: relative;
    overflow: hidden;
}

.locked-blur {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    opacity: 0.4;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

/* Custom Range Input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #E2E8F0;
    border-radius: 5px;
    height: 6px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-navy);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(30, 58, 138, 0.2);
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
