/* Style Sheet for Pet Product AI Agent Portal */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-panel: rgba(17, 24, 39, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Neon Colors */
    --neon-blue: #00f0ff;
    --neon-pink: #ff007f;
    --neon-green: #39ff14;
    --neon-yellow: #fffb00;
    --neon-orange: #ff9f00;
    --neon-red: #ff3b30;
    --neon-purple: #bd00ff;
    
    /* Text Colors */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    /* Font Families */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Background Grids & Ambient Glows */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(189, 0, 255, 0.05) 0%, rgba(0, 240, 255, 0.03) 30%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: slow-spin 120s linear infinite;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}

/* Container Layout */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 16px;
    gap: 16px;
}

/* Header Styling */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
}

.logo i {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--neon-blue));
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 2px;
}

.neon-text-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.6);
}

/* Search Box & Controls */
.search-box-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 55%;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 10px 16px 10px 42px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-yellow);
    filter: drop-shadow(0 0 4px rgba(255, 251, 0, 0.4));
}

/* Glow Button */
.glow-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.4);
    white-space: nowrap;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.glow-btn:active {
    transform: translateY(0);
}

.glow-btn-outline {
    background: transparent;
    border: 1px solid var(--neon-blue);
    border-radius: 6px;
    color: var(--neon-blue);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.glow-btn-outline:hover:not(:disabled) {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    text-shadow: 0 0 5px var(--neon-blue);
}

.glow-btn-outline:disabled {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* System Status Info */
.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.status-indicator.online {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    flex-grow: 1;
    height: calc(100vh - 100px);
}

/* Panels */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease;
}

.panel:hover {
    border-color: rgba(0, 240, 255, 0.15);
}

.panel-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h2 i {
    color: var(--neon-blue);
}

.panel-subtitle {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* LEFT PANEL: Agent Cards and Live Chat */
.agent-cards-container {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.agent-card.active {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.avatar-google {
    background: rgba(66, 133, 244, 0.15);
    border: 1px solid rgba(66, 133, 244, 0.5);
    color: #4285f4;
}

.avatar-naver {
    background: rgba(3, 207, 93, 0.15);
    border: 1px solid rgba(3, 207, 93, 0.5);
    color: #03cf5d;
}

.avatar-gemma {
    background: rgba(255, 0, 127, 0.15);
    border: 1px solid rgba(255, 0, 127, 0.5);
    color: var(--neon-pink);
}

.agent-info {
    flex-grow: 1;
}

.agent-info h3 {
    font-size: 0.85rem;
    font-weight: 700;
}

.agent-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.agent-status-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.agent-card.active .agent-status-badge {
    background: var(--neon-blue);
    color: var(--bg-primary);
    font-weight: 700;
    animation: flash-badge 1s infinite alternate;
}

@keyframes flash-badge {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Discussion Bubble Area */
.discussion-box-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.discussion-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
    flex-grow: 1;
}

.timeline-empty-state i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
}

.timeline-empty-state p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Chat bubble styling */
.bubble-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: slide-in-bubble 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bubble-wrapper.left {
    align-self: flex-start;
}

.bubble-wrapper.right {
    align-self: flex-end;
}

@keyframes slide-in-bubble {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bubble-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bubble-content {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-all;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Colors for specific authors */
.google-bubble .bubble-content {
    background: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.3);
    color: #e8f0fe;
    border-top-left-radius: 2px;
}

.naver-bubble .bubble-content {
    background: rgba(3, 207, 93, 0.15);
    border: 1px solid rgba(3, 207, 93, 0.3);
    color: #e6f9ed;
    border-top-left-radius: 2px;
}

.gemma-bubble .bubble-content {
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid rgba(255, 0, 127, 0.3);
    color: #ffe6f0;
    border-top-right-radius: 2px;
}

.bubble-content::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
}

/* Chat History Accumulation */
.chat-history-container {
    height: 160px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.history-header {
    padding: 8px 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.history-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 14px;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: monospace;
}

.history-entry {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
    line-height: 1.4;
}

.history-entry .time {
    color: var(--neon-blue);
    margin-right: 6px;
}

.history-entry .sender {
    font-weight: bold;
    margin-right: 6px;
}

.history-entry.Google .sender { color: #4285f4; }
.history-entry.Naver .sender { color: #03cf5d; }
.history-entry.Gemma .sender { color: var(--neon-pink); }

.history-empty {
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 20px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: var(--neon-pink);
}

/* CENTER PANEL: 3D Brain & Knowledge Sync */
.brain-status-card {
    margin: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.state-label {
    color: var(--text-muted);
}

.state-value {
    font-family: var(--font-heading);
    font-weight: 700;
}

.complexity-bar-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.complexity-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    border-radius: 2px;
    transition: all 0.5s ease;
}

.canvas-wrapper {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    background: radial-gradient(circle at center, rgba(16, 24, 48, 0.6) 0%, rgba(10, 14, 23, 0.9) 100%);
    border-bottom: 1px solid var(--border-color);
}

#brain-canvas-container {
    width: 100%;
    height: 100%;
    cursor: grab;
}

#brain-canvas-container:active {
    cursor: grabbing;
}

.canvas-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: var(--neon-blue);
    filter: blur(80px);
    opacity: 0.15;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    transition: background 0.8s ease;
}

/* Knowledge Synchronization Feed */
.knowledge-feed-container {
    height: 160px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.feed-header {
    padding: 8px 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.node-count {
    color: var(--neon-green);
    font-weight: 700;
}

.feed-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 14px;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-entry {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 240, 255, 0.05);
    border-radius: 4px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fade-in-feed 0.3s ease-out;
}

@keyframes fade-in-feed {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.feed-entry i {
    color: var(--neon-green);
    filter: drop-shadow(0 0 3px var(--neon-green));
}

.feed-entry .node-title {
    font-weight: 700;
    color: var(--text-main);
}

.feed-entry .node-desc {
    color: var(--text-muted);
}

.feed-empty {
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 20px;
}

/* RIGHT PANEL: Proposal Typing area */
.proposal-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.proposal-toolbar {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proposal-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-text {
    color: var(--neon-pink);
    animation: text-pulse-glow 1.5s infinite alternate;
}

@keyframes text-pulse-glow {
    from { filter: drop-shadow(0 0 2px var(--neon-pink)); }
    to { filter: drop-shadow(0 0 8px var(--neon-pink)); }
}

.proposal-editor-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.proposal-view {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e5e7eb;
}

.proposal-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 60px 20px;
    gap: 16px;
}

.proposal-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
}

/* Markdown styling inside view */
.markdown-body h1 {
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 16px;
    color: var(--neon-blue);
    font-family: var(--font-heading);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.markdown-body h2 {
    font-size: 1.15rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.15);
}

.markdown-body h3 {
    font-size: 0.95rem;
    margin-top: 14px;
    margin-bottom: 8px;
    color: var(--neon-yellow);
}

.markdown-body p {
    margin-bottom: 12px;
}

.markdown-body ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.markdown-body li {
    margin-bottom: 4px;
}

.markdown-body strong {
    color: #fff;
    font-weight: 700;
}

.markdown-body blockquote {
    border-left: 3px solid var(--neon-purple);
    background: rgba(189, 0, 255, 0.05);
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 0 4px 4px 0;
}

/* Blinking Cursor for Typewriter effect */
.typing-cursor::after {
    content: '▋';
    color: var(--neon-pink);
    animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
    50% { opacity: 0; }
}

/* Voice Toggle Button */
.voice-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
}

.voice-btn:hover {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.voice-btn.active {
    background: rgba(255, 0, 127, 0.1);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
    text-shadow: 0 0 5px var(--neon-pink);
}

/* Hologram Labels Container Overlay */
#hologram-labels-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* Hologram Label */
.hologram-label {
    position: absolute;
    background: rgba(10, 14, 23, 0.85);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    padding: 4px 8px;
    color: #fff;
    font-size: 0.68rem;
    font-family: var(--font-body);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3), inset 0 0 4px rgba(0, 240, 255, 0.2);
    transform: translate(-50%, -120%);
    animation: hologram-fade-in 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
    pointer-events: none;
    transition: left 0.1s ease-out, top 0.1s ease-out; /* Smooth follow on drag */
}

.hologram-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background: rgba(10, 14, 23, 0.85);
    border-right: 1px solid var(--neon-blue);
    border-bottom: 1px solid var(--neon-blue);
}

@keyframes hologram-fade-in {
    from { opacity: 0; transform: translate(-50%, -80%) scale(0.6); }
    to { opacity: 1; transform: translate(-50%, -120%) scale(1); }
}

/* Agent Connection Status Dots */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.status-dot.disconnected {
    background-color: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red);
}

.status-dot.connected {
    background-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: status-glow 1.5s infinite alternate;
}

@keyframes status-glow {
    from { opacity: 0.7; box-shadow: 0 0 4px var(--neon-green); }
    to { opacity: 1; box-shadow: 0 0 12px var(--neon-green); }
}

/* Settings Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 12, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: rgba(13, 19, 33, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 16px;
    width: 460px;
    max-width: 90%;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.15);
    animation: modal-slide-up 0.35s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}

.modal-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 6px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 0.82rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
    background: rgba(0, 0, 0, 0.6);
}

.form-group-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px 0;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 18px;
}

/* Tablet & Mobile constraints */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
    }
    body {
        overflow-y: auto;
    }
    .panel {
        height: 500px;
    }
}
