﻿/*
 * LaunchCompass
 * Copyright (c) 2026 Robert Morgan / RMC Software Solutions, LLC
 * All rights reserved.
 * 
 * This software is proprietary and confidential.
 * Unauthorized copying, modification, distribution, or use is strictly prohibited.
 * 
 * File: wwwroot\css\settings-panel.css
 * Author: Robert Morgan
 * Version: 1.0.0
 * Created: 01/27/2026
 * Modified: 01/30/2026
 * Released: 00/00/0000
 * 
 * Description:
 *     Settings panel component styles.
 *     Duplicate of settings-page.css for panel-specific usage.
 * 
 * MVVM Role: Styling
 * Architecture: Component Styles
*/

/* wwwroot/css/settings-page.css */

.settings-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 100px; /* Space for bottom nav */
}

.settings-header {
    text-align: center;
    margin-bottom: 24px;
}

    .settings-header h1 {
        font-size: 1.5rem;
        color: var(--accent-orange);
        margin: 0;
    }

/* Section styling */
.settings-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.section-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

/* Calibration controls */
.on-target-banner {
    text-align: center;
    padding: 8px;
    margin-bottom: 12px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    border-radius: 6px;
    color: #22c55e;
    font-weight: bold;
    font-size: 0.9rem;
}

.dial-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

    .dial-preview .targeting-dial {
        width: 126px;
        height: 126px;
    }

.calibration-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.calibrate-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

    .calibrate-btn:hover {
        background: var(--bg-tertiary);
    }

    .calibrate-btn:active {
        background: var(--accent-orange);
    }

.nudge-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nudge-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

    .nudge-btn:hover {
        background: var(--bg-tertiary);
    }

    .nudge-btn:active {
        background: var(--accent-orange);
    }

.nudge-value {
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 1.1rem;
    color: var(--accent-orange);
    min-width: 60px;
    text-align: center;
}

/* Setting row with toggle */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-tertiary);
    cursor: pointer;
}

    .setting-row:last-child {
        border-bottom: none;
    }

    .setting-row span {
        font-size: 0.95rem;
        color: var(--text-primary);
    }

    .setting-row input[type="checkbox"] {
        width: 22px;
        height: 22px;
        accent-color: var(--accent-orange);
        cursor: pointer;
    }

/* Top position toggle */
.top-position-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.top-label {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.top-buttons {
    display: flex;
    gap: 0;
}

.top-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .top-btn:first-child {
        border-radius: 6px 0 0 6px;
    }

    .top-btn:last-child {
        border-radius: 0 6px 6px 0;
        border-left: none;
    }

    .top-btn.active {
        background: var(--accent-orange);
        color: white;
        border-color: var(--accent-orange);
    }

    .top-btn:not(.active):hover {
        background: var(--bg-tertiary);
    }

/* Duration input */
.duration-input {
    width: 80px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 0.95rem;
    text-align: center;
}

    .duration-input:focus {
        outline: none;
        border-color: var(--accent-orange);
    }

/* Data display rows */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

    .data-row:last-child {
        border-bottom: none;
    }

.data-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.data-value {
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Input rows for future settings */
.input-row {
    margin-bottom: 12px;
}

    .input-row label {
        display: block;
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-bottom: 6px;
    }

    .input-row input[type="text"] {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-primary);
        font-size: 0.9rem;
    }

        .input-row input[type="text"]:focus {
            outline: none;
            border-color: var(--accent-orange);
        }
