/* Dashboard CSS - Script Launcher - Enhanced Edition */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    color: #333;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

h1 {
    color: #333;
    margin-bottom: 10px;
}

/* Category sections - Compact layout */
.category {
    margin: 10px 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.06);
}

.category:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.category h2 {
    margin-top: 0;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

/* Category Header - Compact with icon left */
.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.category-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Category Icons - Smaller, inline */
.category-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.category-icon.orders {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.category-icon.products {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}
.category-icon.shipping {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.category-icon.analytics {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.category-icon.tools {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Functions Grid - Tighter spacing */
.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

/* Function Buttons (Cards) - Compact with unique colors */
.function-btn {
    --card-color: #6b7280;
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--card-color);
    border-radius: 8px;
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.function-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-color), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.function-btn:hover {
    border-color: var(--card-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.function-btn:hover::before {
    opacity: 1;
}

.function-btn.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
    border-color: #22c55e;
}

.function-btn .icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 6px auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s;
}

.function-btn:hover .icon {
    transform: scale(1.05);
}

.function-btn .name {
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.function-btn .status {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.function-btn .status.running {
    color: #22c55e;
    font-weight: 600;
}

/* Function button drag & drop */
.function-btn.draggable {
    cursor: grab;
}

.function-btn.draggable:active {
    cursor: grabbing;
}

.function-btn.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Category container drop zone styling */
.category-drag-over {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 2px dashed #3b82f6 !important;
    border-radius: 12px;
}

/* Empty category placeholder */
.empty-category-placeholder {
    color: #9ca3af;
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}

/* Buttons - Enhanced with modern styling */
button,
.btn,
input[type="button"],
input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 4px;
    border-radius: 10px !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.stop-btn {
    background: #e53e3e;
}

.stop-btn:hover {
    background: #c53030;
}

.refresh-btn {
    background: #718096;
}

.controls {
    margin: 20px 0;
}

/* Toast notifications - Stacking toast system - rechtsonder */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

#toast-container .toast-item {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 5px -1px rgba(0,0,0,0.2), 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12);
    min-width: 200px;
    max-width: 350px;
    text-align: left;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#toast-container .toast-item.toast-exit {
    animation: toastSlideOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Legacy #toast support (backwards compatibility) */
#toast {
    position: fixed;
    bottom: 24px;
    right: 16px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    z-index: 9998;
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 5px -1px rgba(0,0,0,0.2), 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12);
    min-width: 200px;
    max-width: 350px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-success, #toast-container .toast-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
}
.toast-error, #toast-container .toast-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
}
.toast-loading, #toast-container .toast-loading {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
}
.toast-info, #toast-container .toast-info {
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    border-left: 4px solid #8b5cf6;
}

/* History section */
#history {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#history h3 {
    margin-top: 0;
    color: #666;
    font-size: 14px;
}

.history-item {
    padding: 10px 15px;
    margin: 8px 0;
    background: #f7fafc;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
}

.history-item.success { border-left: 3px solid #22c55e; }
.history-item.error { border-left: 3px solid #dc2626; }

/* Chrome-style Tab Bar */
.tab-bar {
    display: flex;
    background: #dee1e6;
    padding: 8px 8px 0 8px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    min-height: 40px;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2px;
}

.tab {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #c8ccd3;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    color: #5f6368;
    cursor: pointer;
    max-width: 200px;
    transition: all 0.15s;
    position: relative;
}

.tab:hover {
    background: #e8eaed;
}

.tab.active {
    background: #fff;
    color: #333;
}

/* Tab achtergrond kleur wanneer script actief is */
.tab.script-running {
    background: #dcfce7;
    border-color: #86efac;
}

.tab.script-running.active {
    background: #f0fdf4;
    border-bottom-color: #f0fdf4;
}

.tab.script-idle {
    background: #fef3c7;
    border-color: #fcd34d;
}

.tab.script-idle.active {
    background: #fffbeb;
    border-bottom-color: #fffbeb;
}

.tab-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.tab-indicator.running {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 1.5s infinite;
}

.tab-indicator.idle {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

.tab-indicator.error {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.tab-indicator.done {
    background: #6b7280;
}

.tab-indicator.web-integrated {
    background: #22c55e;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tab-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-close {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #5f6368;
    flex-shrink: 0;
}

.tab-close:hover {
    background: rgba(0,0,0,0.1);
}

/* Tab content */
.tab-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content .status-msg {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
}

.tab-content .progress-mini {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tab-content .progress-mini-bar {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #48bb78);
    border-radius: 3px;
    transition: width 0.3s;
}

.tab-content .logs {
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    padding: 5px 0;
}

.tab-content .log-entry {
    margin: 4px 0;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-content .log-entry::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tab-content .log-entry.info { background: #f1f5f9; color: #475569; }
.tab-content .log-entry.info::before { background: #94a3b8; }
.tab-content .log-entry.success { background: #f0fdf4; color: #166534; }
.tab-content .log-entry.success::before { background: #22c55e; }
.tab-content .log-entry.warning { background: #fffbeb; color: #92400e; }
.tab-content .log-entry.warning::before { background: #f59e0b; }
.tab-content .log-entry.error { background: #fef2f2; color: #991b1b; }
.tab-content .log-entry.error::before { background: #ef4444; }

/* Checkout button */
.checkout-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-btn:hover {
    background: #7c3aed;
}

.no-tabs {
    color: #a0aec0;
    font-style: italic;
    padding: 10px 16px;
}

/* Server items - aparte sectie */
.servers-section {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.server-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4a5568;
}

.server-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
}

/* ================================
   MAIN LAYOUT WITH RIGHT SIDEBAR
   ================================ */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.header-servers {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.server-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.server-chip:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
    animation: serverPulse 2s infinite;
}

.server-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
    animation: none;
}

@keyframes serverPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.chip-name {
    font-weight: 500;
    color: #374151;
}

.chip-action {
    width: 18px;
    height: 18px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.chip-action:hover {
    background: #3b82f6;
    color: white;
}

.reboot-btn {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 2px solid #dc2626 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.main-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Right Sidebar for Status Cards */
.status-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 20px;
}

.status-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 3px solid #e5e7eb;
}

.status-card.blue { border-left-color: #3b82f6; background: linear-gradient(135deg, #eff6ff 0%, white 100%); }
.status-card.orange { border-left-color: #f97316; background: linear-gradient(135deg, #fff7ed 0%, white 100%); }
.status-card.yellow { border-left-color: #eab308; background: linear-gradient(135deg, #fefce8 0%, white 100%); }
.status-card.purple { border-left-color: #8b5cf6; background: linear-gradient(135deg, #faf5ff 0%, white 100%); }
.status-card.gray { border-left-color: #6b7280; background: linear-gradient(135deg, #f9fafb 0%, white 100%); }
.status-card.green { border-left-color: #22c55e; background: linear-gradient(135deg, #f0fdf4 0%, white 100%); }
.status-card.red { border-left-color: #ef4444; background: linear-gradient(135deg, #fef2f2 0%, white 100%); }

.status-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.status-icon {
    font-size: 14px;
}

.status-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.status-badge {
    font-size: 9px;
    padding: 2px 6px;
    background: #3b82f6;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

.status-body {
    font-size: 11px;
    color: #4b5563;
    line-height: 1.4;
}

.mini-btn {
    padding: 3px 8px;
    font-size: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
}

.mini-btn.gray { background: #6b7280; }
.mini-btn.green { background: #22c55e; }
.mini-btn.blue { background: #3b82f6; }
.mini-btn:hover { opacity: 0.9; }

/* Legacy support - remove old sidebar */
.servers-sidebar { display: none; }
.server-item { display: none; }
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: none;
}

@keyframes serverPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.server-details {
    flex: 1;
    min-width: 0;
}

.server-details .server-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-details .server-port {
    display: block;
    font-size: 10px;
    color: #9ca3af;
}

.server-action {
    width: 24px;
    height: 24px;
    border: none;
    background: #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    transition: all 0.2s;
    padding: 0;
}

.server-action:hover {
    background: #3b82f6;
    color: white;
}

/* Green action buttons */
.btn-green {
    background: #22c55e;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
}

.btn-green:hover {
    background: #16a34a;
}

/* Gray buttons */
.btn-gray {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
}

.btn-gray:hover {
    background: #4b5563;
}

/* Red buttons */
.btn-red {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
}

.btn-red:hover {
    background: #b91c1c;
}

/* Order form panel */
.order-form-panel {
    width: 280px;
    flex-shrink: 0;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 12px;
}

.order-form-panel input {
    width: 100%;
    margin-bottom: 6px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
}

/* Notes tab - fixed right position */
.tab.notes-tab {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-bottom: none;
}

.tab.notes-tab:hover {
    background: #fde68a;
}

.tab.notes-tab.active {
    background: #fff;
    border-color: #f59e0b;
}

/* Notes textarea styling */
#notes-textarea {
    background: #fffef7;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s;
}

#notes-textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Grid Layout for Script Tables - 2x6 */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.script-column {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.4);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.script-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.08);
}

.script-column-header {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid;
}

.script-column-header .column-title {
    flex: 1;
}

.script-column-header .column-edit {
    opacity: 0.7;
    cursor: pointer;
    font-size: 12px;
}

.script-column-header .column-edit:hover {
    opacity: 1;
}

.script-column-body {
    padding: 8px;
    flex: 1;
    min-height: 100px;
    overflow: hidden;
}

.script-column-body.drag-over {
    background: #f0fdf4;
    border: 2px dashed #22c55e;
}

/* Draggable script buttons */
.script-btn {
    display: block;
    position: relative;
    width: 100%;
    padding: 8px 10px 8px 14px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    text-align: left;
    cursor: grab;
    transition: all 0.15s;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.script-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.script-btn:active {
    cursor: grabbing;
}

.script-btn.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.script-btn .script-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    background: transparent;
}

.script-btn .script-indicator.web-integrated {
    background: #22c55e;
}

.script-btn .script-indicator.running {
    background: #3b82f6;
    box-shadow: 0 0 6px #3b82f6;
}

/* Update dot - blauw bolletje voor nieuwe versie */
.script-btn .update-dot {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 4px #3b82f6;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.2); }
}

/* Empty column placeholder */
.empty-placeholder {
    color: #9ca3af;
    font-size: 11px;
    font-style: italic;
    text-align: center;
    padding: 20px 10px;
}

/* Column colors - subtiele lijn kleuren */
.column-color-1 { border-color: #64748b; }
.column-color-2 { border-color: #3b82f6; }
.column-color-3 { border-color: #22c55e; }
.column-color-4 { border-color: #f97316; }
.column-color-5 { border-color: #8b5cf6; }
.column-color-6 { border-color: #ec4899; }
.column-color-7 { border-color: #0ea5e9; }
.column-color-8 { border-color: #eab308; }
.column-color-9 { border-color: #14b8a6; }
.column-color-10 { border-color: #ef4444; }
.column-color-11 { border-color: #6366f1; }
.column-color-12 { border-color: #84cc16; }

/* Edit Mode */
#edit-mode-btn {
    font-size: 12px;
    padding: 6px 12px;
    background: #e5e7eb;
    color: #333;
    border: 1px solid #d1d5db;
    margin-bottom: 10px;
}

/* In normal mode: scripts are clickable, not draggable */
.scripts-grid:not(.edit-mode) .script-btn {
    cursor: pointer;
}

.scripts-grid:not(.edit-mode) .script-btn:hover {
    background: #e5e7eb;
    transform: translateX(2px);
}

/* In edit mode: scripts are draggable */
.scripts-grid.edit-mode {
    border: 2px dashed #f59e0b;
    border-radius: 10px;
    padding: 10px;
    background: #fffef7;
}

.scripts-grid.edit-mode .script-btn {
    cursor: grab;
    border-left: 3px solid #f59e0b;
}

.scripts-grid.edit-mode .script-btn:hover {
    background: #fef3c7;
}

.scripts-grid.edit-mode .script-btn:active {
    cursor: grabbing;
}

/* Drag handle in edit mode */
.script-btn .drag-handle {
    color: #9ca3af;
    font-size: 14px;
    margin-right: 6px;
    font-weight: bold;
    letter-spacing: -2px;
}

.scripts-grid.edit-mode .script-btn .drag-handle {
    color: #f59e0b;
}

/* Drop zones tussen scripts */
.drop-zone {
    height: 4px;
    margin: 2px 0;
    border-radius: 2px;
    background: transparent;
    transition: all 0.15s;
}

.drop-zone:hover,
.drop-zone-active {
    height: 20px;
    background: #fef3c7;
    border: 2px dashed #f59e0b;
    margin: 4px 0;
}

.drop-zone.empty-drop-zone {
    height: 60px;
    background: #fefce8;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
}

.drop-zone.empty-drop-zone:hover,
.drop-zone.empty-drop-zone.drop-zone-active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #f59e0b;
}

/* Product Chips */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e5e7eb;
    color: #374151;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.product-chip .chip-qty {
    color: #6b7280;
    font-weight: 400;
}

.product-chip.chip-more {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Small blue button */
.btn-small-blue {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-small-blue:hover {
    background: #2563eb;
}

/* Small gray button */
.btn-small-gray {
    background: #6b7280;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-small-gray:hover {
    background: #4b5563;
}

/* Small red button */
.btn-small-red {
    background: #dc2626;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-small-red:hover {
    background: #b91c1c;
}

/* Small orange button */
.btn-small-orange {
    background: #f97316;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-small-orange:hover {
    background: #ea580c;
}

/* Status dots for Main Kev UI */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-dot.running {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 1.5s infinite;
}

.status-dot.idle {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

.status-dot.done {
    background: #6b7280;
}

.status-dot.error {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.status-dot.stopped {
    background: #9ca3af;
}
