/* ==========================================================================
   FrigidFlow Simple Dashboard - Custom CSS System (Vanilla)
   ========================================================================== */

/* Design Tokens & Theme Setup */
:root {
    --bg-main: #0a0d16;
    --bg-sidebar: #101424;
    --bg-card: #151b2d;
    --bg-card-hover: #1e263f;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-color-active: rgba(0, 242, 254, 0.4);
    
    /* Neon Cold Color Palette */
    --color-primary: #00f2fe;     /* Ice Teal */
    --color-secondary: #4facfe;   /* Electric Blue */
    --color-success: #10b981;     /* Active Green */
    --color-warning: #f59e0b;     /* Warning Amber */
    --color-danger: #ef4444;      /* Alert Red */
    
    /* Neutral Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow-primary: 0 0 15px rgba(0, 242, 254, 0.35);
    --glow-success: 0 0 12px rgba(16, 185, 129, 0.3);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    background: radial-gradient(circle at 50% 50%, #0e1526 0%, #04060b 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

/* App Structure */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #040814;
    font-weight: 600;
    box-shadow: var(--glow-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}
.btn-block {
    display: flex;
    width: 100%;
}
.block {
    display: flex;
    width: 100%;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-teal {
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

/* Sidebar Layout */
.sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
    border: 1px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
}

.logo-icon i {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.nav-item.active {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: inset 0 0 8px rgba(0, 242, 254, 0.15);
}

.kpis-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.kpis-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.kpi-card {
    background: rgba(21, 27, 45, 0.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-smooth);
}
.kpi-card:hover {
    border-color: var(--border-color-active);
    transform: translateX(4px) translateY(-1px);
    background: rgba(21, 27, 45, 0.6);
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.15);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin: 2px 0;
}
.kpi-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sheet-notice {
    background: linear-gradient(180deg, rgba(79, 172, 254, 0.03), rgba(0, 242, 254, 0.05));
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-top: auto;
}
.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 8px;
}
.sheet-notice p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Snowflake Animation */
@keyframes frostPulse {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 1; filter: drop-shadow(0 0 8px var(--color-primary)); }
    100% { transform: scale(1) rotate(360deg); opacity: 0.8; }
}
.frost-effect {
    animation: frostPulse 8s infinite linear;
}

/* Main Workspace */
.main-content {
    padding: 30px;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.view-pane.hidden {
    display: none !important;
}

/* Header & Controls */
.main-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar-container {
    flex-grow: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
}

#search-input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 16px 12px 48px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}
#search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    background-color: rgba(21, 27, 45, 0.8);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Filters Drawer */
.filters-drawer {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.filters-drawer.closed {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    border: none;
    pointer-events: none;
    margin-bottom: -24px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.col-span-2 {
    grid-column: span 2;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}
.filter-group label span {
    color: var(--color-primary);
    font-weight: 600;
}

/* Range Slider Customization */
.range-slider-container {
    padding: 10px 0;
}
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transition: var(--transition-smooth);
}
input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.35) 100%);
    height: 6px;
    border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
    transition: var(--transition-smooth);
    margin-top: -6px;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.9);
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.checkbox-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.checkbox-btn {
    cursor: pointer;
}
.checkbox-btn input {
    display: none;
}
.checkbox-btn .btn-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--font-heading);
    text-align: center;
    transition: var(--transition-smooth);
}
.checkbox-btn input:checked + .btn-label {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: inset 0 0 8px rgba(0, 242, 254, 0.2);
}

.tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-checkbox {
    cursor: pointer;
}
.tag-checkbox input {
    display: none;
}
.tag-checkbox span {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.tag-checkbox input:checked + span {
    background: rgba(79, 172, 254, 0.12);
    border-color: var(--color-secondary);
    color: var(--text-primary);
}

.drawer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Analytics Layout */
.dashboard-analytics {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h4 {
    font-size: 0.98rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 20px;
    position: relative;
    flex-grow: 1;
}

.map-card {
    min-height: 320px;
}
.map-container {
    padding: 0;
    background: radial-gradient(circle at center, #10162a 0%, #05070d 100%), 
                repeating-linear-gradient(rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 20px),
                repeating-linear-gradient(90deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 20px);
    overflow: hidden;
}

.svg-map-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.map-svg {
    width: 100%;
    height: 100%;
    max-height: 320px;
}
.map-path-india {
    fill: #111726;
    stroke: rgba(0, 242, 254, 0.2);
    stroke-width: 1.5;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.05));
}
.map-path-india:hover {
    fill: #162035;
    stroke: var(--color-primary);
}

.map-pin {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.map-pin:hover {
    transform: scale(1.2);
}
.map-pin circle.pulse {
    animation: pinPulse 2s infinite ease-out;
    transform-origin: center;
}

@keyframes pinPulse {
    0% { r: 5px; opacity: 1; stroke-width: 1px; }
    50% { opacity: 0.5; stroke-width: 3px; }
    100% { r: 18px; opacity: 0; stroke-width: 1px; }
}

.map-tooltip {
    position: absolute;
    background-color: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 8px 12px;
    pointer-events: none;
    font-size: 0.75rem;
    z-index: 100;
    box-shadow: var(--shadow-premium);
    opacity: 0;
    transform: translate(-50%, -115%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chart-card canvas {
    max-height: 250px;
}

/* Inventory Section */
.inventory-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inventory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
}
.section-title span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.sorting-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sorting-controls label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.sorting-controls select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

/* Inventory Grid & Cards */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    transition: var(--transition-smooth);
}
.inventory-grid.list-view {
    grid-template-columns: 1fr;
}

.facility-card {
    background: rgba(21, 27, 45, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition-smooth);
}

.facility-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.15);
    background: rgba(30, 38, 63, 0.65);
}

.facility-card.Deep-Freeze::before {
    background: linear-gradient(90deg, #00f2fe, #00c6ff);
}
.facility-card.Chilled::before {
    background: linear-gradient(90deg, #38ef7d, #11998e);
}
.facility-card.Ambient::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.card-top {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.temp-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.Deep-Freeze .temp-badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
}
.Chilled .temp-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.Ambient .temp-badge {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.price-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}
.price-tag span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.facility-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}
.facility-card h3:hover {
    color: var(--color-primary);
    cursor: pointer;
}

.location-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vacancy-tracker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.tracker-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.tracker-labels strong {
    color: var(--text-primary);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}
.Deep-Freeze .progress-bar { background: var(--color-primary); box-shadow: 0 0 8px var(--color-primary); }
.Chilled .progress-bar { background: var(--color-success); box-shadow: 0 0 8px var(--color-success); }
.Ambient .progress-bar { background: var(--color-warning); box-shadow: 0 0 8px var(--color-warning); }

.amenities-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

.amenity-chip {
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-gov {
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 242, 254, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-crowd {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* List View specifics */
.list-view .facility-card {
    flex-direction: row;
    align-items: center;
}
.list-view .facility-card::before {
    width: 4px;
    height: 100%;
}
.list-view .card-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 70%;
    padding: 16px 24px;
}
.list-view .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 100px;
}
.list-view .vacancy-tracker {
    width: 200px;
    margin: 0;
}
.list-view .amenities-preview {
    display: none;
}
.list-view .card-footer {
    width: 30%;
    border-top: none;
    border-left: 1px solid var(--border-color);
    background: transparent;
    padding: 16px 24px;
    flex-direction: row-reverse;
}

/* Modals & Dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 8, 14, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-active);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium), 0 0 30px rgba(0, 242, 254, 0.15);
    transform: scale(0.95);
    transition: var(--transition-smooth);
}
.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    z-index: 10;
}
.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    max-height: 85vh;
}

.modal-details-col {
    padding: 35px;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.modal-header-section {
    margin-bottom: 25px;
}
.modal-header-section .temp-badge {
    display: inline-block;
    margin-bottom: 8px;
}
.modal-header-section h2 {
    font-size: 1.7rem;
    margin-bottom: 6px;
}
.modal-location {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.progress-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 25px;
}
.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.progress-details strong {
    color: var(--text-primary);
}
.progress-percentage-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

.modal-spec-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}
.spec-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.spec-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-primary);
}
.spec-unit {
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.modal-amenities-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}
.features-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.features-list li i {
    color: var(--color-success);
}

.modal-contact-col {
    padding: 35px;
    background-color: rgba(6, 8, 14, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.modal-contact-col h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.contact-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}
.form-group input, .form-group textarea, .form-group select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-group textarea {
    height: 70px;
    resize: none;
}

.operator-direct {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
}
.operator-direct span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.direct-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.direct-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.direct-details a {
    color: var(--color-primary);
    text-decoration: none;
}
.direct-details a:hover {
    text-decoration: underline;
}

/* Pipelines Formatting */
.pipeline-header {
    margin-bottom: 15px;
}
.pipeline-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}
.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 24px;
}
.gov-sync-card {
    min-height: 250px;
}
.gov-sync-card select {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
}

.terminal-card {
    display: flex;
    flex-direction: column;
}
.term-status-indicator {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-success);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.term-status-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
}
.terminal-body {
    padding: 15px;
    background-color: #05070c;
    border-radius: 0 0 12px 12px;
}
.terminal-container {
    height: 220px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
    padding: 18px;
    background: #030509;
    border: 1px solid rgba(0, 242, 254, 0.12);
    border-radius: 8px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}
.terminal-container::-webkit-scrollbar {
    width: 4px;
}
.terminal-container::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 2px;
}
.terminal-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.terminal-line {
    line-height: 1.4;
    word-break: break-all;
}
.term-time {
    color: #4a5568;
    margin-right: 6px;
}
.term-prefix {
    font-weight: bold;
    margin-right: 4px;
}
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-primary { color: #00f2fe !important; }

/* Guide Card Setup */
.guide-card {
    margin-top: 24px;
}
.guide-body {
    padding: 24px;
}
.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.step-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: var(--transition-smooth);
}
.step-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.02);
}
.step-num {
    position: absolute;
    top: -12px;
    left: 20px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #040814;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
    font-size: 0.85rem;
}
.step-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 5px;
    color: var(--text-primary);
}
.step-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.code-link {
    color: var(--color-primary);
    text-decoration: none;
    font-family: monospace;
}
.code-link:hover {
    text-decoration: underline;
}

/* Onboarding Hero Banner */
.onboarding-hero-card {
    background: linear-gradient(135deg, rgba(21, 27, 45, 0.7), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 16px;
    padding: 24px 30px;
    position: relative;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}
.hero-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 5;
}
.hero-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
    border-color: rgba(239, 68, 68, 0.3);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(0, 242, 254, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.15);
    margin-bottom: 12px;
}
.onboarding-hero-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
.hero-grid-desc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.desc-col h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.desc-col p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Margin and Padding Utilities */
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-24 { margin-top: 24px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.p-30 { padding: 30px; }

/* Responsiveness Settings */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        height: auto;
        position: static;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .brand {
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }
    .sidebar-menu {
        flex-direction: row;
        margin-bottom: 0;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    .nav-item {
        width: auto;
        flex-grow: 1;
        justify-content: center;
        padding: 10px 14px;
    }
    .kpis-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        width: 100%;
        margin-top: 10px;
    }
    .kpis-section h3 {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
    .kpi-card {
        margin-bottom: 0;
    }
    .kpi-card:hover {
        transform: translateY(-2px);
    }
    .sheet-notice {
        margin-top: 10px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        flex-wrap: wrap;
    }
    .sheet-notice p {
        margin-bottom: 0;
        flex-grow: 1;
        max-width: 60%;
    }
    .sheet-notice .btn {
        width: auto;
        margin-top: 0;
    }
    .main-content {
        height: auto;
        overflow-y: visible;
        padding: 20px;
    }
    .dashboard-analytics {
        grid-template-columns: 1fr;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        max-height: 90vh;
    }
    .modal-details-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
    }
    .modal-contact-col {
        padding: 24px;
    }
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-grid-desc {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
    .checkbox-buttons {
        grid-template-columns: 1fr;
    }
    .list-view .facility-card {
        flex-direction: column;
        align-items: stretch;
    }
    .list-view .card-top {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
    }
    .list-view .card-footer {
        width: 100%;
        border-top: 1px solid var(--border-color);
        border-left: none;
        flex-direction: row;
    }
    .list-view .vacancy-tracker {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .guide-steps {
        grid-template-columns: 1fr;
    }
}
