/*
 * ATLASCOPE STYLES
 * Extracted from index.html on November 9, 2025
 * Contains all Atlascope-specific CSS classes
 */

/* ═══════════════════════════════════════════════════════════ */
/* ATLASCOPE AGENT & CLIENT BUTTONS */
/* ═══════════════════════════════════════════════════════════ */

.atlascope-agent-btn,
.atlascope-client-btn {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.atlascope-agent-btn:hover,
.atlascope-client-btn:hover {
    background: #f5f5f5;
    border-color: #d4d4d4;
}

.atlascope-agent-btn.active,
.atlascope-client-btn.active {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #ffffff;
}

.atlascope-client-btn:hover {
    background: #f5f5f5;
    border-color: #d4d4d4;
}

.atlascope-client-btn.active {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════ */
/* ATLASCOPE LAYOUT */
/* ═══════════════════════════════════════════════════════════ */

.atlascope-layout {
    display: grid;
    grid-template-columns: 250px 1fr 1fr;
    gap: 20px;
    flex: 1;
    padding: 20px;
    overflow: hidden;
    min-height: 500px;
    background: #f5f5f5;
}

/* ═══════════════════════════════════════════════════════════ */
/* LEFT COLUMN - AGENTS & CLIENTS */
/* ═══════════════════════════════════════════════════════════ */

.atlascope-agents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    overflow-y: auto;
}

.atlascope-section-header {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atlascope-agents-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════ */
/* ATLASCOPE TABS (CLIENT/AGENT TOGGLE) */
/* ═══════════════════════════════════════════════════════════ */

.atlascope-tabs {
    display: flex;
    width: 100%;
    border-bottom: 2px solid #e5e5e5;
}

.atlascope-tab {
    flex: 1;
    padding: 12px 16px;
    background: #ffffff;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.atlascope-tab:hover {
    background: #f9fafb;
    color: #0a0a0a;
}

.atlascope-tab.active {
    background: #ffffff;
    border-bottom-color: #0a0a0a;
    color: #0a0a0a;
    font-weight: 600;
}

.atlascope-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

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

/* ═══════════════════════════════════════════════════════════ */
/* MIDDLE COLUMN - INPUT */
/* ═══════════════════════════════════════════════════════════ */

.atlascope-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.atlascope-input-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-bottom: 12px;
}

.atlascope-input-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    padding-left: 4px;
}

.atlascope-textarea {
    flex: 1;
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Monaco', 'Courier New', monospace;
    resize: none;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

.atlascope-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
}

.atlascope-textarea::placeholder {
    color: #9ca3af;
}

/* Atlascope textarea disabled state */
#atlascope-client-input:disabled,
#atlascope-agent-input:disabled {
    cursor: not-allowed;
    background: #f9fafb !important;
    color: #9ca3af !important;
}

.atlascope-process-btn {
    padding: 14px 24px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.atlascope-process-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.atlascope-process-btn:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════ */
/* RIGHT COLUMN - OUTPUT */
/* ═══════════════════════════════════════════════════════════ */

.atlascope-output {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.atlascope-output-content {
    flex: 1;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    overflow-y: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #1f2937;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.atlascope-placeholder {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

.atlascope-copy-btn {
    padding: 8px 16px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.atlascope-copy-btn:hover:not(:disabled) {
    background: #2563eb;
}

.atlascope-copy-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.5;
}

.atlascope-copy-btn.copied {
    background: #16a34a;
}

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE ADJUSTMENTS */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 1400px) {
    .atlascope-layout {
        grid-template-columns: 220px 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .atlascope-layout {
        grid-template-columns: 200px 1fr 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* ATLASCOPE CONTAINER - Match other page containers */
/* ═══════════════════════════════════════════════════════════ */

#atlascope-area {
    display: none !important;
    flex-direction: column;
    min-height: calc(100vh - 120px);
    gap: 16px;
    overflow: visible;
    flex: 1;
    padding: 0;
}

#atlascope-area:not(.hidden) {
    display: flex !important;
    background: #f9fafb;
}

#atlascope-area > * {
    flex-shrink: 0;
}

/* Pending bets container fills the space */
#pending-bets-container {
    flex: 1;
    min-height: 0;
}


