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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #0066cc;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background-color: #2c3e50;
    color: #3498db;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-connected {
    color: #27ae60;
    font-size: 0.9rem;
}

.main-content {
    display: flex;
    flex: 1;
    gap: 1rem;
    padding: 1rem;
    overflow: hidden;
    height: calc(100vh - 80px);
}

.panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 300px;
}

.panel-header {
    background-color: #34495e;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.panel-actions {
    display: flex;
    gap: 0.3rem;
}

.panel-actions button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.panel-actions button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.panel-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-box {
    padding: 0.75rem;
    border-bottom: 1px solid #ecf0f1;
}

.search-box input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9rem;
}

.path-navigation {
    padding: 0.75rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8f9fa;
}

.path-navigation button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.path-navigation button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.path-display {
    font-family: monospace;
    font-size: 0.9rem;
    color: #2c3e50;
    background: #ecf0f1;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.container-item, .file-item {
    padding: 0.75rem;
    border-bottom: 1px solid #ecf0f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
    user-select: none;
    position: relative;
}

.container-item:hover, .file-item:hover {
    background-color: #f8f9fa;
}

.container-item.selected, .file-item.selected {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.container-icon, .file-icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.container-info {
    flex: 1;
}

.container-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.container-image {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.container-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.status-running {
    background-color: #d4edda;
    color: #155724;
}

.status-stopped {
    background-color: #f8d7da;
    color: #721c24;
}

.status-paused {
    background-color: #fff3cd;
    color: #856404;
}

.container-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.container-item:hover .container-actions {
    opacity: 1;
}

.container-actions button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    margin-left: 0.3rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.file-name {
    flex: 1;
    font-weight: 500;
}

.file-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.file-permissions {
    font-family: monospace;
    font-size: 0.7rem;
    color: #7f8c8d;
}

.file-size {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.empty-state, .loading {
    padding: 2rem;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Editor Panel */
.editor-panel {
    flex: 2;
    min-width: 400px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #ecf0f1;
    background-color: #f8f9fa;
}

#current-file {
    font-weight: 600;
    color: #2c3e50;
}

/* Line Numbers Styles */
.line-numbers-container {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow: hidden;
    z-index: 1;
    width: 50px;
}

.line-numbers {
    padding: 1rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #6c757d;
    text-align: right;
    user-select: none;
}

.line-number {
    height: 1.4em;
    line-height: 1.4;
}

.editor-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.5rem;
}

#editor {
    flex: 1;
    width: 100%;
    min-height: 400px;
    font-family: 'Courier New', Monaco, 'Cascadia Code', monospace;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem 1rem 1rem 4rem; /* More left padding for line numbers */
    resize: none;
    background-color: #fafafa;
    position: relative;
    z-index: 2;
}

#editor:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
}

#editor:disabled {
    background-color: #fff3cd;
    color: #856404;
    font-style: italic;
    cursor: not-allowed;
}

.editor-status {
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    min-height: 20px;
}

.editor-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.editor-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.editor-status.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Fullscreen mode */
.editor-panel.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1000 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.editor-panel.fullscreen .panel-content {
    height: calc(100vh - 60px) !important;
}

.editor-panel.fullscreen #editor {
    height: calc(100vh - 120px) !important;
    font-size: 14px;
    padding-left: 5rem; /* Even more padding in fullscreen */
}

.editor-panel.fullscreen .line-numbers-container {
    width: 4.5rem;
}

/* Scroll synchronization */
.line-numbers {
    overflow: hidden;
}

#editor::-webkit-scrollbar {
    width: 8px;
}

#editor::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#editor::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#editor::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background-color: #34495e;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.modal-body input[type="text"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #3498db;
}

.modal-actions {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    border-top: 1px solid #ecf0f1;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Container Actions Styles */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.action-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.action-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-success { background-color: #27ae60; color: white; }
.btn-warning { background-color: #f39c12; color: white; }
.btn-info { background-color: #3498db; color: white; }

.btn-success:hover { background-color: #219a52; }
.btn-warning:hover { background-color: #e67e22; }
.btn-info:hover { background-color: #2980b9; }

/* Container Info */
.container-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.container-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.container-info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
}

.info-value {
    color: #7f8c8d;
    font-family: monospace;
}

/* Large Modal */
.large-modal {
    width: 800px;
    max-width: 95%;
}

.large-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.8rem;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input {
    flex: 1;
}

.input-with-button button {
    white-space: nowrap;
}

/* Container Details */
.details-grid {
    display: grid;
    gap: 1rem;
}

.detail-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.detail-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: 600;
    min-width: 120px;
    color: #2c3e50;
}

.detail-value {
    flex: 1;
    color: #7f8c8d;
    font-family: monospace;
    word-break: break-all;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Docker Compose Editor */
#docker-compose-editor {
    width: 100%;
    height: 400px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    background: #f8f9fa;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 1rem;
    resize: vertical;
}

.compose-info {
    margin-bottom: 1rem;
}

/* File drop zones */
.file-drop-zone {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.file-drop-zone:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.file-drop-zone.drag-over {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.drop-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.file-drop-zone p {
    margin: 0;
    color: #7f8c8d;
}

/* File list in upload modal */
.file-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 1rem;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
}

.file-list .file-item {
    margin: 0;
    border-bottom: 1px solid #ecf0f1;
}

.file-list .file-item:last-child {
    border-bottom: none;
}

/* Info and warning boxes */
.info-box, .warning-box {
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.info-box {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.info-box strong, .warning-box strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 3000;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Double click hint */
.file-item:hover::after {
    content: 'Double click to open';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    pointer-events: none;
}

/* Image list */
.image-item {
    padding: 0.75rem;
    border-bottom: 1px solid #ecf0f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
}

.image-item:hover {
    background-color: #f8f9fa;
}

.image-tags {
    flex: 1;
}

.image-tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.3rem;
    margin-bottom: 0.2rem;
}

.image-size {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Code styling */
code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        height: auto;
    }
    
    .panel {
        min-height: 300px;
    }
    
    .editor-panel {
        min-height: 500px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .large-modal {
        width: 95%;
        margin: 2% auto;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .container-actions {
        opacity: 1;
    }
    
    .line-numbers-container {
        display: none; /* Hide line numbers on mobile */
    }
    
    #editor {
        padding-left: 1rem;
    }
}

/* Scrollbar styling */
.list-container::-webkit-scrollbar {
    width: 6px;
}

.list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Selection styling */
::selection {
    background-color: #3498db;
    color: white;
}

/* Focus styles for accessibility */
button:focus, input:focus, textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Animation for smooth transitions */
.panel, .modal-content, .file-item, button {
    transition: all 0.2s ease-in-out;
}
/* Modal z-index fix */
.modal {
    z-index: 1000;
}

#delete-container-modal {
    z-index: 1001;
}

#container-actions-modal {
    z-index: 999;
}
/* Mesaje pentru container oprite */
.empty-state.warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 20px;
    text-align: center;
}

.empty-state.error {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    padding: 20px;
    text-align: center;
}

/* Butoane în mesaje */
.empty-state button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.empty-state .btn-success {
    background-color: #28a745;
    color: white;
}

.empty-state .btn-primary {
    background-color: #007bff;
    color: white;
}

.empty-state .btn-success:hover {
    background-color: #218838;
}

.empty-state .btn-primary:hover {
    background-color: #0056b3;
}
/* Asigură-te că containerele sunt vizibile chiar și cu erori */
.container-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.container-item:hover {
    background-color: #f5f5f5;
}

.container-item.selected {
    background-color: #e3f2fd;
}

.container-icon {
    font-size: 24px;
    margin-right: 12px;
}

.container-info {
    flex: 1;
    min-width: 0; /* Previne overflow */
}

.container-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container-image {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin: 0 12px;
}

.status-running {
    background-color: #d4edda;
    color: #155724;
}

.status-exited {
    background-color: #f8d7da;
    color: #721c24;
}

.status-paused {
    background-color: #fff3cd;
    color: #856404;
}

.status-unknown {
    background-color: #e2e3e5;
    color: #383d41;
}

.container-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
}

.container-actions button:hover {
    background-color: #e9ecef;
}
/* Statistics Modal Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.stat-icon {
    font-size: 24px;
    margin-right: 10px;
}

.stat-header h4 {
    margin: 0;
    color: #495057;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
}

.stat-details {
    font-size: 12px;
    color: #6c757d;
    margin: 10px 0;
}

.stat-details div {
    margin: 2px 0;
}

.stat-chart {
    height: 60px;
    margin-top: 10px;
}

.stats-history {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.history-chart {
    margin-top: 15px;
}

.realtime-icon {
    margin-right: 5px;
}

/* Dark mode support */
.dark-mode .stat-card {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .stat-header {
    border-color: #4a5568;
}

.dark-mode .stat-header h4 {
    color: #e2e8f0;
}

.dark-mode .stat-details {
    color: #a0aec0;
}

.dark-mode .stats-history {
    background: #2d3748;
}
/* Terminal Styles */
.terminal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.terminal-info {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.terminal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.terminal-actions select {
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
}

.terminal-container {
    flex: 1;
    background: #1e1e1e;
    color: #f0f0f0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    padding: 15px;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
}

.terminal-output {
    min-height: 400px;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-line {
    margin-bottom: 5px;
    line-height: 1.5;
}

.terminal-prompt {
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
    user-select: none;
}

.terminal-text {
    color: #f0f0f0;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #252525;
    border-top: 1px solid #444;
    border-radius: 0 0 4px 4px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f0f0f0;
    font-family: inherit;
    font-size: inherit;
    padding: 5px 10px;
    outline: none;
}

.terminal-input:focus {
    background: #2d2d2d;
    border-radius: 3px;
}

.terminal-send-btn {
    margin-left: 10px;
    padding: 5px 15px;
}

.terminal-help {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.quick-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-command {
    padding: 5px 12px;
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.quick-command:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Terminal Colors */
.terminal-output .command {
    color: #4CAF50;
    font-weight: bold;
}

.terminal-output .output {
    color: #f0f0f0;
}

.terminal-output .error {
    color: #ff6b6b;
}

.terminal-output .success {
    color: #4CAF50;
}

.terminal-output .info {
    color: #64b5f6;
}

.terminal-output .directory {
    color: #bb86fc;
}

.terminal-output .file {
    color: #03dac6;
}

/* Fullscreen terminal */
.terminal-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
}

.terminal-fullscreen .terminal-body {
    height: calc(100vh - 60px);
}

/* Dark mode support */
.dark-mode .terminal-info {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .terminal-help {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .quick-command {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .quick-command:hover {
    background: #4299e1;
    border-color: #4299e1;
}
/* Dark Mode Styles */
:root {
    --bg-color: rgba(0, 0, 0, 0.1);
    --text-color: #007bff;
    --panel-bg: #2d3748;
    --border-color: #dee2e6;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --modal-overlay: rgba(0, 0, 0, 0.5);
}

.dark-mode {
    --bg-color: #6c757d;
    --text-color: #e0e0e0;
    --panel-bg: #2d3748;
    --border-color: #4a5568;
    --primary-color: #4299e1;
    --secondary-color: #a0aec0;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #38b2ac;
    --shadow: 0 2px 4px rgba(0,0,0,0.3);
    --modal-overlay: rgba(0,0,0,0.7);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    background-color: var(--bg-color);
}

header {
    background-color: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
}

.panel {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.panel-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--panel-bg);
}

.panel-content {
    background-color: var(--panel-bg);
}

.search-box input {
    background-color: rgba(0, 0, 0, 0.1);
    color: #f8d7da;
    border: 1px solid var(--border-color);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.3);
}

.container-item, .file-item {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--panel-bg);
}

.container-item:hover, .file-item:hover {
    background-color: rgba(66, 153, 225, 0.1);
}

.container-item.selected, .file-item.selected {
    background-color: rgba(66, 153, 225, 0.2);
}

.modal {
    background-color: var(--modal-overlay);
}

.modal-content {
    background-color: var(--panel-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.info-box, .warning-box {
    background-color: rgba(66, 153, 225, 0.1);
    border-left: 4px solid var(--primary-color);
}

.warning-box {
    background-color: rgba(237, 137, 54, 0.1);
    border-left-color: var(--warning-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.form-control, .form-group input, .form-group textarea, .form-group select {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.form-control:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.3);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 5px 10px;
    margin-left: 15px;
    border-radius: 20px;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.dark-mode-toggle:hover {
    transform: rotate(30deg);
    background-color: var(--primary-color);
    color: white;
}

.light-mode-icon {
    display: none;
}

.dark-mode .dark-mode-icon {
    display: none;
}

.dark-mode .light-mode-icon {
    display: inline;
}

/* Terminal adjustments for dark mode */
.dark-mode .terminal-container {
    background: #c9c5c5;
    border: 1px solid var(--border-color);
}

.dark-mode .terminal-input-line {
    background: #1a1a1a;
    border-top: 1px solid var(--border-color);
}

.dark-mode .terminal-help {
    background-color: var(--panel-bg);
}

/* Editor adjustments */
.dark-mode #editor {
    background-color: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid var(--border-color);
}

.dark-mode .line-numbers-container {
    background-color: #1e1e1e;
    border-right: 1px solid var(--border-color);
}

.dark-mode .line-number {
    color: #858585;
}

/* Status badges */
.dark-mode .status-running {
    background-color: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.dark-mode .status-exited {
    background-color: rgba(245, 101, 101, 0.2);
    color: #f56565;
}

.dark-mode .status-paused {
    background-color: rgba(237, 137, 54, 0.2);
    color: #ed8936;
}

/* Scrollbar for dark mode */
.dark-mode ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.dark-mode ::-webkit-scrollbar-track {
    background: var(--panel-bg);
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
/* Realtime update
/* Updates Toggle Button */
.updates-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 20px;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.updates-toggle:hover {
    transform: rotate(180deg);
    background-color: var(--info-color);
    color: white;
}

.updates-toggle.active {
    background-color: var(--success-color);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Update Notification */
.update-notification {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

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