/* Single-screen specific styles - each style is used on only one screen */

/* ===== SETUP-COMPLETE SCREEN ===== */
.completion-message {
    text-align: center;
    margin: 20px 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
}

.confirm-button {
    margin-top: 20px;
    padding: 8px 16px;
    background-color: #4cc9f0;
    color: #000;
    border: none;
    border-radius: 4px;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    cursor: pointer;
}

/* ===== WELCOME SCREEN ===== */
.welcome-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4cc9f0;
}

.welcome-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.welcome-subtitle {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4cc9f0;
    animation: pulse 1.5s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.welcome-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== TIMER SCREEN ===== */
.value-display {
    font-size: 14px;
    color: #4cc9f0;
    min-width: 40px;
    text-align: right;
}

.disabled {
    opacity: 0.4;
}

.toggle-icon {
    font-size: 18px;
    color: #fff;
}

/* ===== PRESET-NAMING SCREEN ===== */
.preset-naming-content {
    width: 240px;
    height: 320px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
    padding: 8px 0;
    text-align: center;
    overflow: hidden;
    font-family: "Noto Sans", sans-serif;
}

.preset-title {
    font-size: 12px;
    margin-bottom: 8px;
    color: #ffffff;
}

.text-input-container {
    width: auto;
    margin-bottom: 8px;
}

.text-input-label {
    font-size: 12px;
    color: #b8b8b8;
    margin-bottom: 4px;
    text-align: left;
}

.text-input-field {
    width: 100%;
    height: 32px;
    background-color: #1a1a1a;
    border: 2px solid #4cc9f0;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    padding: 0 8px;
    font-family: "Noto Sans", sans-serif;
}

.text-input-field:focus {
    outline: none;
    border-color: #4cc9f0;
}

.keyboard-container {
    width: 240px;
    height: 140px;
    overflow: hidden;
    margin-top: 4px;
}

/* Custom SimpleKeyboard styling */
.simple-keyboard {
    background: #1d1d1d;
    border-radius: 6px;
    padding: 4px;
    max-width: 240px;
}

.simple-keyboard .hg-button {
    height: 22px;
    min-width: 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 10px;
    font-family: "Noto Sans", sans-serif;
}

.simple-keyboard .hg-button:hover {
    background: #444;
}

.simple-keyboard .hg-button.hg-activeButton {
    background: #4cc9f0 !important;
    color: black !important;
}

.simple-keyboard .hg-button.hg-selectedButton {
    background: #4cc9f0 !important;
    color: white !important;
}

.simple-keyboard .hg-button.hg-functionBtn {
    background: #555;
    font-size: 9px;
}

.simple-keyboard .hg-button.hg-button-space {
    min-width: 80px;
}

.simple-keyboard .hg-button.hg-button-backspace,
.simple-keyboard .hg-button.hg-button-enter {
    background: #666;
}

.simple-keyboard .hg-button.hg-button-mic {
    background: #555;
}

.simple-keyboard .hg-button.hg-button-mic:hover {
    background: #444;
}

.keyboard-controls {
    display: flex;
    justify-content: space-between;
    width: 220px;
    margin-top: 6px;
}

.keyboard-control {
    font-size: 10px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 3px;
}

.keyboard-control .material-icons {
    font-size: 11px;
}

/* Voice recording overlay */
.voice-recording-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
    color: white;
}

.voice-recording-container {
    background: #1d1d1d;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    max-width: 180px;
    border: 2px solid #4cc9f0;
}

.voice-recording-icon {
    font-size: 36px;
    color: #4cc9f0;
    margin: 8px 0;
    animation: voicePulse 1.5s infinite;
}

.voice-recording-text {
    margin: 8px 0;
    font-size: 12px;
}

.voice-recording-timer {
    font-size: 20px;
    font-family: monospace;
    margin: 8px 0;
    color: #4cc9f0;
}

.voice-recording-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.voice-control-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    font-size: 12px;
    flex: 1;
}

.voice-control-stop {
    background: #4cc9f0;
    color: white;
}

.voice-control-cancel {
    background: #555;
    color: white;
}

.voice-result {
    margin-top: 12px;
    padding: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    font-size: 12px;
    max-height: 80px;
    overflow-y: auto;
    text-align: left;
}

.voice-result-title {
    font-size: 11px;
    color: #ccc;
    margin-bottom: 4px;
}

@keyframes voicePulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}