/* ============================================
   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); }
}

/* ============================================
   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;
}

/* 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.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.windows-terminal-modal.show {
    opacity: 1;
}

.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;
}

.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;
}

.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: #00ff00;
    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 {
    margin: 2px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-command {
    color: #ffffff;
    font-weight: bold;
}

.terminal-info {
    color: #ffffff;
}

.terminal-success {
    color: #00ff00;
}

.terminal-error {
    color: #ff6b6b;
}

.terminal-blank {
    height: 14px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    background: #000000;
    border-top: 1px solid #333333;
    padding-top: 5px;
}

.terminal-prompt {
    color: #ffffff;
    margin-right: 5px;
    font-weight: bold;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #ffffff;
}

.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;
}

/* 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;
    }
}

/* ============================================
   Docker Terminal Styles
   ============================================ */
.docker-terminal-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: 2001; /* Higher than Windows terminal */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.docker-terminal-modal.show {
    opacity: 1;
}

.docker-terminal-window {
    width: 900px;
    height: 700px;
    background: #0d1117;
    border: 2px solid #30363d;
    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;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    resize: none;
}

.docker-terminal-modal.show .docker-terminal-window {
    transform: translate(-50%, -50%) scale(1);
}

/* When window is being dragged or positioned */
.docker-terminal-window[style*="left"] {
    transform: scale(1) !important;
}

.docker-terminal-titlebar {
    background: linear-gradient(to bottom, #161b22, #0d1117);
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #30363d;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.docker-terminal-title {
    color: #c9d1d9;
    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: #30363d;
    color: #c9d1d9;
}

.docker-terminal-btn.minimize:hover {
    background: #484f58;
}

.docker-terminal-btn.maximize {
    background: #30363d;
    color: #c9d1d9;
}

.docker-terminal-btn.maximize:hover {
    background: #484f58;
}

.docker-terminal-btn.close {
    background: #da3633;
    color: #ffffff;
}

.docker-terminal-btn.close:hover {
    background: #f85149;
}

.docker-terminal-content {
    flex: 1;
    background: #0d1117;
    color: #c9d1d9;
    padding: 12px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.docker-terminal-header {
    color: #7d8590;
    margin-bottom: 12px;
    font-size: 12px;
}

.docker-terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
}

.docker-terminal-line {
    margin: 2px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 13px;
}

.docker-terminal-command {
    color: #58a6ff;
    font-weight: 500;
}

.docker-terminal-info {
    color: #c9d1d9;
}

.docker-terminal-success {
    color: #3fb950;
}

.docker-terminal-warning {
    color: #d29922;
}

.docker-terminal-error {
    color: #f85149;
}

.docker-terminal-blank {
    height: 14px;
}

.docker-terminal-input-line {
    display: flex;
    align-items: center;
    background: #0d1117;
    border-top: 1px solid #30363d;
    padding-top: 8px;
}

.docker-terminal-prompt {
    color: #58a6ff;
    margin-right: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.docker-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #c9d1d9;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    outline: none;
    caret-color: #58a6ff;
}

.docker-terminal-input::selection {
    background: #1f6feb;
    color: #ffffff;
}

/* Docker terminal scrollbar */
.docker-terminal-output::-webkit-scrollbar {
    width: 12px;
}

.docker-terminal-output::-webkit-scrollbar-track {
    background: #0d1117;
}

.docker-terminal-output::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 6px;
}

.docker-terminal-output::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Resize handle for docker terminal */
.docker-terminal-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, #30363d 50%);
    border-bottom-right-radius: 6px;
    z-index: 10;
}

.docker-terminal-resize-handle:hover {
    background: linear-gradient(135deg, transparent 50%, #484f58 50%);
}

.docker-terminal-resize-handle::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: 
        linear-gradient(to right, transparent 40%, #58a6ff 40%, #58a6ff 60%, transparent 60%),
        linear-gradient(to bottom, transparent 40%, #58a6ff 40%, #58a6ff 60%, transparent 60%);
    opacity: 0.5;
}

.docker-terminal-resize-handle:hover::after {
    opacity: 1;
}

/* 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: 12px;
    }
    
    .docker-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);
}