/* Premium Developer Execution Console Styles */
.exec-console-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px;
    color: #f8f8f2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.exec-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.exec-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exec-status-badge {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.exec-status-badge.success {
    background: rgba(80, 250, 123, 0.12);
    color: #50fa7b;
    border: 1px solid rgba(80, 250, 123, 0.25);
    box-shadow: 0 0 8px rgba(80, 250, 123, 0.08);
}
.exec-status-badge.error {
    background: rgba(255, 85, 85, 0.12);
    color: #ff5555;
    border: 1px solid rgba(255, 85, 85, 0.25);
    box-shadow: 0 0 8px rgba(255, 85, 85, 0.08);
}

.exec-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eceff1;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
}
.exec-metric-pill .material-icons {
    font-size: 11px;
    color: #8be9fd;
}
.exec-context-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(189, 147, 249, 0.08);
    border: 1px solid rgba(189, 147, 249, 0.15);
    color: #bd93f9;
    font-size: 10px;
    cursor: pointer;
    font-weight: 500;
    font-family: monospace;
    transition: all 0.15s ease;
    user-select: none;
}
.exec-context-link:hover {
    background: rgba(189, 147, 249, 0.18);
    border-color: rgba(189, 147, 249, 0.35);
}

.exec-action-btn {
    background: transparent;
    border: none;
    color: #6272a4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}
.exec-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ff5555;
}
.exec-action-btn .material-icons {
    font-size: 16px;
}

.exec-console-section {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.exec-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #bd93f9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}
.exec-section-title.error {
    color: #ff5555;
}
.exec-section-title .title-icon {
    font-size: 12px;
    vertical-align: middle;
    margin-right: 4px;
}

.exec-line-link {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 9.5px;
    color: #8be9fd;
    text-transform: none;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.exec-line-link:hover {
    opacity: 1;
    color: #50fa7b;
}
.exec-line-link.danger:hover {
    color: #ff5555;
}

.exec-return-body {
    padding: 4px 0;
}
.exec-plain-text {
    margin: 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    color: #eceff1;
    white-space: pre-wrap;
    word-break: break-all;
}
.exec-no-return {
    color: #6272a4;
    font-size: 11px;
    font-style: italic;
}

.exec-error-body {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    color: #ff5555;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.4;
}

.exec-logs-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exec-log-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 8px;
}
.exec-log-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.log-row-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.log-row-meta.collapsible-trigger {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    user-select: none;
}
.log-row-meta.collapsible-trigger:hover {
    background: rgba(255, 255, 255, 0.04);
}
.log-row-meta .meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.log-row-meta .toggle-icon {
    font-size: 14px;
    color: #6272a4;
}

.log-badge {
    font-size: 8.5px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}
.log-badge.info {
    background: rgba(139, 233, 253, 0.12);
    color: #8be9fd;
    border: 1px solid rgba(139, 233, 253, 0.25);
}
.log-badge.error {
    background: rgba(255, 85, 85, 0.12);
    color: #ff5555;
    border: 1px solid rgba(255, 85, 85, 0.25);
}
.log-badge.warning {
    background: rgba(255, 184, 108, 0.12);
    color: #ffb86c;
    border: 1px solid rgba(255, 184, 108, 0.25);
}
.log-badge.success {
    background: rgba(80, 250, 123, 0.12);
    color: #50fa7b;
    border: 1px solid rgba(80, 250, 123, 0.25);
}
.log-badge.debug {
    background: rgba(98, 114, 164, 0.12);
    color: #6272a4;
    border: 1px solid rgba(98, 114, 164, 0.25);
}
.log-badge.integration {
    background: rgba(189, 147, 249, 0.12);
    color: #bd93f9;
    border: 1px solid rgba(189, 147, 249, 0.25);
}
.log-badge.status.success {
    background: rgba(80, 250, 123, 0.15);
    color: #50fa7b;
}
.log-badge.status.error {
    background: rgba(255, 85, 85, 0.15);
    color: #ff5555;
}

.log-time {
    color: #6272a4;
    font-size: 10px;
}
.log-duration {
    color: #ffb86c;
    font-size: 10px;
    font-family: 'Consolas', 'Courier New', monospace;
}
.log-url {
    color: #eceff1;
    font-size: 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 500px;
}

.log-row-content {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    color: #eceff1;
    padding-left: 8px;
    line-height: 1.4;
}

.integration-details-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 8px;
    margin-top: 4px;
    margin-left: 14px;
}

.details-section-title {
    font-size: 8.5px;
    font-weight: bold;
    color: #ffb86c;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.details-section-body {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    padding: 6px;
    overflow-x: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 10.5px;
}

/* loading state */
.exec-console-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 12px;
}

.exec-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 233, 253, 0.15);
    border-top: 2px solid #8be9fd;
    border-radius: 50%;
    animation: execSpinner 0.8s linear infinite;
}

.exec-loading-text {
    color: #8be9fd;
    font-size: 10.5px;
    font-style: italic;
}

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

/* Monaco decoration flashing animation */
.execution-highlight-line {
    background: rgba(80, 250, 123, 0.12) !important;
    border-left: 3px solid #50fa7b !important;
    animation: flashLine 1.5s ease-out;
}

@keyframes flashLine {
    0% { background: rgba(80, 250, 123, 0.35); }
    100% { background: rgba(80, 250, 123, 0.0); }
}
