/* ==========================================================================
   Copy Command Component
   ========================================================================== */

.copy-command-container {
    margin: 1.5rem 0;
    max-width: 100%;
}

.copy-command-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.copy-command-block {
    display: flex;
    align-items: stretch;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.copy-command-text {
    flex: 1;
    padding: 1rem;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}

.copy-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--border);
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
    justify-content: center;
}

.copy-button:hover {
    background: var(--accent);
    color: white;
}

.copy-button.copied {
    background: var(--success);
    color: white;
}

.copy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   Proxy Token Setup Component
   ========================================================================== */

.proxy-setup {
    text-align: center;
    padding: 2rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.proxy-setup h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.proxy-setup.has-token h3 {
    color: var(--success);
}

.proxy-setup.error h3 {
    color: var(--error);
}

.setup-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.create-token-button,
.create-another-button,
.retry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-token-button {
    background: var(--accent);
    color: white;
}

.create-token-button:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.create-token-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.create-another-button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

.create-another-button:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.retry-button {
    background: var(--error);
    color: white;
}

.retry-button:hover {
    opacity: 0.9;
}

.setup-notes {
    margin-top: 1.5rem;
    text-align: left;
}

.setup-notes .note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(122, 162, 247, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.setup-notes .note.expiry {
    background: rgba(224, 175, 104, 0.1);
}

.setup-notes .note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

.setup-notes .note.expiry .note-icon {
    background: #e0af68;
}

.setup-notes .note.warning-note {
    background: rgba(247, 118, 142, 0.15);
    border: 1px solid rgba(247, 118, 142, 0.3);
}

.setup-notes .note.warning-note .note-icon {
    background: #f7768e;
}

.setup-notes code {
    background: var(--bg-dark);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

.error-message {
    color: var(--error);
    margin-bottom: 1rem;
}

/* Small spinner for inline loading */
.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.proxy-setup.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
}

/* Platform Selector */
.platform-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.platform-option {
    padding: 0.5rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.platform-option:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.platform-option.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
}

/* Setup Steps */
.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

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

.step-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.step-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.setup-step .copy-command {
    margin: 0;
}

/* ==========================================================================
   Launch Dialog Component
   ========================================================================== */

.launch-dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.launch-dialog {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    animation: scaleIn 0.2s ease-out;
}

.launch-dialog h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.launch-no-launchers {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.launch-no-launchers code {
    background: var(--bg-dark);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

.launch-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

.launch-field {
    margin-bottom: 1rem;
}

.launch-field label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.launch-field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Courier New', Consolas, monospace;
    box-sizing: border-box;
}

.launch-field input:focus {
    outline: none;
    border-color: var(--accent);
}

.launch-field input::placeholder {
    color: var(--text-muted);
}

.launch-error {
    color: var(--error);
    font-size: 0.9rem;
    margin: 0.75rem 0;
}

.launch-success {
    color: var(--success);
    font-size: 0.9rem;
    margin: 0.75rem 0;
}

.launch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
}

.launch-button:hover:not(:disabled) {
    background: var(--accent-hover);
}

.launch-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

