/* ============ 鍦ㄧ嚎鍊掕鏃剁壒鏈夋牱寮?============ */

/* ---- LED 鏄剧ず ---- */
.led-display {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.led-title {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 20px;
    font-weight: 500;
}

.led-time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.led-digit {
    font-family: 'Courier New', monospace;
    font-size: 64px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    letter-spacing: 2px;
}

.led-separator {
    font-size: 64px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.led-labels {
    display: flex;
    justify-content: center;
    gap: 110px;
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
}

/* ---- 鎺у埗鎸夐挳锛堣鐩?common.css 鐨?settings-card .btn 鍏ㄥ鏍峰紡锛?---- */
.control-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.settings-card .control-buttons .btn {
    min-width: 80px !important;
    padding: 12px 30px !important;
    border: none;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: auto !important;
    margin-bottom: 0 !important;
}

.settings-card .control-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-start {
    background: #10b981;
    color: white;
}

.btn-start:hover:not(:disabled) {
    background: #059669;
}

.btn-pause {
    background: #f59e0b;
    color: white;
}

.btn-pause:hover:not(:disabled) {
    background: #d97706;
}

.btn-fullscreen {
    background: #6b7280;
    color: white;
}

.btn-fullscreen:hover:not(:disabled) {
    background: #4b5563;
}

.btn-reset {
    background: #ef4444;
    color: white;
}

.btn-reset:hover:not(:disabled) {
    background: #dc2626;
}

/* ---- 鏍囩椤?---- */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #f3f4f6;
}

.tab-btn.active {
    background: #f3e8ff;
    color: #8b5cf6;
}

/* ---- 棰勮鏃堕暱 ---- */
.preset-section {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
}

.preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-btn {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    border-color: #8b5cf6;
    background: #f3e8ff;
}

.preset-btn.festival-btn {
    background: #f0fdf4;
    border-color: #86efac;
    color: #059669;
    font-weight: 500;
}

.preset-btn.festival-btn:hover {
    background: #dcfce7;
    border-color: #4ade80;
}

.festival-countdown {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 4px;
}

/* ---- 鑷畾涔夋椂闀?---- */
.custom-section {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
}

.custom-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.custom-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.custom-input {
    width: 120px;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.custom-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.btn-custom-set {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-custom-set:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.custom-msg {
    margin-left: 15px;
    font-size: 13px;
    color: #8b5cf6;
}

/* ---- 璁剧疆 ---- */
.settings-section {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
}

.setting-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.setting-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8b5cf6;
}

/* ---- 鍏ㄥ睆妯″紡 ---- */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}

.fullscreen-led {
    text-align: center;
}

.fullscreen-title {
    font-size: 28px;
    color: #6b7280;
    margin-bottom: 30px;
    font-weight: 500;
}

.fullscreen-time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.fullscreen-digit {
    font-family: 'Courier New', monospace;
    font-size: 140px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 40px rgba(0, 255, 0, 0.6);
    letter-spacing: 4px;
}

.fullscreen-separator {
    font-size: 140px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 40px rgba(0, 255, 0, 0.6);
    animation: blink 1s infinite;
}

.fullscreen-labels {
    display: flex;
    justify-content: center;
    gap: 220px;
    margin-top: 20px;
    color: #6b7280;
    font-size: 20px;
}

.fullscreen-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    transition: opacity 0.3s;
}

.fullscreen-buttons.hidden {
    opacity: 0;
    pointer-events: none;
}

.fullscreen-buttons .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 80px;
}

.btn-exit {
    background: #6b7280;
    color: white;
}

.btn-exit:hover {
    background: #4b5563;
}

.btn-toggle {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 13px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.fullscreen-hint {
    position: absolute;
    bottom: 30px;
    color: #4b5563;
    font-size: 14px;
}

/* ---- 鍝嶅簲寮?---- */
@media (max-width: 768px) {
    .led-digit {
        font-size: 40px;
    }

    .led-separator {
        font-size: 40px;
    }

    .led-labels {
        gap: 70px;
    }

    .fullscreen-digit {
        font-size: 60px;
    }

    .fullscreen-separator {
        font-size: 60px;
    }

    .fullscreen-labels {
        gap: 100px;
    }

    .custom-inputs {
        flex-wrap: wrap;
    }

    .custom-input {
        width: 100px;
    }
}
