/* -------------------------------------------------------------
   FREEZERZZ - DESIGN SYSTEM & STYLESHEET
   Theme: Ice Age Movie (Glacial, Sub-Zero, Glassmorphic, Modern)
   ------------------------------------------------------------- */

/* Custom CSS Variables */
:root {
    /* Color Palette */
    --glacier-deep: #0a1828;
    --glacier-dark: #102238;
    --glacier-medium: #17304f;
    --frost-glow: #00d2d3;
    --frost-light: #48dbfb;
    --frost-white: #f5f6fa;
    --frost-gray: #a5b1c2;
    --acorn-brown: #d35400;
    --acorn-gold: #ffb142;
    --aurora-green: #1dd1a1;
    --aurora-red: #ff6b6b;
    
    /* Transparent Blends (Glassmorphism) */
    --glass-bg: rgba(16, 34, 56, 0.65);
    --glass-border: rgba(72, 219, 251, 0.15);
    --glass-glow: rgba(0, 210, 211, 0.15);
    
    /* Typography */
    --font-heading: 'Fredoka', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    
    /* Shadows */
    --shadow-ice: 0 8px 32px 0 rgba(10, 24, 40, 0.37);
    --shadow-glow: 0 0 15px var(--frost-light);
    
    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--glacier-deep);
    color: var(--frost-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Fallback canvas for snowfall */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Layout Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Section Headers */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--frost-white);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(72, 219, 251, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-header p {
    color: var(--frost-gray);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--frost-white);
}

/* Buttons System */
.btn-primary {
    background: linear-gradient(135deg, var(--frost-light), var(--frost-glow));
    color: var(--glacier-deep);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 210, 211, 0.3);
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 210, 211, 0.5), 0 0 10px var(--frost-white);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary-link {
    background: transparent;
    border: 2px dashed var(--frost-light);
    color: var(--frost-light);
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary-link:hover {
    background: rgba(72, 219, 251, 0.1);
    color: var(--frost-white);
    border-color: var(--frost-white);
    box-shadow: 0 0 10px rgba(72, 219, 251, 0.2);
}

/* Frosty Header Navigation */
.frosty-header {
    background: rgba(10, 24, 40, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-ice-icon {
    font-size: 1.8rem;
    color: var(--frost-light);
    animation: pulse-ice 3s infinite ease-in-out;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--frost-white);
    line-height: 1;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--frost-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--frost-gray);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--frost-light);
    background: rgba(72, 219, 251, 0.08);
}

.theme-badge {
    background: linear-gradient(135deg, rgba(72, 219, 251, 0.1), rgba(0, 210, 211, 0.15));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: var(--frost-light);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0 3.5rem 0;
    background: radial-gradient(circle at top, var(--glacier-dark) 0%, var(--glacier-deep) 100%);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.hero-bg-glacier {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(72, 219, 251, 0.05), transparent);
    clip-path: polygon(0 80%, 20% 60%, 40% 85%, 60% 50%, 80% 75%, 100% 40%, 100% 100%, 0 100%);
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-intro {
    z-index: 2;
}

.sub-alert {
    background: rgba(255, 177, 66, 0.15);
    border: 1px solid rgba(255, 177, 66, 0.3);
    color: var(--acorn-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-intro h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-intro p {
    font-size: 1.15rem;
    color: var(--frost-gray);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.stats-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-ice);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ribbon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ribbon-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--frost-light);
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(72, 219, 251, 0.2);
}

.ribbon-lbl {
    font-size: 0.8rem;
    color: var(--frost-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
}

/* Scrat's Detector Card */
.scrat-detector-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-ice);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.frosty-card-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(72, 219, 251, 0.1);
    padding-bottom: 0.8rem;
}

.card-title-icon {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--acorn-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--frost-gray);
}

.scrat-animation-area {
    background: linear-gradient(180deg, #10263f 0%, #081524 100%);
    border: 1px dashed rgba(72, 219, 251, 0.3);
    border-radius: 16px;
    height: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ice-block {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(72, 219, 251, 0.8) 0%, rgba(0, 210, 211, 0.4) 100%);
    border: 2px solid var(--frost-white);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(72, 219, 251, 0.3);
    transition: var(--transition-bounce);
    z-index: 5;
}

.ice-block:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 0 30px rgba(72, 219, 251, 0.6);
}

.ice-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.ice-block:hover .ice-shimmer {
    animation: shimmer-effect 1.2s infinite;
}

.ice-cube-graphic {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tap-hint {
    position: absolute;
    bottom: -22px;
    font-size: 0.75rem;
    color: var(--frost-light);
    white-space: nowrap;
    animation: blink 1.5s infinite;
    font-family: var(--font-heading);
}

.scrat-sprite {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--acorn-brown);
    border-radius: 50% 50% 20% 20%;
    top: -50px; /* Hidden initially */
    left: 20px;
    transition: all 0.5s ease;
    z-index: 6;
    border: 1px solid var(--acorn-gold);
}

/* Cute styled custom sprite for animations */
.scrat-sprite::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -12px;
    width: 15px;
    height: 10px;
    background: var(--acorn-brown);
    border-radius: 50% 20% 20% 50%;
}

.scrat-eye {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    top: 10px;
    left: 10px;
    border: 1px solid #fff;
}

.scrat-acorn {
    position: absolute;
    color: var(--acorn-gold);
    font-size: 0.9rem;
    right: -15px;
    top: 10px;
    animation: float 1s infinite alternate;
}

.detector-feedback-msg {
    font-size: 0.85rem;
    color: var(--frost-gray);
    text-align: center;
    position: absolute;
    bottom: 8px;
    width: 90%;
}

/* Controls inside widget */
.detector-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.coordinates-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.input-field label {
    font-size: 0.75rem;
    color: var(--frost-gray);
    font-family: var(--font-heading);
}

.input-field input, select, textarea {
    background: rgba(10, 24, 40, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    color: var(--frost-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.input-field input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--frost-light);
    box-shadow: 0 0 8px rgba(72, 219, 251, 0.3);
}

/* Dashboard & Interactive Radar */
.filter-glass-bar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 1.2rem;
    align-items: center;
    box-shadow: var(--shadow-ice);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--frost-light);
    font-family: var(--font-heading);
    font-weight: 500;
}

.filter-group select {
    background: rgba(10, 24, 40, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.6rem;
    color: var(--frost-white);
    font-family: var(--font-body);
}

.search-box {
    position: relative;
    display: block;
}

.search-box input {
    width: 100%;
    padding-left: 2.5rem;
    background: rgba(10, 24, 40, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    color: var(--frost-white);
    font-family: var(--font-body);
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--frost-gray);
    font-size: 0.95rem;
}

/* Main Radar Grid Viewport Layout */
.radar-interactive-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
}

.map-visualizer-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-ice);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.map-controls {
    display: flex;
    gap: 0.75rem;
}

.map-view-btn {
    background: rgba(16, 34, 56, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--frost-gray);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.map-view-btn.active, .map-view-btn:hover {
    background: rgba(72, 219, 251, 0.15);
    color: var(--frost-light);
    border-color: var(--frost-light);
}

.glacial-map-viewport {
    background: #091321;
    border: 1px solid rgba(72, 219, 251, 0.2);
    border-radius: 16px;
    height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-glacier-cracks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background: radial-gradient(circle, transparent 20%, #000 80%),
                repeating-linear-gradient(45deg, transparent, transparent 40px, #48dbfb 40px, #48dbfb 41px),
                repeating-linear-gradient(-45deg, transparent, transparent 60px, #48dbfb 60px, #48dbfb 61px);
    pointer-events: none;
}

.map-inner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    pointer-events: none;
}

.icy-compass {
    font-size: 4rem;
    color: var(--frost-light);
    animation: rotate-slow 20s infinite linear;
}

.compass-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-top: 1rem;
    color: var(--frost-light);
}

/* Dynamic Grid Nodes Overlaid on Map */
.frozen-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.map-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--frost-light);
    border: 2px solid var(--frost-white);
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--frost-light);
    transition: var(--transition-bounce);
}

.map-node:hover {
    transform: translate(-50%, -50%) scale(1.6);
    background: var(--frost-white);
    box-shadow: 0 0 20px var(--frost-white), 0 0 10px var(--frost-glow);
    z-index: 20;
}

.map-node.selected {
    transform: translate(-50%, -50%) scale(1.6);
    background: var(--frost-glow);
    box-shadow: 0 0 25px var(--frost-glow), 0 0 10px var(--frost-white);
    border-color: var(--glacier-deep);
    z-index: 21;
}

.map-node.temp-glacial {
    background-color: var(--frost-light);
    box-shadow: 0 0 10px var(--frost-light);
}

.map-node.temp-frozen {
    background-color: #54a0ff;
    box-shadow: 0 0 10px #54a0ff;
}

.map-node.temp-chilled {
    background-color: var(--aurora-green);
    box-shadow: 0 0 10px var(--aurora-green);
}

/* Unit Profile details container */
.unit-profile-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-ice);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.card-empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    color: var(--frost-gray);
    padding: 2rem;
}

.empty-ice-icon {
    font-size: 3rem;
    color: var(--glacier-medium);
    margin-bottom: 1rem;
    animation: float 2s infinite alternate;
}

.card-empty-state h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-empty-state p {
    font-size: 0.85rem;
}

/* Active Profile Panel styles */
.card-active-profile {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(72, 219, 251, 0.1);
    padding-bottom: 1rem;
}

.profile-temp-badge {
    background: linear-gradient(135deg, var(--glacier-dark), rgba(0, 210, 211, 0.2));
    border: 1px solid var(--frost-light);
    color: var(--frost-light);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 210, 211, 0.2);
}

.profile-name-group h4 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.profile-region {
    font-size: 0.8rem;
    color: var(--frost-gray);
}

.profile-region i {
    color: var(--frost-light);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.prof-stat {
    background: rgba(10, 24, 40, 0.5);
    border: 1px solid rgba(72, 219, 251, 0.05);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
}

.prof-stat-label {
    font-size: 0.75rem;
    color: var(--frost-gray);
    text-transform: uppercase;
}

.prof-stat-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--frost-white);
}

.status-pill {
    color: var(--frost-light);
    font-weight: 700;
}

.profile-diagnostics {
    background: rgba(10, 24, 40, 0.4);
    border: 1px solid rgba(72, 219, 251, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.profile-diagnostics h5 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--frost-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gauge-bars-container {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.gauge-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gauge-lbl {
    font-size: 0.75rem;
    color: var(--frost-gray);
    display: flex;
    justify-content: space-between;
}

.gauge-lbl span {
    font-weight: 600;
    color: var(--frost-white);
}

.gauge-bar-track {
    background: var(--glacier-dark);
    height: 6px;
    border-radius: 5px;
    overflow: hidden;
}

.gauge-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.gauge-bar-fill.humidity {
    background: var(--frost-light);
}

.gauge-bar-fill.compressor {
    background: var(--acorn-gold);
}

.gauge-bar-fill.frost {
    background: var(--aurora-green);
}

.acorn-rating-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--frost-gray);
}

.acorns-row {
    display: flex;
    gap: 0.3rem;
}

.acorns-row i {
    color: var(--glacier-medium);
}

.acorns-row i.active {
    color: var(--acorn-gold);
    text-shadow: 0 0 5px rgba(255, 177, 66, 0.5);
}

/* Stats Section wrapper */
.stats-section-wrapper {
    background: radial-gradient(circle at bottom, var(--glacier-dark) 0%, var(--glacier-deep) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.analytics-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chart-glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-ice);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.chart-glass-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--frost-light);
    border-bottom: 1px solid rgba(72, 219, 251, 0.1);
    padding-bottom: 0.6rem;
}

.chart-container-inner {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--frost-gray);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* SVG Chart Specifics */
.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-bar {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.chart-bar:hover {
    fill-opacity: 0.8;
}

.chart-donut-segment {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.chart-donut-segment:hover {
    stroke-width: 20;
}

/* Records Registry Table Section */
.records-glass-table-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-ice);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px;
}

.records-table th {
    background: rgba(16, 34, 56, 0.8);
    font-family: var(--font-heading);
    color: var(--frost-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1.1rem 1.2rem;
    border-bottom: 2px solid rgba(72, 219, 251, 0.2);
}

.records-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(72, 219, 251, 0.08);
    font-size: 0.9rem;
    color: var(--frost-white);
    vertical-align: middle;
}

.records-table tbody tr {
    transition: var(--transition-smooth);
}

.records-table tbody tr:hover {
    background: rgba(72, 219, 251, 0.04);
}

.records-table tbody tr.active-row {
    background: rgba(0, 210, 211, 0.08);
}

.record-tbl-name {
    font-weight: 600;
    display: block;
}

.record-tbl-code {
    font-size: 0.75rem;
    color: var(--frost-gray);
}

.record-tbl-location i {
    color: var(--frost-light);
    margin-right: 0.25rem;
}

.table-status-pill {
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-status-pill.glacial {
    background: rgba(0, 210, 211, 0.15);
    border: 1px solid var(--frost-glow);
    color: var(--frost-glow);
}

.table-status-pill.frozen {
    background: rgba(84, 160, 255, 0.15);
    border: 1px solid #54a0ff;
    color: #54a0ff;
}

.table-status-pill.chilled {
    background: rgba(29, 209, 161, 0.15);
    border: 1px solid var(--aurora-green);
    color: var(--aurora-green);
}

.btn-tbl-action {
    background: rgba(72, 219, 251, 0.1);
    border: 1px solid rgba(72, 219, 251, 0.3);
    color: var(--frost-light);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-tbl-action:hover {
    background: var(--frost-light);
    color: var(--glacier-deep);
    border-color: var(--frost-light);
}

/* Pagination */
.records-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--frost-gray);
}

.pagination-btns {
    display: flex;
    gap: 0.5rem;
}

.btn-pagination-nav {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--frost-white);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-pagination-nav:hover:not(:disabled) {
    background: rgba(72, 219, 251, 0.1);
    border-color: var(--frost-light);
    color: var(--frost-light);
}

.btn-pagination-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Carve Registry Section */
.carve-section-wrapper {
    background: radial-gradient(circle at top, var(--glacier-dark) 0%, var(--glacier-deep) 100%);
    border-top: 1px solid var(--glass-border);
}

.carve-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.carve-intro-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cracked-ice-deco {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(72, 219, 251, 0.1) 0%, rgba(0, 210, 211, 0.2) 100%);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-ice);
}

.symbol-snowflake {
    font-size: 1.8rem;
    color: var(--frost-light);
    animation: spin-slow 15s infinite linear;
}

.carve-intro-info h3 {
    font-size: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(72, 219, 251, 0.2);
}

.carve-intro-info p {
    color: var(--frost-gray);
    font-weight: 300;
}

.compliance-note {
    background: rgba(29, 209, 161, 0.08);
    border: 1px solid rgba(29, 209, 161, 0.25);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.85rem;
}

.compliance-note i {
    color: var(--aurora-green);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.compliance-note strong {
    color: var(--frost-white);
    display: block;
    margin-bottom: 0.2rem;
}

.compliance-note p {
    color: var(--frost-gray);
    margin: 0;
}

.carve-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: var(--shadow-ice);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.6rem;
    margin-left: -0.6rem;
    margin-bottom: 1.2rem;
}

.form-group {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--frost-light);
    font-family: var(--font-heading);
    font-weight: 500;
}

.form-group input, .form-group select {
    background: rgba(10, 24, 40, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: var(--frost-white);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--frost-light);
    box-shadow: 0 0 10px rgba(72, 219, 251, 0.4);
}

.form-error-msg {
    font-size: 0.75rem;
    color: var(--aurora-red);
    margin-top: 0.15rem;
    display: none;
    font-weight: 500;
}

.form-group.has-error input, .form-group.has-error select {
    border-color: var(--aurora-red);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.2);
}

/* Frozen Notification Toast */
.frozen-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(16, 34, 56, 0.95);
    border: 1px solid var(--frost-light);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 210, 211, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    animation: slide-in-toast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.toast-icon {
    font-size: 1.2rem;
    color: var(--frost-glow);
    animation: spin-slow 5s infinite linear;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--frost-white);
}

/* Glacier Footer */
.glacier-footer {
    background: #060e18;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo-area {
    pointer-events: none;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--frost-gray);
    line-height: 1.7;
}

.footer-links h5, .footer-compliance h5 {
    font-family: var(--font-heading);
    color: var(--frost-light);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.footer-links ul, .footer-compliance ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a, .footer-compliance a {
    color: var(--frost-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover, .footer-compliance a:hover {
    color: var(--frost-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(72, 219, 251, 0.08);
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--frost-gray);
}

/* -------------------------------------------------------------
   ANIMATIONS & KEYFRAMES
   ------------------------------------------------------------- */
@keyframes pulse-ice {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(72, 219, 251, 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(72, 219, 251, 0.8);
    }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes shimmer-effect {
    0% { left: -100%; }
    100% { left: 150%; }
}

@keyframes slide-in-toast {
    0% { transform: translateY(50px) scale(0.8); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Custom classes for animations in JS */
.ice-block.cracking {
    animation: break-shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes break-shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .radar-interactive-layout {
        grid-template-columns: 1fr;
    }
    
    .analytics-layout {
        grid-template-columns: 1fr;
    }
    
    .carve-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .filter-glass-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-intro h2 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-group.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 1.5rem 1rem;
    }
    
    .hero-intro h2 {
        font-size: 1.8rem;
    }
    
    .stats-ribbon {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .coordinates-input-group {
        grid-template-columns: 1fr;
    }
}
