﻿.diagram-container {
    width: 100%;
    height: 600px;
    border: 1px solid #ccc;
    position: relative;
}

.workflow-node {
    background-color: #f0f0f0;
    border: 1px solid #999;
    border-radius: 5px;
    padding: 10px;
    width: 150px;
}

.node-header {
    font-weight: bold;
    margin-bottom: 5px;
}

.node-body {
    font-size: 0.9em;
}

.skill-palette .list-group-item {
    cursor: move;
}

.skill-palette {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
}

.skill-list {
    display: flex;
    flex-direction: column;
}

.skill-item {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px;
    margin: 2px 0;
    cursor: move;
}

.script-editor-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.input-section {
    flex: 0 0 auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.editor-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.editor {
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.editor-buttons {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.output-section {
    flex: 0 0 auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.input-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.input-row button {
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.test-button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.success-message {
    color: #28a745;
    padding: 10px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.error-message {
    color: #dc3545;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.save-section {
    margin-top: 10px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

.save-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.save-section button {
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover:not(:disabled) {
    opacity: 0.9;
}

button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Dynamic Pages Styles */
.template-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid #dee2e6;
}

    .template-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-color: #0d6efd;
    }

.category-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-color: #0d6efd;
    }

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .upload-area:hover,
    .upload-area.drag-over {
        border-color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.05);
    }

.preview-container {
    position: relative;
    min-height: 600px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

    .preview-container.desktop {
        margin: 20px;
    }

    .preview-container.tablet {
        margin: 20px auto;
        max-width: 768px;
        border: 8px solid #333;
        border-radius: 20px;
    }

    .preview-container.mobile {
        margin: 20px auto;
        max-width: 375px;
        border: 8px solid #333;
        border-radius: 25px;
    }

.font-monospace {
    font-family: 'Courier New', Consolas, Monaco, monospace;
}

.cursor-pointer {
    cursor: pointer;
}

.badge-success {
    background-color: #198754;
}

.badge-info {
    background-color: #0dcaf0;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-secondary {
    background-color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .template-card {
        margin-bottom: 1rem;
    }

    .preview-container.tablet,
    .preview-container.mobile {
        margin: 10px;
        border-width: 4px;
    }
}

@media (max-width: 576px) {
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }
}