/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

/* Header bar with logout */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3498db;
}

.header-bar h1 {
    margin: 0;
    border: none;
    padding: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.global-target-selector {
    display: flex;
    align-items: center;
    color: #2c3e50;
    font-weight: 500;
}

.global-target-selector select {
    padding: 6px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    background: white;
    color: #2c3e50;
    font-size: 14px;
    min-width: 180px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.global-target-selector select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.global-target-selector select:hover {
    border-color: #95a5a6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
    text-decoration: none;
    color: white;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
}

h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    background: #ecf0f1;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    color: #7f8c8d;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #3498db;
    color: white;
}

.tab-button:hover:not(.active) {
    background: #d5d8dc;
}

.tab-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

/* Action bar */
.action-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.action-bar button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.action-bar button:hover {
    background: #2980b9;
}

/* Forms */
.form-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.form-actions button[type="submit"] {
    background: #27ae60;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #229954;
}

.form-actions button[type="button"] {
    background: #95a5a6;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #7f8c8d;
}

/* Lists */
.list-container {
    margin-top: 20px;
}

.item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: box-shadow 0.3s ease;
}

.item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0px;
}

.item-description {
    color: #7f8c8d;
    margin-bottom: 0px;
}

.item-meta {
    font-size: 12px;
    color: #95a5a6;
}

.item-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.item-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-edit {
    background: #f39c12;
    color: white;
}

.btn-edit:hover {
    background: #e67e22;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

.btn-view {
    background: #3498db;
    color: white;
}

.btn-view:hover {
    background: #2980b9;
}

.btn-execute {
    background: #27ae60;
    color: white;
}

.btn-execute:hover {
    background: #229954;
}

/* Procedure builder */
/* Procedure Commands Container - Two column layout */
.procedure-commands-container {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.available-commands-section,
.selected-commands-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#command-filter-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
}

.move-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.move-buttons button {
    flex: 1;
    padding: 8px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.move-buttons button:hover {
    background: #2980b9;
}

.move-buttons button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.commands-select {
    width: 100%;
    height: 300px;
    padding: 5px;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    background: white;
    overflow-y: auto;
}

.commands-select option {
    padding: 5px 8px;
    cursor: pointer;
}

.commands-select option:hover {
    background: #e3f2fd;
}

#available-commands {
    background: #ecf0f1;
    border-color: #bdc3c7;
}

#available-commands option:hover {
    background: #d5dbdb;
}

.command-count {
    margin-top: 8px;
    font-size: 13px;
    color: #7f8c8d;
    text-align: center;
}

/* Job monitoring - Split layout */
.jobs-split-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    height: calc(100vh - 380px);
    min-height: 600px;
}

.jobs-left-panel {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.jobs-left-header {
    padding: 15px 15px 0 15px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.jobs-left-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.jobs-left-panel .list-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    margin-top: 0;
}

.jobs-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.jobs-right-header {
    padding: 15px 15px 0 15px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.jobs-right-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.job-details {
    flex: 1;
    background: #f8f9fa;
    border: none;
    border-radius: 0;
    padding: 15px;
    margin: 0;
    overflow-y: auto;
}

.job-details-placeholder {
    text-align: center;
    color: #7f8c8d;
    padding: 40px 20px;
    font-style: italic;
}

/* Job list item highlighting */
.jobs-left-panel .item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.jobs-left-panel .item:hover {
    background-color: #f8f9fa;
}

.jobs-left-panel .item.selected {
    background-color: #fff9c4;
    border-left: 4px solid #ffd700;
}

.jobs-left-panel .list-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.jobs-left-panel .list-item:hover {
    background-color: #f8f9fa;
}

.jobs-left-panel .list-item.selected {
    background-color: #fff9c4;
    border-left: 4px solid #ffd700;
}

.job-info {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.job-logs {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
}

.log-entry {
    margin-bottom: 10px;
    padding: 8px;
    border-left: 3px solid #3498db;
    background: rgba(52, 152, 219, 0.1);
    line-break: anywhere;
}

.log-meta {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-output {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    max-height: 700px;
    overflow-y: auto;
    overflow-x: auto;
}

.log-output.nowrap {
    white-space: pre;
}

.log-wrap-toggle {
    border: none;
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.log-wrap-toggle:hover {
    background: #2980b9;
    transform: scale(1.2);
}

/* Status indicators */
.status, .badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-running {
    background: #3498db;
    color: white;
}

.status-completed {
    background: #27ae60;
    color: white;
}

.status-failed {
    background: #e74c3c;
    color: white;
}

.badge-purple{
    background: #a634db;
    color: white;
}
.badge-white{
    background: lightgray;
    color: black;
}
.item-description{
    margin-bottom: 5px;
}

/* System checks */
.system-checks {
    margin-top: 20px;
}

.check-category {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.check-category-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.check-category-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.check-category-status.ok {
    background: #27ae60;
    color: white;
}

.check-category-status.warning {
    background: #f39c12;
    color: white;
}

.check-category-status.error {
    background: #e74c3c;
    color: white;
}

.check-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f8f9fa;
}

.check-item:last-child {
    border-bottom: none;
}

.check-item-info {
    flex: 1;
}

.check-item-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 2px;
}

.check-item-message {
    font-size: 13px;
    color: #7f8c8d;
}

.check-item-path {
    font-size: 11px;
    color: #95a5a6;
    font-family: 'Courier New', monospace;
}

.check-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-left: 15px;
}

.check-status.ok {
    background: #d5f4e6;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.check-status.warning {
    background: #fdeaa7;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.check-status.error {
    background: #fadbd8;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* System info */
.system-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-section {
    margin-bottom: 25px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
    padding-left: 12px;
}

.info-section p {
    margin-bottom: 10px;
    color: #34495e;
}

.info-section ul {
    margin-left: 20px;
    color: #34495e;
}

.info-section li {
    margin-bottom: 5px;
}

.info-section code {
    background: #ecf0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #2c3e50;
}

.info-section pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
}

.info-section pre code {
    background: none;
    padding: 0;
    color: #ecf0f1;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Target selection styling */
#custom-target-fields {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

#instance-selection {
    background: #e8f4f8;
    border: 1px solid #3498db;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

#execute-target-type {
    font-weight: 600;
    background: white;
    border: 2px solid #3498db;
}

/* Table Controls */
.table-controls {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.filter-section {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-section input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-section select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

.refresh-btn {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.refresh-btn:hover {
    background: #8e44ad;
    transform: scale(1.1);
}

.refresh-btn i {
    font-size: 14px;
}

.new-command-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.new-command-btn:hover {
    background: #229954;
    transform: scale(1.1);
}

.new-command-btn i {
    font-size: 14px;
}

/* Data Table */
.table-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.data-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.data-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
    user-select: none;
}

.data-table th.sortable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.data-table th.sortable:hover {
    background: #e9ecef;
}

.data-table th.actions-col {
    width: 200px;
    text-align: center;
}

.sort-icon {
    margin-left: 5px;
    color: #7f8c8d;
    font-size: 12px;
    opacity: 0.6;
}

.data-table th.sort-asc .sort-icon::after {
    content: ' ↑';
    color: #3498db;
    opacity: 1;
}

.data-table th.sort-desc .sort-icon::after {
    content: ' ↓';
    color: #3498db;
    opacity: 1;
}

.data-table tbody tr {
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table td {
    padding: 12px 15px;
    font-size: 14px;
    vertical-align: middle;
}

.data-table .name-cell {
    font-weight: 600;
    color: #2c3e50;
}

.data-table .description-cell {
    color: #7f8c8d;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table .date-cell {
    color: #95a5a6;
    font-size: 12px;
    white-space: nowrap;
}

.data-table .actions-cell {
    text-align: center;
}

.data-table .actions-cell .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 2px;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: white;
}

.action-btn.edit-btn {
    background: #f39c12;
}

.action-btn.edit-btn:hover {
    background: #e67e22;
    transform: scale(1.1);
}

.action-btn.delete-btn {
    background: #e74c3c;
}

.action-btn.delete-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.action-btn.view-btn {
    background: #3498db;
}

.action-btn.view-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.action-btn.execute-btn {
    background: #27ae60;
}

.action-btn.execute-btn:hover {
    background: #229954;
    transform: scale(1.1);
}

/* Table responsive design */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-section input[type="text"],
    .filter-section select {
        min-width: auto;
        width: 100%;
        margin-bottom: 10px;
    }

    .refresh-btn,
    .new-command-btn {
        align-self: flex-end;
        margin-bottom: 10px;
    }

    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    .data-table .description-cell {
        max-width: 200px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1;
        min-width: 100px;
    }

    .item {
        flex-direction: column;
        align-items: stretch;
    }

    .item-actions {
        margin-top: 15px;
        justify-content: flex-end;
    }

    .form-actions {
        flex-direction: column;
    }

    .check-item {
        flex-direction: column;
        align-items: stretch;
    }

    .check-status {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-start;
    }
}

/* Command Variables Styles */
.command-variables-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f9f9f9;
}

.command-variables-list {
    margin-bottom: 10px;
}

.variable-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.variable-row .variable-name {
    width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
}

.variable-row .variable-value {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.variable-row .variable-name:focus,
.variable-row .variable-value:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.delete-variable-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.delete-variable-btn:hover {
    background: #c0392b;
}

.add-variable-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.add-variable-btn:hover {
    background: #229954;
}

.variables-help-text {
    margin-top: 10px;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

/* File Attachments Styles */
.file-attachments-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f9f9f9;
}

.file-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.file-drop-zone:hover {
    border-color: #007cba;
    background-color: #f0f8ff;
}

.file-drop-zone.drag-over {
    border-color: #007cba;
    background-color: #e6f3ff;
}

.attached-files-list, .existing-files-list {
    max-height: 300px;
    overflow-y: auto;
}

.file-item, .existing-file-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: white;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: box-shadow 0.2s ease;
}

.file-item:hover, .existing-file-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-identity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.file-paths {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-path-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.path-label {
    font-weight: 600;
    color: #666;
    min-width: 50px;
}

.path-value {
    color: #333;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
    word-break: break-all;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
    margin: 0;
}

.file-size {
    color: #7f8c8d;
    font-size: 0.85em;
    font-weight: 500;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.file-path {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.file-settings {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.target-path-setting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.target-path-setting label {
    min-width: 80px;
    font-size: 0.9em;
}

.target-path-input, .existing-target-path-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.cleanup-setting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cleanup-setting label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.cleanup-setting input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.1);
}

.file-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.file-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: white;
}

.file-actions .view-file-btn {
    background: #3498db;
}

.file-actions .view-file-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.file-actions .remove-file-btn {
    background: #e74c3c;
}

.file-actions .remove-file-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.no-files {
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 10px 0;
}

/* File viewer overlay styles */
/* File Viewer Overlay - DEPRECATED */
.file-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in-out;
}

.file-viewer {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

.file-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.file-viewer-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.file-viewer-close {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.file-viewer-close:hover {
    background: #c0392b;
}

.file-viewer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    max-height: 600px;
}

.file-viewer-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

.file-viewer-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* File Editor Styles - DEPRECATED */
.file-editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-editor {
    background: white;
    border-radius: 8px;
    width: 95%;
    max-width: 1200px;
    height: 85%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.file-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.file-editor-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    flex: 1;
}

.editor-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-save {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-save:hover:not(:disabled) {
    background: #229954;
    transform: translateY(-1px);
}

.btn-save:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn-save.has-changes {
    background: #e67e22;
    animation: pulse 2s infinite;
}

.btn-save.has-changes:hover:not(:disabled) {
    background: #d35400;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 126, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

.file-editor-close {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.file-editor-close:hover {
    background: #c0392b;
}

.file-editor-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.editor-container {
    display: flex;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.4;
    border: none;
    overflow: hidden;
}

.line-numbers {
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 15px 10px;
    text-align: right;
    color: #6c757d;
    white-space: pre;
    overflow: hidden;
    min-width: 4em;
    user-select: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.line-numbers span {
    display: block;
    padding-right: 8px;
}

.code-editor {
    flex: 1;
    border: none;
    padding: 15px;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    resize: none;
    outline: none;
    overflow-y: auto;
    background: white;
    color: #2c3e50;
    tab-size: 4;
}

.code-editor:focus {
    box-shadow: none;
    border: none;
}

/* Editor notifications */
.editor-notification {
    position: absolute;
    top: 100%;
    right: 20px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: slideInNotification 0.3s ease-out;
}

.editor-notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.editor-notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Edit button styling */
.edit-file-btn {
    background: #3498db;
    color: white;
}

.edit-file-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Responsive design for file items */
@media (max-width: 768px) {
    .file-item, .existing-file-item {
        flex-direction: column;
        gap: 10px;
    }

    .file-settings {
        flex: none;
    }

    .target-path-setting {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .target-path-setting label {
        min-width: auto;
    }

    .file-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .file-actions {
        justify-content: flex-end;
    }

    .file-viewer {
        width: 95%;
        max-height: 90%;
    }

    .file-viewer-content {
        max-height: 400px;
    }

    .file-editor {
        width: 98%;
        height: 90%;
    }

    .editor-container {
        font-size: 12px;
    }

    .line-numbers {
        min-width: 3em;
        padding: 10px 6px;
    }

    .code-editor {
        padding: 10px;
    }

    .editor-controls {
        gap: 5px;
    }

    .btn-save {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Daemon control styles */
.daemon-controls {
    margin-top: 10px;
}

.daemon-control-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.daemon-control-btn.start-btn {
    background-color: #28a745;
    color: white;
}

.daemon-control-btn.start-btn:hover {
    background-color: #218838;
}

.daemon-control-btn.stop-btn {
    background-color: #dc3545;
    color: white;
}

.daemon-control-btn.stop-btn:hover {
    background-color: #c82333;
}

/* Clickable log styles */
.clickable-log {
    cursor: pointer;
    color: #3498db;
    transition: color 0.2s;
}

.clickable-log:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Log overlay styles */
/* Log Overlay - DEPRECATED */
.log-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in-out;
}

.log-viewer {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.log-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.log-close {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.log-close:hover {
    background: #c0392b;
}

.log-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    max-height: 500px;
}

.log-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

.log-content .loading {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

.log-content .error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===============================
   DEPRECATED OVERLAY STYLES
   These styles are replaced by overlay-unified.css
   Kept for backward compatibility during transition
   TODO: Remove after v0.0.42 is stable
   =============================== */

/* Global Target Overlay - DEPRECATED */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.overlay-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow: auto;
    animation: slideIn 0.3s ease;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.overlay-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.overlay-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.overlay-close:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.overlay-body {
    padding: 20px;
}

/* Variables table in execute form */
.variables-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #ffffff;
    border: 15px solid #0875e3;
    border-radius: 4px;
    overflow: hidden;
}

.variables-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.variables-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.variables-table tbody tr {
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.variables-table tbody tr:hover {
    background: #f8f9fa;
}

.variables-table tbody tr:last-child {
    border-bottom: none;
}

.variables-table td {
    padding: 10px 12px;
    font-size: 13px;
    vertical-align: middle;
    color: #2c3e50;
}

.variables-table td:first-child {
    font-weight: 500;
    color: #3498db;
}

.variables-table td:nth-child(2) {
    font-family: 'Courier New', monospace;
    color: #27ae60;
    font-weight: 500;
}

.variables-table td:nth-child(3) {
    font-family: 'Courier New', monospace;
    color: #7f8c8d;
    word-break: break-word;
}

#procedure-variables-section {
    margin-top: 15px;
}

#procedure-variables-section label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.variables-loading {
    text-align: center;
    padding: 20px !important;
    color: #7f8c8d;
    font-style: italic;
    background: #f8f9fa;
}
