@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;700;900&display=swap');


:root {
    --bg-dark: #030a10;
    --panel-bg: rgba(7, 20, 32, 0.7);
    --panel-border: #133c51;
    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.3);
    --cyan-dark: #0a4f66;
    --purple: #6a2b8e;
    --purple-light: #9b59b6;
    --orange: #c85a17;
    --text-main: #e0f2fe;
    --text-muted: #7da5ba;
    --sidebar-width: 240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Global Header */
.main-header {
    text-align: center;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.1), transparent);
    border-bottom: 1px solid var(--panel-border);
    z-index: 10;
}
.main-header span {
    color: var(--cyan);
}

/* Main Layout */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 1rem;
    gap: 1.5rem;
}

/* Base Panel Styles */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,229,255,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.panel-header {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(19, 60, 81, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.logo-container {
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--panel-border);
}
.logo-container h1 {
    font-size: 3rem;
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 0 15px var(--cyan-glow);
    margin-bottom: 0.25rem;
}
.logo-container p {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.nav-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}
.nav-menu li {
    padding: 0.75rem 1.5rem;
    margin: 0.25rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-menu li:hover {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
}
.nav-menu li.active {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border-left: 3px solid var(--cyan);
}
.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Main Dashboard Area */
.dashboard-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.stat-card {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--panel-border);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}
.stat-card.purple::before { background: var(--purple-light); box-shadow: 0 0 10px var(--purple-light); }
.stat-card.orange::before { background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.stat-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.stat-trend {
    font-size: 0.75rem;
    color: #4cd137;
    font-weight: 500;
}
.stat-trend.down { color: #e84118; }

/* Lead Pipeline - Chevrons */
.pipeline-panel {
    display: flex;
    flex-direction: column;
}
.leads-grid {
    padding-bottom: 2.5rem !important;
}
.chevrons-container {
    display: flex;
    padding: 1rem;
    gap: 2px;
    background: rgba(0,0,0,0.2);
}
.chevron {
    flex: 1;
    position: relative;
    background: var(--cyan-dark);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 0;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    margin-left: -10px;
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chevron:first-child {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    margin-left: 0;
    padding-left: 0;
}
.chevron.purple { background: var(--purple); }
.chevron.orange { background: #8e44ad; } /* Darker purplish orange for last steps based on img */

.pipeline-details {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    padding: 0.5rem 1rem 1rem;
}
.pipeline-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lead-badge {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    padding: 0.4rem;
    font-size: 0.65rem;
    color: var(--text-muted);
}
.lead-badge strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

/* Grid for bottom row: Profile, Calendar, AI Hub */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
}

/* Patient Profile */
.profile-content {
    display: flex;
    padding: 1rem;
    gap: 1rem;
}
.profile-image {
    width: 80px;
    height: 100px;
    background: #111;
    border-radius: 8px;
    border: 1px solid var(--cyan);
    overflow: hidden;
}
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-info {
    flex: 1;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.profile-name {
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.profile-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}
.btn {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn:hover {
    background: var(--cyan);
    color: black;
}

/* Calendar List */
.calendar-list {
    padding: 0.5rem;
}
.calendar-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.calendar-item:last-child { border: none; }
.cal-date { color: var(--cyan); width: 70px; }
.cal-time { color: var(--orange); width: 50px; }
.cal-service { flex: 1; }

/* AI Hub Flowchart */
.ai-hub-panel {
    grid-column: span 2;
    padding: 1rem;
}
.ai-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--panel-border);
}
.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
}
.node-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.node-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.flow-line {
    flex: 1;
    height: 2px;
    background: var(--cyan);
    position: relative;
    margin: 0 1rem;
    box-shadow: 0 0 5px var(--cyan);
}
.flow-line::after {
    content: '▶';
    position: absolute;
    right: -5px;
    top: -6px;
    color: var(--cyan);
    font-size: 0.8rem;
}
.flow-line.orange {
    background: var(--orange);
    box-shadow: 0 0 5px var(--orange);
}
.flow-line.orange::after { color: var(--orange); }

/* Right Sidebar - Mobile App Frame */
.app-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.mobile-frame {
    background: #000;
    border: 8px solid #222;
    border-radius: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px var(--cyan-glow);
}
.mobile-header {
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}
.ar-view {
    flex: 1;
    background: #111;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ar-view img {
    height: 100%;
    object-fit: cover;
}
.ar-title {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.control-group label {
    font-size: 0.7rem;
    color: var(--text-muted);
}
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--cyan);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px var(--cyan);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #333;
    border-radius: 2px;
}
.mobile-btn {
    background: var(--cyan);
    color: #000;
    border: none;
    padding: 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 0 15px rgba(0,229,255,0.4);
}
.mobile-btn.outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    box-shadow: none;
}

/* Background grid lines decoration */
.bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Calendar Specific Styles */
#calendar-panel {
    background: #0a0e14;
    border: 1px solid #00f2ff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,242,255,0.1);
}
#calendar-panel .panel-header {
    font-family: 'Orbitron', sans-serif;
    color: #00f2ff;
    border-bottom: 1px solid rgba(0,242,255,0.3);
}
.calendar-item {
    cursor: pointer;
    transition: all 0.2s;
}
.calendar-item:hover {
    background: rgba(0, 242, 255, 0.1);
    transform: translateX(5px);
}
.calendar-item .cal-date, .calendar-item .cal-time, .calendar-item .cal-service {
    font-family: 'Orbitron', sans-serif;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    width: 600px;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--cyan);
    cursor: pointer;
    font-size: 1.2rem;
}

/* ==================== MAXIMIZED PANELS ==================== */
.panel.maximized {
    position: fixed !important;
    top: 15px !important;
    left: 15px !important;
    right: 15px !important;
    bottom: 15px !important;
    width: calc(100vw - 30px) !important;
    height: calc(100vh - 30px) !important;
    max-height: none !important;
    max-width: none !important;
    z-index: 9999 !important;
    margin: 0 !important;
    background: #030a10 !important;
    box-shadow: 0 0 30px var(--cyan-glow), inset 0 0 20px rgba(0, 229, 255, 0.1) !important;
    border: 2px solid var(--cyan) !important;
}

/* ==================== CYBERPUNK NEON TABLES ==================== */
.cyber-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}
.cyber-table th {
    border-bottom: 2px solid var(--cyan);
    padding: 0.75rem 0.5rem;
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-shadow: 0 0 8px var(--cyan-glow);
}
.cyber-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    color: var(--text-main);
}
.cyber-table tr:hover {
    background: rgba(0, 229, 255, 0.05) !important;
}

/* ==================== AGENDA SLOT STYLING ==================== */
.agenda-slot {
    background: rgba(7, 20, 32, 0.5);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}
.agenda-slot:hover {
    background: rgba(0, 229, 255, 0.1) !important;
    border-color: var(--cyan) !important;
    box-shadow: 0 0 10px var(--cyan-glow);
    transform: translateY(-2px);
}

/* ==================== EVENT PILLS ==================== */
.event-pill {
    transition: all 0.15s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.event-pill:hover {
    transform: scale(1.03);
    box-shadow: 0 0 8px currentColor;
    filter: brightness(1.2);
}

/* ==================== CUSTOM SCROLLBARS ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(3, 10, 16, 0.8);
    border-left: 1px solid var(--panel-border);
}
::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

/* ==================== RESCHEDULE FORM INPUTS ==================== */
#reschedule-box input[type="date"],
#reschedule-box input[type="time"] {
    background: #000;
    border: 1px solid var(--panel-border);
    color: white;
    padding: 4px;
    border-radius: 4px;
    outline: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    transition: border 0.2s;
}
#reschedule-box input[type="date"]:focus,
#reschedule-box input[type="time"]:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 5px var(--cyan-glow);
}

/* ==================== ADDITIONAL UTILITIES ==================== */
.dashboard-area {
    scrollbar-gutter: stable;
}

.f-fb { color: #4267B2 !important; font-weight: bold; }
.f-ig { color: #E1306C !important; font-weight: bold; }
.f-wa { color: #25D366 !important; font-weight: bold; }

/* ==================== TECH TREE NODES & ANIMATIONS ==================== */
.tech-tree-container {
    perspective: 1000px;
}
.tech-tree-grid {
    position: relative;
    z-index: 2;
}
.tree-node {
    background: rgba(3, 10, 16, 0.85);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    width: 140px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    cursor: pointer;
}
.tree-node:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--cyan);
    box-shadow: 0 8px 20px var(--cyan-glow);
}
.node-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 8px;
    pointer-events: none;
    box-shadow: inset 0 0 8px transparent;
    transition: all 0.3s ease;
}
.tree-node:hover .node-glow {
    box-shadow: inset 0 0 12px var(--cyan);
}
.node-icon-wrapper {
    font-size: 1.3rem;
    color: var(--cyan);
    margin-bottom: 0.3rem;
    text-shadow: 0 0 5px var(--cyan-glow);
}
.node-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}
.node-sublabel {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Color variations for nodes */
.node-groq { border-color: var(--cyan); }
.node-groq .node-icon-wrapper { color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }
.node-groq:hover { border-color: #ffffff; box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5); }

.node-n8n { border-color: var(--purple-light); }
.node-n8n .node-icon-wrapper { color: var(--purple-light); text-shadow: 0 0 8px rgba(155, 89, 182, 0.3); }
.node-n8n:hover { border-color: var(--purple-light); box-shadow: 0 8px 25px rgba(155, 89, 182, 0.5); }

.node-ngrok { border-color: var(--orange); }
.node-ngrok .node-icon-wrapper { color: var(--orange); text-shadow: 0 0 8px rgba(200, 90, 23, 0.3); }
.node-ngrok:hover { border-color: var(--orange); box-shadow: 0 8px 25px rgba(200, 90, 23, 0.5); }

.node-dbeaver { border-color: #3867d6; }
.node-dbeaver .node-icon-wrapper { color: #3867d6; text-shadow: 0 0 8px rgba(56, 103, 214, 0.3); }
.node-dbeaver:hover { border-color: #3867d6; box-shadow: 0 8px 25px rgba(56, 103, 214, 0.5); }

.node-docker { border-color: #0984e3; }
.node-docker .node-icon-wrapper { color: #74b9ff; text-shadow: 0 0 8px rgba(9, 132, 227, 0.3); }
.node-docker:hover { border-color: #74b9ff; box-shadow: 0 8px 25px rgba(9, 132, 227, 0.5); }

.node-xampp { border-color: #e67e22; }
.node-xampp .node-icon-wrapper { color: #e67e22; text-shadow: 0 0 8px rgba(230, 126, 34, 0.3); }
.node-xampp:hover { border-color: #e67e22; box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5); }

/* SVG Animation paths */
.tree-svg {
    pointer-events: none;
    z-index: 1;
}
.animated-path {
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 8, 8;
    animation: flowDash 3s linear infinite;
}
.stroke-cyan { stroke: var(--cyan); filter: drop-shadow(0 0 3px var(--cyan)); }
.stroke-purple { stroke: var(--purple-light); filter: drop-shadow(0 0 3px rgba(155, 89, 182, 0.5)); }
.stroke-orange { stroke: var(--orange); filter: drop-shadow(0 0 3px rgba(200, 90, 23, 0.5)); }
.stroke-blue { stroke: #3867d6; filter: drop-shadow(0 0 3px rgba(56, 103, 214, 0.5)); }

@keyframes flowDash {
    to {
        stroke-dashoffset: -20;
    }
}

/* ==================== ACTIVE CALENDAR DAY CARD STYLING ==================== */
.calendar-day-card {
    background: rgba(7, 20, 32, 0.6);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.calendar-day-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan);
    box-shadow: 0 8px 20px var(--cyan-glow);
}
.calendar-event-card-item {
    transition: all 0.2s ease-in-out;
}
.calendar-event-card-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
    filter: brightness(1.15);
}



/* ==================== PREMIUM ACTIVE PATIENT PROFILE CARD ==================== */
#active-profile-card {
    gap: 2rem !important;
    padding: 1.5rem !important;
    align-items: center !important;
}

#active-profile-card .profile-image {
    width: 140px !important;
    height: 180px !important;
    border-width: 2px !important;
    border-radius: 12px !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#active-profile-card .profile-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#active-profile-card .profile-image:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.45) !important;
}

#active-profile-card .profile-info {
    font-size: 0.95rem !important;
    gap: 0.65rem !important;
}

#active-profile-card .profile-name {
    font-size: 1.6rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 0 10px var(--cyan-glow) !important;
    color: white !important;
}

#active-profile-card .profile-info strong {
    color: var(--cyan) !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: inline-block;
    margin-right: 4px;
}

#active-profile-card .profile-info span {
    color: var(--text-main) !important;
}

#active-profile-card .profile-info:last-child {
    flex: 0.8 !important;
    border-left: 1px solid rgba(0, 229, 255, 0.15) !important;
    padding-left: 1.8rem !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

#active-profile-card .profile-actions .btn {
    font-size: 0.85rem !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 6px !important;
    letter-spacing: 1px !important;
    font-family: 'Orbitron', sans-serif !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2) !important;
    transition: all 0.2s ease-in-out !important;
}

#active-profile-card .profile-actions .btn:hover {
    box-shadow: 0 0 20px var(--cyan-glow) !important;
    transform: translateY(-2px) !important;
}

/* ==================== RESPONSIVE (3-dic-2026) ==================== */
.menu-toggle, .menu-backdrop { display: none; }
img, video, canvas { max-width: 100%; }

@media (max-width: 1200px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .pipeline-details { grid-template-columns: repeat(3, 1fr); }
    .app-sidebar { width: 280px; }
}

@media (max-width: 900px) {
    html, body { height: auto; min-height: 100%; overflow: auto; }
    body { display: block; -webkit-text-size-adjust: 100%; }
    .main-header { font-size: 0.8rem; padding: 0.8rem 3.4rem; letter-spacing: 0; line-height: 1.3; position: sticky; top: 0; background: var(--bg-dark); }
    .app-container { display: block; overflow: visible; padding: 0.6rem; }
    .app-container > * + * { margin-top: 0.75rem; }
    .dashboard-area { overflow: visible; padding-right: 0; }

    /* menu lateral -> cajon deslizable */
    .menu-toggle { display: flex; align-items: center; justify-content: center; position: fixed; top: 0.45rem; left: 0.5rem; z-index: 10001; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--panel-border); background: rgba(7,20,32,0.95); color: var(--cyan); font-size: 1.3rem; cursor: pointer; }
    .menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s; }
    body.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
    .sidebar { position: fixed !important; top: 0; left: 0; bottom: 0; width: 270px; max-width: 84vw; z-index: 9999; margin: 0 !important; border-radius: 0 12px 12px 0; overflow-y: auto; transform: translateX(-108%); transition: transform .25s ease; background: #061622; }
    body.menu-open .sidebar { transform: none; }
    .nav-menu li { padding: 0.9rem 1.2rem; }

    /* cuadriculas -> una o dos columnas */
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .bottom-grid, .node-group { grid-template-columns: 1fr; }
    .pipeline-details { grid-template-columns: repeat(2, 1fr); }
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: repeat(auto"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important; }
    .app-sidebar { width: 100% !important; }

    /* paneles y vistas: que crezcan con el contenido */
    .panel { max-height: none; }
    [id^="view-"] { height: auto !important; min-height: 0; }
    [style*="height: 100%"], [style*="height:100%"] { height: auto !important; }
    .profile-content { flex-direction: column; align-items: center; }
    .profile-image, [style*="width: 240px"] { width: 100% !important; max-width: 280px; }
    .panel.maximized { top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0 !important; }

    /* tablas: desplazamiento horizontal en vez de romper la pagina */
    .cyber-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cyber-table col { width: auto !important; }
    .cyber-table th, .cyber-table td { white-space: nowrap; }

    /* ventanas emergentes */
    .modal-content { width: 94vw !important; max-width: 94vw !important; max-height: 92vh; overflow-y: auto; }
    #modal-historia > div, #modal-fotos > div { width: 96vw !important; max-width: 96vw !important; max-height: 94vh !important; overflow-y: auto; }

    /* campos comodos para el dedo (16px evita el zoom automatico en iPhone) */
    input, select, textarea { font-size: 16px !important; max-width: 100%; }
    .btn, button { min-height: 40px; }
    #search-input { width: 100% !important; }
}

@media (max-width: 520px) {
    .stats-row, .pipeline-details { grid-template-columns: 1fr; }
    .stat-value { font-size: 1.6rem; }
    .chevrons-container { overflow-x: auto; }
    .logo-container h1 { font-size: 2.2rem; }
    .cal-date { width: 60px; }
}

