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

body {
    background: #0d0d0d;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER */
.header {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 1.3rem;
    color: #6b7280;
}

.header h1 {
    color: #f5f5f5;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.status-badge {
    background: transparent;
    border: 1px solid #2a2a2a;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    color: #10b981;
    font-size: 0.5rem;
}

.status-badge span {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* MAIN CONTENT */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* CONTROL PANEL */
.control-panel {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.control-panel input[type="text"] {
    transition: all 0.2s ease;
}

.control-panel input[type="text"]:hover {
    border-color: #4a4a4a;
}

.control-panel input[type="text"]:focus {
    outline: none;
    border-color: #6b7280;
    background: #1a1a1a;
}

.btn-primary {
    background: transparent;
    color: #f5f5f5;
    border: 1px solid #3a3a3a;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1a1a1a;
    border-color: #4a4a4a;
}

.btn-primary:active {
    background: #252525;
}

/* SECTIONS */
.output-section,
.jobs-section,
.file-viewer {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.section-header h2 {
    color: #f5f5f5;
    font-size: 1.2rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header i {
    color: #6b7280;
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-refresh,
.btn-close,
.btn-delete,
.btn-delete-all {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #9ca3af;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-refresh:hover,
.btn-close:hover {
    background: #252525;
    color: #f5f5f5;
    border-color: #3a3a3a;
}

.btn-delete:hover,
.btn-delete-all:hover {
    background: #3a1a1a;
    color: #ef4444;
    border-color: #ef4444;
}

/* OUTPUT CONTAINER - Dos columnas */
.output-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #2a2a2a;
    border: 1px solid #2a2a2a;
    min-height: 400px;
    max-height: 600px;
    height: 600px;
    overflow: hidden;
}

.output-raw {
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: 100%;
    overflow: hidden;
}

/* OUTPUT */
.output-content {
    background: #0d0d0d;
    color: #10b981;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    border: none;
    margin: 0;
}

/* JOB SUMMARY */
.job-summary {
    padding: 0;
    background: #1a1a1a;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #2a2a2a;
    border: none;
    min-height: 100%;
}

.summary-header {
    background: #1a1a1a;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #10b981;
    font-size: 1rem;
    font-weight: 500;
}

.summary-title i {
    font-size: 1.2rem;
}

.summary-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.job-id {
    color: #9ca3af;
    font-family: 'Courier New', monospace;
}

.duration {
    color: #6b7280;
}

.summary-section {
    background: #1a1a1a;
    padding: 20px;
}

.summary-section h3 {
    color: #f5f5f5;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-section h3 i {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Plan Stats */
.plan-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #2a2a2a;
    border: 1px solid #2a2a2a;
}

.stat-item {
    background: #0d0d0d;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-add .stat-value {
    color: #10b981;
}

.stat-change .stat-value {
    color: #f59e0b;
}

.stat-destroy .stat-value {
    color: #ef4444;
}

/* Resources List */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #2a2a2a;
}

.resource-item {
    background: #0d0d0d;
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 20px 1fr auto auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
}

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

.resource-item i {
    color: #6b7280;
    font-size: 0.8rem;
}

.resource-type {
    color: #9ca3af;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.resource-name {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.resource-actions {
    color: #10b981;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Outputs List */
.outputs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #2a2a2a;
}

.output-item {
    background: #0d0d0d;
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    border-bottom: 1px solid #2a2a2a;
}

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

.output-key {
    color: #9ca3af;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.output-value {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

/* Summary Footer */
.summary-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.timestamp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.8rem;
}

.timestamp-item i {
    font-size: 0.75rem;
}

/* JOBS GRID */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: #2a2a2a;
    border: 1px solid #2a2a2a;
}

.job-folder {
    background: #1a1a1a;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.job-folder:hover {
    background: #252525;
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.folder-icon {
    font-size: 1.5rem;
    color: #6b7280;
    margin-top: 2px;
    flex-shrink: 0;
}

.folder-title {
    flex: 1;
    min-width: 0;
}

.folder-title h3 {
    color: #f5f5f5;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 6px;
    word-break: break-all;
}

.folder-meta {
    color: #6b7280;
    font-size: 0.75rem;
}

.folder-actions {
    opacity: 1;
    transition: all 0.2s ease;
}

.btn-delete-folder {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #6b7280;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.btn-delete-folder:hover {
    background: #1a1a1a;
    color: #ef4444;
    border-color: #4a4a4a;
}

.folder-files {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}

.folder-files-header {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* FOLDER DETAIL VIEW */
.folder-detail {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 25px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #f5f5f5;
}

.breadcrumb-separator {
    color: #4a4a4a;
}

.breadcrumb-current {
    color: #f5f5f5;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #2a2a2a;
}

.file-item {
    background: #1a1a1a;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
}

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

.file-item:hover {
    background: #252525;
}

.file-item i {
    color: #6b7280;
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.file-item span {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

/* FILE VIEWER */
.file-content {
    background: #0d0d0d;
    color: #e0e0e0;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border: 1px solid #1a1a1a;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.file-content pre {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #2a2a2a;
}

.modal-header h3 {
    color: #f5f5f5;
    font-size: 1.1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header i {
    color: #6b7280;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #2a2a2a;
}

.path-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #9ca3af;
    flex-wrap: wrap;
}

.path-breadcrumb span {
    cursor: pointer;
    transition: color 0.2s ease;
}

.path-breadcrumb span:hover {
    color: #f5f5f5;
}

.path-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #2a2a2a;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.path-item {
    background: #1a1a1a;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #2a2a2a;
}

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

.path-item:hover {
    background: #252525;
}

.path-item i {
    color: #6b7280;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.path-item.folder i {
    color: #f59e0b;
}

.path-item span {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.path-item.parent {
    background: #0d0d0d;
}

.path-item.parent:hover {
    background: #1a1a1a;
}

/* CONFIRM MODAL STYLES */
.btn-secondary {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #3a3a3a;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #1a1a1a;
    border-color: #4a4a4a;
    color: #f5f5f5;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
}
