/* Vultrik Design System - style.css */

:root {
    /* Vultrik Brand Colors - Enhanced Palette */
    --bg-deep: #020408;
    --bg-card: rgba(13, 17, 23, 0.6);
    --cyan-neon: #00e1ff;
    --cyan-glow: rgba(0, 225, 255, 0.2);
    --indigo-neon: #818cf8;
    --indigo-glow: rgba(129, 140, 248, 0.2);
    --grey-steel: #728193;
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(5, 7, 10, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Animation Tokens */
    --transition-premium: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, var(--cyan-glow), transparent 30%),
        radial-gradient(circle at 85% 30%, var(--indigo-glow), transparent 30%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    background-attachment: fixed;
}

body {
    cursor: none !important;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 10px;
    border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-neon);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--cyan-neon), var(--indigo-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px; /* Fixed height for consistency */
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s ease;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-main);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo span {
    color: var(--cyan-neon);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-neon);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--cyan-neon);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-trigger i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--cyan-glow) inset;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-header {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--grey-steel);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    padding-left: 10px;
    border-left: 2px solid var(--cyan-neon);
}

.dropdown-content a {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content a:hover {
    background: rgba(0, 225, 255, 0.08);
    color: var(--cyan-neon);
    padding-left: 18px;
}

.dropdown-content a::after {
    display: none;
}

/* Status Labels for Dropdown */
.drop-status {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: auto;
}

.drop-status.live { background: var(--cyan-neon); color: var(--bg-deep); }
.drop-status.alpha { background: var(--indigo-neon); color: white; }
.drop-status.soon { background: var(--grey-steel); color: var(--bg-deep); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.btn.primary {
    background: var(--cyan-neon);
    color: var(--bg-deep);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px var(--cyan-glow);
}

.btn.outline {
    border-color: var(--cyan-neon);
    color: var(--cyan-neon);
}

.btn.outline:hover {
    background: rgba(0, 225, 255, 0.1);
    transform: translateY(-3px);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem;
    position: relative;
    backdrop-filter: blur(20px);
    transition: var(--transition-premium);
    overflow: hidden;
    transform-style: preserve-3d;
}

.card:hover {
    border-color: rgba(0, 225, 255, 0.4);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px var(--cyan-glow) inset;
    transform: translateY(-5px) translateZ(20px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: 0.6s;
}


.card:hover::before {
    left: 100%;
}

/* Hero Section Utilities */
.badge-ai {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    background: rgba(0, 225, 255, 0.05);
    border: 1px solid var(--cyan-neon);
    border-radius: 50px;
    color: var(--cyan-neon);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    box-shadow: 0 0 20px var(--cyan-glow);
    text-transform: uppercase;
}

/* Custom Cursor */
#vultrik-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: #00e1ff !important;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 9999999 !important;
    transition: transform 0.05s ease-out;
    box-shadow: 0 0 15px #00e1ff;
    display: block !important;
}

#vultrik-cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid #00e1ff !important;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 9999998 !important;
    transition: all 0.15s ease-out;
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.3);
    display: block !important;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background: rgba(0, 225, 255, 0.1);
    border-color: var(--cyan-neon);
    border-width: 2px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 6rem 5% 3rem;
    background: rgba(5, 7, 10, 0.98);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--cyan-neon);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Sidebar Layout — managed by relay-os.html scoped styles */
.page-with-sidebar {
    display: block;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--cyan-neon);
    background: rgba(0, 225, 255, 0.05);
    border-left-color: var(--cyan-neon);
}

.sidebar-header {
    padding: 1.5rem 2rem 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey-steel);
    font-weight: 800;
    opacity: 0.7;
}

.sidebar-toggle {
    display: none;
}

/* UI Mockup Components */
.mockup-container {
    background: #0d1117;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.mockup-header {
    background: rgba(255,255,255,0.03);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mockup-body {
    padding: 20px;
}

/* Kanban */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.kanban-column {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px;
    min-width: 250px;
    flex: 1;
}

.kanban-card-ui {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--cyan-neon);
}

/* Tables */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.premium-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
}

.premium-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--glass-border);
}

/* Metrics */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-item {
    background: rgba(255,255,255,0.02);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    color: var(--cyan-neon);
}

/* Badges */
.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-live { background: var(--cyan-neon); color: var(--bg-deep); }
.status-dev { background: var(--grey-steel); color: var(--bg-deep); }

/* Responsive Sidebar */
@media (max-width: 1024px) {
    #sidebar { 
        transform: translateX(-100%);
    }
    #sidebar.open {
        transform: translateX(0);
    }
    .relay-main { 
        margin-left: 0 !important; 
        padding: 2rem 5% !important;
    }
    .page-with-sidebar .section {
        margin: 0 auto;
    }
    .sidebar-toggle {
        display: block;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        background: var(--cyan-neon);
        color: var(--bg-deep);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        cursor: pointer;
        box-shadow: 0 0 20px var(--cyan-glow);
    }
}

/* Module Card Premium Styling */
.module-card-v2 {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.module-card-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 225, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.module-card-v2:hover {
    border-color: var(--cyan-neon);
    background: rgba(0, 225, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.module-card-v2:hover::before {
    opacity: 1;
}

.module-card-v2 i {
    font-size: 1.2rem;
    color: var(--cyan-neon);
    margin-bottom: 1rem;
    display: block;
}

.module-card-v2 .mod-label {
    font-size: 0.6rem;
    color: var(--grey-steel);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.module-card-v2 .mod-title {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

/* CPQ & Financial Tables */
.cpq-table, .wip-table, .audit-table, .perm-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 1rem 0;
}

.cpq-table th, .wip-table th, .audit-table th, .perm-matrix th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.cpq-table td, .wip-table td, .audit-table td, .perm-matrix td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
}

.cpq-sku {
    font-family: monospace;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--cyan-neon);
}

.cpq-total-row {
    background: rgba(0, 225, 255, 0.05);
    font-weight: 800;
}

/* Resource Heatmap */
.res-grid {
    display: grid;
    grid-template-columns: 180px repeat(5, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.res-cell {
    background: var(--bg-deep);
    padding: 14px 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.res-header {
    background: rgba(255,255,255,0.03);
    font-weight: 800;
    color: var(--grey-steel);
    text-transform: uppercase;
    font-size: 0.65rem;
}

.res-name {
    justify-content: flex-start;
    font-weight: 700;
    color: white;
}

.heat-safe { background: rgba(16, 185, 129, 0.15); color: #10b981; font-weight: 800; }
.heat-warn { background: rgba(245, 158, 11, 0.15); color: #f59e0b; font-weight: 800; }
.heat-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; font-weight: 800; }
.heat-empty { color: var(--text-muted); opacity: 0.5; }

/* OKR & Progress */
.okr-item {
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.02);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.okr-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.progress-track {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--cyan-neon);
    box-shadow: 0 0 10px var(--cyan-glow);
    transition: width 1s ease;
}

.progress-fill.green { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }

.okr-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* AI Swarm & Briefings */
.digest-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.digest-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border-left: 3px solid var(--cyan-neon);
    margin-bottom: 1rem;
}

.digest-item.risk { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.digest-item.success { border-left-color: #10b981; background: rgba(16, 185, 129, 0.05); }

.digest-time {
    font-weight: 800;
    color: var(--grey-steel);
    min-width: 80px;
    font-size: 0.75rem;
}

/* Mermaid Styling */
.mermaid-container {
    background: rgba(0,0,0,0.2);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

/* Enhanced Mermaid Custom Styles */
.mermaid .subgraph {
    fill: rgba(0, 225, 255, 0.05) !important;
    stroke: var(--cyan-neon) !important;
}

.mermaid .node rect, .mermaid .node circle, .mermaid .node ellipse, .mermaid .node polygon, .mermaid .node path {
    fill: var(--bg-card) !important;
    stroke: var(--cyan-neon) !important;
}

.mermaid .label {
    color: var(--text-main) !important;
}

.mermaid .edgePath path {
    stroke: var(--cyan-neon) !important;
}

.mermaid .edgeLabel {
    background-color: var(--bg-deep) !important;
    color: var(--cyan-neon) !important;
}

/* Collaboration & Chat */
.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-bubble {
    background: rgba(255,255,255,0.03);
    padding: 1rem 1.25rem;
    border-radius: 0 15px 15px 15px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    max-width: 85%;
}

/* Video Grid Mockup */
.video-grid-ui {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    background: #000;
    padding: 10px;
    border-radius: 12px;
    height: 300px;
}

.video-main-ui {
    background: #111;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.video-side-ui {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-small-ui {
    background: #111;
    border-radius: 8px;
    flex: 1;
    border: 1px solid rgba(255,255,255,0.1);
}


/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    background: rgba(0, 225, 255, 0.05);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.form-control::placeholder {
    color: #4b5563;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23728193%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 0.7rem auto;
    padding-right: 3rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* --- HRIS Specific Components --- */

/* 9-Box Grid */
.nine-box-grid {
    display: grid;
    grid-template-columns: 40px repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr) 40px;
    gap: 12px;
    margin: 2rem 0;
    position: relative;
}

.nine-box-cell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.nine-box-cell:hover {
    background: rgba(0, 225, 255, 0.05);
    border-color: var(--cyan-neon);
    transform: scale(1.02);
}

.nine-box-label-v {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    color: var(--grey-steel);
    font-weight: 800;
    text-transform: uppercase;
}

.nine-box-label-h {
    grid-row: 4;
    grid-column: 2 / span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--grey-steel);
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 10px;
}

.cell-star { border-left: 4px solid var(--cyan-neon); background: rgba(0, 225, 255, 0.03); }
.cell-high { border-left: 4px solid var(--indigo-neon); }
.cell-risk { border-left: 4px solid #ef4444; }

/* Tax & Payroll Dashboard */
.tax-engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tax-region-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.tax-region-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle at top right, rgba(0, 225, 255, 0.1), transparent 70%);
}

.region-flag {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Workflow Canvas Mockup */
.workflow-canvas {
    background: #05070a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    height: 400px;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.wf-node {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    z-index: 2;
}

.wf-node.trigger { border-left: 3px solid #10b981; }
.wf-node.action { border-left: 3px solid var(--cyan-neon); }
.wf-node.condition { border-left: 3px solid #f59e0b; }

.wf-connector {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-neon), transparent);
    z-index: 1;
}

/* Feature Grid Layout */
.feature-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 1.5rem;
}

.bento-item {
    grid-column: span 4;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-premium);
}

.bento-item:hover {
    border-color: var(--cyan-neon);
    transform: translateY(-5px);
}

.bento-item.large { grid-column: span 8; }
.bento-item.tall { grid-row: span 2; }

