/* Aufguss Scorecards — Base Styles */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

/* Connection overlay */
#connection-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(200, 0, 0, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Toast */
#toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* QR overlay */
#qr-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9997;
    gap: 16px;
}
#qr-overlay img { max-width: 256px; border-radius: 8px; }
#qr-overlay a { color: white; font-size: 16px; }

/* Common button styles */
button {
    cursor: pointer;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: #2E7D32;
    color: white;
}
button:hover { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary { background: #666; }
button.danger { background: #d32f2f; }

/* Inputs */
input[type="text"], input[type="number"], textarea, select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

/* Slider */
input[type="range"] {
    width: 100%;
    height: 40px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}
input[type="range"]::-webkit-slider-track {
    height: 8px;
    border-radius: 4px;
    background: #ddd;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2E7D32;
    margin-top: -10px;
    cursor: pointer;
}
input[type="range"].deduction::-webkit-slider-thumb {
    background: #d32f2f;
}
input[type="range"].deduction::-webkit-slider-track {
    background: #ffcdd2;
}
