/* 模組指令生成器樣式 */
.row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(247, 244, 240, 0.6) 100%);
    border-radius: 15px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

select, input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Noto Sans TC', sans-serif;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

select:focus, input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(168, 92, 92, 0.15);
    outline: none;
    background: var(--bg-white);
}

select:hover, input:hover {
    border-color: var(--accent-orange);
}

/* 自定義下拉選單樣式 */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a85c5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* 按鈕樣式 */
.action-button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg-white);
    background: var(--primary-red);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    font-family: 'Noto Sans TC', sans-serif;
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.action-button:hover::before {
    left: 100%;
}

.action-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.button-group {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
}

/* 輸出區域樣式 */
#output {
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-paper);
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: 15px;
    width: 100%;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    position: relative;
}

#output:hover {
    background: var(--bg-cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 程式碼區塊樣式 */
code {
    display: block;
    padding: 20px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
    position: relative;
}

code::before {
    content: '💻';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 16px;
}

/* 日式配色方案 */
:root {
    --primary-red: #a85c5c;
    --primary-dark: #8b4747;
    --secondary-gold: #c49b61;
    --accent-orange: #b8836d;
    --text-dark: #3a3a3a;
    --text-light: #757575;
    --bg-cream: #faf8f5;
    --bg-white: #ffffff;
    --bg-paper: #f7f4f0;
    --border-light: #e8e3dc;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-strong: 0 12px 40px rgba(0,0,0,0.10);
}
