/* ============================================
   5G SBA Dashboard Styles
   ============================================ */

/* CSS Variables for theming */
:root {
    --bg-primary: #1a252f;
    --bg-secondary: #2c3e50;
    --bg-tertiary: #34495e;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --border-color: #34495e;
    --accent-blue: #3498db;
    --accent-green: #4caf50;
    --accent-red: #e74c3c;
    --accent-orange: #ff9800;
    --accent-purple: #9b59b6;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

/* ============================================
   Dashboard Container
   ============================================ */
.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* ============================================
   Toolbar (Top Bar)
   ============================================ */
.toolbar {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.toolbar-left h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-info {
    background: var(--accent-green);
    color: white;
}

.btn-block {
    width: 100%;
    margin-bottom: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-cancel {
    background: var(--accent-orange);
    color: white;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Main Content Area
   ============================================ */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ============================================
   Left Sidebar (NF Palette)
   ============================================ */
.sidebar-left {
    width: 250px;
    background: var(--bg-secondary);
    border-right: 2px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
}

.sidebar-left h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.nf-palette {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.nf-palette-item {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nf-palette-item:hover {
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.nf-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.nf-palette-item .nf-label {
    flex: 1;
}

.nf-palette-item .nf-name {
    font-weight: 600;
    font-size: 14px;
}

.nf-palette-item .nf-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Connection Controls */
.connection-controls {
    margin-top: 20px;
}

/* ============================================
   Canvas Container (Center)
   ============================================ */
.canvas-container {
    flex: 1;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#main-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
    flex: 1;
}

.canvas-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    z-index: 10;
    animation: fadeIn 0.3s ease;
}

.canvas-message.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nf-tooltip {
    position: absolute;
    background: rgba(255, 152, 0, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    z-index: 20;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInTooltip 0.2s ease;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Right Sidebar (Configuration Panel)
   ============================================ */
.sidebar-right {
    width: 320px;
    background: var(--bg-secondary);
    border-left: 2px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
}

/* Config panel h3 styles moved to .config-panel-header h3 */

.hint {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

#config-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    padding: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Configuration Panel Header and Toggle */
.config-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.config-panel-header h3 {
    font-size: 16px;
    margin: 0;
    color: var(--text-primary);
}

.btn-toggle-config {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 24px;
    text-align: center;
}

.btn-toggle-config:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Configuration Panel Collapsed State */
.sidebar-right.collapsed {
    width: 40px;
    padding: 20px 8px;
    transition: width 0.3s ease, padding 0.3s ease;
}

.sidebar-right.collapsed .config-panel-header h3 {
    display: none;
}

.sidebar-right.collapsed #config-form {
    display: none;
}

.sidebar-right.collapsed .btn-toggle-config {
    transform: rotate(180deg);
}

/* ============================================
   Log Panel (Bottom)
   ============================================ */
.log-panel {
    height: 280px;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease;
}

.log-panel.collapsed {
    height: 45px;
}

.log-panel-header {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 45px;
}

.log-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.btn-toggle-logs {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-toggle-logs:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.log-content {
    flex: 1;
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

.log-panel.collapsed .log-content {
    opacity: 0;
    pointer-events: none;
}

.log-panel.collapsed .log-controls {
    opacity: 0.5;
    pointer-events: none;
}

.log-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.log-controls select {
    padding: 6px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 12px;
}

.log-content {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    background: #1e1e1e;
}

/* Log Entry Styles */
.log-entry {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-left: 4px solid;
    border-radius: 4px;
    display: flex;
    gap: 12px;
    animation: slideIn 0.3s ease;
    font-family: 'Courier New', monospace;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-entry.ERROR {
    background: rgba(231, 76, 60, 0.15);
    border-left-color: #e74c3c;
    color: #ff6b6b;
}

.log-entry.WARNING {
    background: rgba(255, 152, 0, 0.15);
    border-left-color: #ff9800;
    color: #ffa726;
}

.log-entry.INFO {
    background: rgba(52, 152, 219, 0.15);
    border-left-color: #3498db;
    color: #74b9ff;
}

.log-entry.SUCCESS {
    background: rgba(76, 175, 80, 0.15);
    border-left-color: #4caf50;
    color: #81c784;
}

.log-entry.DEBUG {
    background: rgba(149, 165, 166, 0.1);
    border-left-color: #95a5a6;
    color: #bdc3c7;
}

.log-timestamp {
    color: #7f8c8d;
    min-width: 90px;
    font-weight: 600;
}

.log-nf-name {
    color: #3498db;
    font-weight: bold;
    min-width: 100px;
}

.log-level {
    font-weight: bold;
    min-width: 80px;
}

.log-message {
    flex: 1;
    color: inherit;
}

.log-details {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 4px;
    padding-left: 24px;
    border-left: 2px solid rgba(149, 165, 166, 0.3);
}

/* Scrollbar Styling */
.log-content::-webkit-scrollbar,
.sidebar-left::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar {
    width: 8px;
}

.log-content::-webkit-scrollbar-track,
.sidebar-left::-webkit-scrollbar-track,
.sidebar-right::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.log-content::-webkit-scrollbar-thumb,
.sidebar-left::-webkit-scrollbar-thumb,
.sidebar-right::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb:hover,
.sidebar-left::-webkit-scrollbar-thumb:hover,
.sidebar-right::-webkit-scrollbar-thumb:hover {
    background: #4a5f7f;
}

/* ============================================
   Modal Styles
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.nf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.nf-select-btn {
    padding: 20px;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.nf-select-btn:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.nf-select-btn .nf-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.nf-select-btn .nf-label {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .sidebar-left {
        width: 200px;
    }

    .sidebar-right {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar-left,
    .sidebar-right {
        width: 100%;
        height: 200px;
    }

    .log-panel {
        height: 150px;
    }
}

/* =======
=====================================
   HTTP Protocol Dropdown Special Styling
   ============================================ */
#config-http-protocol {
    background: var(--bg-tertiary);
    border: 2px solid #3498db;
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#config-http-protocol:hover {
    border-color: #2980b9;
    background: #2c3e50;
}

#config-http-protocol:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Highlight protocol field */
.form-group:has(#config-http-protocol) {
    background: rgba(52, 152, 219, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.form-group:has(#config-http-protocol) label {
    color: #3498db;
    font-weight: 600;
}

/* ====
========================================
   Help Modal Styling
   ============================================ */
.help-modal-content {
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

.help-content {
    margin: 20px 0;
}

.help-section {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
}

.help-section h3 {
    margin-bottom: 15px;
    color: var(--accent-blue);
    font-size: 16px;
}

.architecture-diagram {
    text-align: center;
    margin: 15px 0;
    padding: 15px;
    background: #1a252f;
    border-radius: 8px;
}

.help-steps {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.help-steps li {
    counter-increment: step-counter;
    margin-bottom: 12px;
    padding-left: 40px;
    position: relative;
    line-height: 1.5;
}

.help-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-blue);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.help-list {
    list-style: none;
    padding-left: 0;
}

.help-list li {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: 5px;
    border-left: 3px solid var(--accent-green);
}

.connection-type {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

.connection-type.nf-bus {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.connection-type.bus-nf {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.connection-type.bus-bus {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.connection-type.nf-nf {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

/* View Full Procedures button */
.btn-view-procedures {
    display: inline-block;
    padding: 10px 24px;
    background: #29b6f6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(41, 182, 246, 0.35);
}

.btn-view-procedures:hover {
    background: #039be5;
    box-shadow: 0 4px 14px rgba(41, 182, 246, 0.5);
}

/* Help button styling */
#btn-help {
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

#btn-help:hover {
    background: var(--accent-blue);
    color: white;
}

/* ==
==========================================
   New Configuration Panel Styles
   ============================================ */

.config-hint {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--accent-blue);
    text-align: center;
}

.btn-success {
    background: var(--accent-green);
    color: white;
    font-weight: 600;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.form-group input[required] {
    border-left: 3px solid var(--accent-blue);
}

.form-group input[required]:invalid {
    border-left-color: var(--accent-red);
}

.form-group input[required]:valid {
    border-left-color: var(--accent-green);
}

/* Enhanced form styling for new NF configuration */
#config-form h4 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 8px;
}

/* Button animations */
.btn-success {
    position: relative;
    overflow: hidden;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-success:hover::before {
    left: 100%;
}

/* =
===========================================
   Ping Troubleshooting Section Styles
   ============================================ */
.troubleshoot-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.05);
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    position: relative;
}

.troubleshoot-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.3;
    animation: troubleshootGlow 3s ease-in-out infinite alternate;
}

@keyframes troubleshootGlow {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.4;
    }
}

.troubleshoot-section h4 {
    color: var(--accent-blue);
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.troubleshoot-section .config-hint {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.4);
    color: #74b9ff;
    font-size: 12px;
    margin-bottom: 15px;
}

.troubleshoot-section .form-group {
    margin-bottom: 15px;
}

.troubleshoot-section .form-group input {
    background: var(--bg-primary);
    border: 2px solid rgba(52, 152, 219, 0.3);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.troubleshoot-section .form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: rgba(52, 152, 219, 0.05);
}

.troubleshoot-section .form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Ping Button Styles */
.troubleshoot-section .btn {
    margin-bottom: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.troubleshoot-section .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.troubleshoot-section .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Ping Target Button */
#btn-ping-target {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
}

#btn-ping-target:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Network Ping Button */
#btn-ping-network {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
}

#btn-ping-network:hover:not(:disabled) {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

/* Ping History Button */
#btn-ping-history {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
}

#btn-ping-history:hover:not(:disabled) {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

/* Button Loading Animation */
.troubleshoot-section .btn:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: buttonSpin 1s linear infinite;
}

@keyframes buttonSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ping Input Field Enhancement */
#ping-target-ip {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 0.5px;
}

#ping-target-ip:valid {
    border-color: var(--accent-green);
    background: rgba(46, 204, 113, 0.05);
}

#ping-target-ip:invalid:not(:placeholder-shown) {
    border-color: var(--accent-red);
    background: rgba(231, 76, 60, 0.05);
}

/* Responsive adjustments for troubleshooting section */
@media (max-width: 768px) {
    .troubleshoot-section {
        margin-top: 15px;
        padding: 15px;
    }

    .troubleshoot-section .btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* 
============================================
   Command Input Terminal Styles
   ============================================ */
.log-command-input {
    background: #1e1e1e;
    border-top: 2px solid var(--accent-blue);
    padding: 0;
    font-family: 'Courier New', monospace;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.command-input-header {
    background: var(--bg-tertiary);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.command-input-header span {
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 12px;
}

.btn-close-terminal {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.btn-close-terminal:hover {
    background: var(--accent-red);
    color: white;
}

.command-input-line {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #1e1e1e;
}

.command-prompt {
    color: var(--accent-green);
    font-weight: bold;
    margin-right: 8px;
    font-size: 14px;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 6px 8px;
    outline: none;
}

#command-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

#command-input:focus {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 3px;
}

.btn-execute {
    background: var(--accent-blue);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.btn-execute:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.btn-execute:active {
    transform: scale(0.95);
}

/* Terminal command suggestions */
.command-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    max-height: 120px;
    overflow-y: auto;
    z-index: 10;
}

.command-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.command-suggestion:hover {
    background: var(--accent-blue);
    color: white;
}

.command-suggestion:last-child {
    border-bottom: none;
}

/* Enhanced log panel when terminal is active */
.log-panel.terminal-active {
    border-top-color: var(--accent-blue);
    box-shadow: 0 -2px 10px rgba(52, 152, 219, 0.2);
}

.log-panel.terminal-active .log-panel-header {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(52, 152, 219, 0.1));
}

/* ==
==========================================
   Windows Terminal Styles
   ============================================ */
.windows-terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.windows-terminal-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.windows-terminal-window {
    width: 800px;
    height: 600px;
    background: #000000;
    border: 2px solid #404040;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    font-family: 'Consolas', 'Courier New', monospace;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.windows-terminal-modal.show .windows-terminal-window {
    transform: scale(1);
}

.windows-terminal-titlebar {
    background: linear-gradient(to bottom, #404040, #2a2a2a);
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #1a1a1a;
    cursor: move;
}

.terminal-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-icon {
    font-size: 10px;
}

.terminal-controls {
    display: flex;
    gap: 2px;
}

.terminal-btn {
    width: 18px;
    height: 18px;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.terminal-btn.minimize {
    background: #404040;
    color: #ffffff;
}

.terminal-btn.minimize:hover {
    background: #505050;
}

.terminal-btn.maximize {
    background: #404040;
    color: #ffffff;
}

.terminal-btn.maximize:hover {
    background: #505050;
}

.terminal-btn.close {
    background: #e74c3c;
    color: #ffffff;
}

.terminal-btn.close:hover {
    background: #c0392b;
}

.windows-terminal-content {
    flex: 1;
    background: #000000;
    color: #ffffff;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 13px;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

/* Terminal Line Styles */
.terminal-line {
    margin: 0;
    padding: 1px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
}

.terminal-command {
    color: #ffffff;
    font-weight: normal;
}

.terminal-info {
    color: #ffffff;
}

.terminal-success {
    color: #ffffff;
}

.terminal-error {
    color: #ff6b6b;
}

.terminal-blank {
    height: 14px;
}

/* Inline Input Line - Realistic Terminal Style */
.terminal-input-line {
    display: flex;
    align-items: center;
    background: #000000;
    padding: 4px 0;
    margin-top: 4px;
}

.terminal-prompt {
    color: #ffffff;
    margin-right: 8px;
    font-weight: normal;
    white-space: nowrap;
    font-size: 14px;
    user-select: none;
}

/* Editable Input Span (inline) */
.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #00ff00;
    min-width: 10px;
    white-space: pre;
    word-wrap: break-word;
}

.terminal-input:focus {
    outline: none;
}

.terminal-input::selection {
    background: #0078d4;
    color: #ffffff;
}

/* Terminal scrollbar */
.terminal-output::-webkit-scrollbar {
    width: 12px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 6px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* Resizer handle */
.terminal-resizer {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 14px;
    height: 14px;
    background: transparent;
    border-right: 2px solid #505050;
    border-bottom: 2px solid #505050;
    cursor: nwse-resize;
    opacity: 0.8;
}

/* Terminal button styling */
.btn-terminal {
    background: linear-gradient(135deg, #000000, #2a2a2a);
    color: #00ff00;
    border: 2px solid #404040;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.btn-terminal:hover:not(:disabled) {
    background: linear-gradient(135deg, #1a1a1a, #404040);
    border-color: #00ff00;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    color: #ffffff;
}

.btn-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    transition: left 0.5s;
}

.btn-terminal:hover::before {
    left: 100%;
}

/* Responsive terminal */
@media (max-width: 900px) {
    .windows-terminal-window {
        width: 95vw;
        height: 80vh;
    }
}

@media (max-width: 600px) {
    .windows-terminal-window {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .windows-terminal-content {
        font-size: 12px;
    }

    .terminal-input {
        font-size: 12px;
    }
}

/* ============================================
   Auto-Assignment Indicators
   ============================================ */
.auto-assigned {
    color: #2ecc71;
    font-size: 10px;
    font-weight: normal;
    background: rgba(46, 204, 113, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Enhanced form group styling for auto-assigned fields */
.form-group:has(.auto-assigned) {
    background: rgba(46, 204, 113, 0.03);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.form-group:has(.auto-assigned) input {
    border-color: rgba(46, 204, 113, 0.4);
    background: rgba(46, 204, 113, 0.05);
}

.form-group:has(.auto-assigned) input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* JSON modal viewer */
.json-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.json-modal-content {
    background: #1f2a36;
    border: 1px solid #2e3b4a;
    border-radius: 8px;
    width: 70%;
    max-width: 960px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.json-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #243140;
    border-bottom: 1px solid #2e3b4a;
}

.json-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.json-modal-close {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: bold;
}

.json-modal-close:hover {
    background: #c0392b;
}

.json-modal-body {
    padding: 16px;
    margin: 0;
    max-height: 70vh;
    overflow: auto;
    background: #0f1620;
    color: #d6e4ff;
    font-family: "Courier New", monospace;
    font-size: 13px;
    white-space: pre-wrap;
}

/* ============================================
   JSON MODAL VIEWER
   ============================================ */
.json-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.json-modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.json-modal-header {
    background: var(--bg-tertiary);
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.json-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.json-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.json-modal-close:hover {
    background: var(--accent-red);
    color: white;
    transform: rotate(90deg);
}

.json-modal-body {
    padding: 20px;
    overflow: auto;
    flex: 1;
    background: #1a1f2e;
    color: #d6deeb;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    white-space: pre;
    border-radius: 0 0 12px 12px;
}

/* JSON Syntax Highlighting (achieved through text colors) */
.json-modal-body {
    /* String values in green */
    color: #c3e88d;
}

/* Scrollbar styling for JSON modal */
.json-modal-body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.json-modal-body::-webkit-scrollbar-track {
    background: #0f1419;
    border-radius: 0 0 12px 0;
}

.json-modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 5px;
}

.json-modal-body::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Responsive design for JSON modal */
@media (max-width: 768px) {
    .json-modal-content {
        width: 95%;
        max-height: 85%;
    }

    .json-modal-body {
        font-size: 11px;
        padding: 15px;
    }

    .json-modal-header h3 {
        font-size: 16px;
    }
}

/* ============================================
   SPLIT JSON MODAL (Request/Response Separate)
   ============================================ */
.json-modal-split {
    width: 900px;
    max-width: 95%;
}

.json-modal-split-container {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

.json-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 2px solid var(--border-color);
    overflow: hidden;
}

.json-section:last-child {
    border-right: none;
}

.json-section-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.json-section-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.json-section-icon {
    font-size: 18px;
}

.json-section .json-modal-body {
    flex: 1;
    border-radius: 0;
    max-height: 55vh;
    overflow: auto;
}

/* Request section styling - Orange theme */
.json-request {
    background: #2d1f0f;
    border-left: 3px solid #ff8c00;
    color: #ff8c00;
}

/* Response section styling - Green theme */
.json-response {
    background: #0f2d0f;
    border-left: 3px solid #00ff00;
    color: #00ff00;
}

/* Request section header - Orange accent */
.json-section:has(.json-request) .json-section-header {
    background: #3d2a15;
    border-bottom: 2px solid #ff8c00;
}

.json-section:has(.json-request) .json-section-header h4 {
    color: #ff8c00;
}

.json-section:has(.json-request) .json-section-icon {
    color: #ff8c00;
}

/* Response section header - Green accent */
.json-section:has(.json-response) .json-section-header {
    background: #1a3d1a;
    border-bottom: 2px solid #00ff00;
}

.json-section:has(.json-response) .json-section-header h4 {
    color: #00ff00;
}

.json-section:has(.json-response) .json-section-icon {
    color: #00ff00;
}

/* Responsive design for split modal */
@media (max-width: 900px) {
    .json-modal-split-container {
        flex-direction: column;
    }

    .json-section {
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

    .json-section:last-child {
        border-bottom: none;
    }

    .json-section .json-modal-body {
        max-height: 35vh;
    }
}
/* ============================================
   One-Click Deployment Styles
   ============================================ */

.btn-success {
    background: var(--accent-green);
    color: white;
    font-weight: 600;
}

.btn-success:hover {
    background: #45a049;
}

.btn-success:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Deployment Progress Bar */
.deployment-progress {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), #45a049);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Deployment Animation */
.deployment-progress .progress-label span:first-child {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}


/* ============================================
   NRF Split Panel Styles
   ============================================ */

.nrf-split-panel {
    max-width: 95vw;
    width: 1600px;
    max-height: 90vh;
}

.nrf-panel-container {
    display: flex;
    gap: 0;
    height: calc(90vh - 60px);
    overflow: hidden;
}

.nrf-panel-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nrf-requests-panel {
    border-right: 2px solid var(--border-color);
}

.nrf-panel-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
}

.nrf-panel-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.nrf-panel-icon {
    font-size: 18px;
}

/* Orange theme for requests panel */
.nrf-requests-panel .nrf-panel-header {
    background: #3d2a15;
    border-bottom: 2px solid #ff8c00;
}

.nrf-requests-panel .nrf-panel-header h4 {
    color: #ff8c00;
}

.nrf-requests-panel .nrf-panel-icon {
    color: #ff8c00;
}

/* Green theme for responses panel */
.nrf-responses-panel .nrf-panel-header {
    background: #1a3d1a;
    border-bottom: 2px solid #00ff00;
}

.nrf-responses-panel .nrf-panel-header h4 {
    color: #00ff00;
}

.nrf-responses-panel .nrf-panel-icon {
    color: #00ff00;
}

.nrf-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-primary);
}

.nrf-message-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.nrf-message-item:last-child {
    margin-bottom: 0;
}

.nrf-message-header {
    background: var(--bg-tertiary);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.nrf-nf-badge {
    background: var(--accent-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nrf-nf-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.nrf-message-item .json-modal-body {
    margin: 0;
    border-radius: 0;
    border: none;
    max-height: 400px;
    overflow-y: auto;
    font-size: 11px;
    line-height: 1.5;
}

/* Scrollbar styling for NRF panels */
.nrf-panel-content::-webkit-scrollbar,
.nrf-message-item .json-modal-body::-webkit-scrollbar {
    width: 8px;
}

.nrf-panel-content::-webkit-scrollbar-track,
.nrf-message-item .json-modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.nrf-panel-content::-webkit-scrollbar-thumb,
.nrf-message-item .json-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.nrf-panel-content::-webkit-scrollbar-thumb:hover,
.nrf-message-item .json-modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive design for NRF panel */
@media (max-width: 1200px) {
    .nrf-panel-container {
        flex-direction: column;
    }

    .nrf-requests-panel {
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

    .nrf-panel-side {
        max-height: 45vh;
    }
}



/* ============================================
   Docker Terminal Styles - Realistic Linux Terminal
   ============================================ */

.docker-terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.docker-terminal-modal.show {
    opacity: 1;
}

.docker-terminal-window {
    width: 900px;
    height: 700px;
    background: #000000;
    border: 2px solid #333333;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.docker-terminal-modal.show .docker-terminal-window {
    transform: scale(1);
}

.docker-terminal-titlebar {
    background: linear-gradient(to bottom, #3c3c3c, #2d2d2d);
    height: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #1a1a1a;
    user-select: none;
}

.docker-terminal-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docker-terminal-icon {
    font-size: 14px;
}

.docker-terminal-controls {
    display: flex;
    gap: 4px;
}

.docker-terminal-btn {
    width: 20px;
    height: 20px;
    border: none;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    border-radius: 3px;
}

.docker-terminal-btn.minimize {
    background: #404040;
    color: #ffffff;
}

.docker-terminal-btn.minimize:hover {
    background: #505050;
}

.docker-terminal-btn.maximize {
    background: #404040;
    color: #ffffff;
}

.docker-terminal-btn.maximize:hover {
    background: #505050;
}

.docker-terminal-btn.close {
    background: #e74c3c;
    color: #ffffff;
}

.docker-terminal-btn.close:hover {
    background: #c0392b;
}

/* Terminal Content Area - Realistic Linux Terminal */
.docker-terminal-content {
    flex: 1;
    background: #000000;
    color: #ffffff;
    padding: 8px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

.docker-terminal-header {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 12px;
    border-bottom: 1px solid #333333;
    padding-bottom: 8px;
}

/* Terminal Output Area */
.docker-terminal-output {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    padding-right: 4px;
}

/* Terminal Line Styles */
.docker-terminal-line {
    margin: 0;
    padding: 1px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
}

.docker-terminal-command {
    color: #ffffff;
    font-weight: normal;
}

.docker-terminal-info {
    color: #ffffff;
}

.docker-terminal-success {
    color: #ffffff;
}

.docker-terminal-warning {
    color: #ffff00;
}

.docker-terminal-error {
    color: #ff6b6b;
}

.docker-terminal-blank {
    height: 14px;
}

/* Inline Input Line - Realistic Terminal Style */
.docker-terminal-input-line {
    display: flex;
    align-items: center;
    background: #000000;
    padding: 4px 0;
    margin-top: 4px;
}

.docker-terminal-prompt {
    color: #ffffff;
    margin-right: 8px;
    font-weight: normal;
    white-space: nowrap;
    font-size: 14px;
    user-select: none;
}

/* Editable Input Span (inline) */
.docker-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    font-weight: normal;
    outline: none;
    caret-color: #00ff00;
    min-width: 10px;
    white-space: pre;
    word-wrap: break-word;
    user-select: text;
}

.docker-terminal-input:focus {
    outline: none;
}

.docker-terminal-input::selection {
    background: #0078d4;
    color: #ffffff;
}

/* Cursor Animation for Realistic Terminal Feel */
.docker-terminal-input-line:focus-within .docker-terminal-prompt::after {
    content: '';
}

/* Blinking cursor effect */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Resize Handle */
.docker-terminal-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, #404040 50%);
}

/* Terminal Scrollbar - Dark Theme */
.docker-terminal-output::-webkit-scrollbar,
.docker-terminal-content::-webkit-scrollbar {
    width: 10px;
}

.docker-terminal-output::-webkit-scrollbar-track,
.docker-terminal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.docker-terminal-output::-webkit-scrollbar-thumb,
.docker-terminal-content::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 5px;
}

.docker-terminal-output::-webkit-scrollbar-thumb:hover,
.docker-terminal-content::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* Responsive Docker Terminal */
@media (max-width: 1000px) {
    .docker-terminal-window {
        width: 95vw;
        height: 85vh;
    }
}

@media (max-width: 600px) {
    .docker-terminal-window {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .docker-terminal-content {
        font-size: 13px;
        padding: 6px 8px;
    }

    .docker-terminal-line,
    .docker-terminal-input,
    .docker-terminal-prompt {
        font-size: 13px;
    }
}