@charset "utf-8";

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #4a4a4a;
    --box-bg: #ffffff;
    --timeline-line: #dbdbdb;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e4e4e4;
    --box-bg: #2c2c2c;
    --timeline-line: #454545;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Bulma Switch Control Styles */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.switch input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    left: -9999px;
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.5rem;
    background-color: #dbdbdb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.switch-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input[type="checkbox"]:checked + .switch-label {
    background-color: #3273dc;
}

.switch input[type="checkbox"]:checked + .switch-label::after {
    transform: translateX(1.5rem);
}

.switch input[type="checkbox"]:focus + .switch-label {
    box-shadow: 0 0 0 0.125rem rgba(50, 115, 220, 0.25);
}

/* アイコンのスタイル */
.switch-icon {
    font-size: 1.2rem;
    color: #4a4a4a;
    transition: color 0.3s ease;
}

.switch-icon.is-active {
    color: #3273dc;
}

.switch-icon.is-inactive {
    color: #dbdbdb;
}

/* 特定のアイコンの色設定 */
.fa-sun.is-active {
    color: #ff8c00 !important;
}

.fa-moon.is-active {
    color: #ffd700 !important;
}

/* サイズバリエーション */
.switch.is-small .switch-label {
    width: 2.5rem;
    height: 1.25rem;
    border-radius: 0.625rem;
}

.switch.is-small .switch-label::after {
    width: 1rem;
    height: 1rem;
    top: 0.125rem;
    left: 0.125rem;
}

.switch.is-small input[type="checkbox"]:checked + .switch-label::after {
    transform: translateX(1.25rem);
}

.switch.is-large .switch-label {
    width: 4rem;
    height: 2rem;
    border-radius: 1rem;
}

.switch.is-large .switch-label::after {
    width: 1.5rem;
    height: 1.5rem;
    top: 0.25rem;
    left: 0.25rem;
}

.switch.is-large input[type="checkbox"]:checked + .switch-label::after {
    transform: translateX(2rem);
}