/* Vail Master Dark Theme - Based on Vail Repeater */

/* Force dark mode for all users */
html {
    background-color: #0a0a0a;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header/Navbar */
.navbar {
    background-color: #363636;
    border-bottom: 1px solid #4a4a4a;
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0af;
}

/* Box/Card styles */
.box {
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    padding: 1.25rem;
}

.box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Form controls */
.input,
.textarea,
.select select,
select {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}

.input:focus,
.textarea:focus,
.select select:focus,
select:focus {
    background-color: #333;
    border-color: #086;
    box-shadow: 0 0 0 3px rgba(0, 134, 102, 0.2);
    outline: none;
}

/* Labels */
.label,
label {
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

/* Help text */
.help {
    color: #999;
    font-size: 0.875rem;
}

/* Buttons */
.button,
button {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.button:hover,
button:hover {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
}

.button.is-primary,
button.is-primary {
    background-color: #086;
    border-color: #086;
    color: white;
}

.button.is-primary:hover,
button.is-primary:hover {
    background-color: #097;
    border-color: #097;
}

.button.is-danger,
button.is-danger {
    background-color: #ff3860;
    border-color: #ff3860;
    color: white;
}

.button.is-danger:hover,
button.is-danger:hover {
    background-color: #ff1443;
    border-color: #ff1443;
}

.button:disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Range sliders */
input[type=range] {
    accent-color: #086;
    width: 100%;
    cursor: pointer;
}

/* Titles */
.title {
    color: #e0e0e0;
    font-weight: 700;
}

.title.is-4 {
    font-size: 1.25rem;
}

.title.is-5 {
    font-size: 1.1rem;
}

/* Tabs */
.tabs {
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}

.tabs a,
.tabs button {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    cursor: pointer;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.tabs a:hover,
.tabs button:hover {
    color: #e0e0e0;
    background-color: rgba(0, 134, 102, 0.1);
}

.tabs a.is-active,
.tabs button.is-active {
    border-bottom-color: #086;
    color: #086;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
}

th {
    color: #999;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

tr:hover {
    background-color: rgba(0, 134, 102, 0.1);
}

/* Callsign highlighting */
.callsign {
    color: #0af;
    font-weight: 600;
}

/* Status indicators */
.status-ready {
    color: #0af;
}

.status-active {
    color: #2ecc71;
}

.status-complete {
    color: #f1c40f;
}

.status-error {
    color: #ff3860;
}

/* Score highlighting */
.score-perfect {
    color: #2ecc71;
}

.score-good {
    color: #f1c40f;
}

.score-poor {
    color: #ff3860;
}

/* Keyboard key styling */
kbd {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
    font-family: monospace;
    font-size: 0.875rem;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #1a1a1a;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    background-color: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    background-color: #2a2a2a;
    border-top: 1px solid #3a3a3a;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
}

/* Large modal variant for help screen */
.modal-content.modal-large {
    max-width: 800px;
    width: 90vw;
}

/* Close button for modal header */
.modal-header {
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #e0e0e0;
}

/* Help modal content sections */
.help-section {
    margin-bottom: 1.5rem;
}

.help-section h4 {
    color: #0af;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.help-section p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.help-section ul {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.help-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.help-section code {
    background-color: #2a2a2a;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #0af;
}

.help-section strong {
    color: #0af;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.transmitting {
    animation: pulse 1s ease-in-out infinite;
    background-color: rgba(255, 165, 0, 0.2);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}
