/* フォーム要素の基本スタイル */
select,
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* フォーカス時のスタイル */
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--shadow-color);
}

/* select要素の調整 */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-color: var(--input-bg);
    padding-right: 28px;
}

/* range入力の調整 */
input[type="range"] {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* 無効状態のスタイル */
select:disabled,
input:disabled,
textarea:disabled {
    background-color: var(--bg-tertiary);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ボタンの基本スタイル */
.button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

.button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 既存のスタイルを上書きしないためのセレクタ */
.error-actions button,
.copy-button,
.replay-button,
.toggle-button,
.resetButton {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s;
}

.error-actions button:hover,
.copy-button:hover,
.replay-button:hover,
.toggle-button:hover,
.resetButton:hover{
    background: none;
}


.error-actions button:first-child {
    background-color: #4CAF50;
    color: white;
}

.error-actions button:last-child {
    background-color: #f44336;
    color: white;
}

.copy-button {
    background: transparent;
    opacity: 0.6;
}

.copy-button:hover {
    opacity: 1;
}

.replay-button {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.replay-button:hover {
    background-color: #0056b3;
}

.toggle-button.collapsed {
    transform: rotate(-90deg);
}