/* ウェルカムモーダル */
.welcome-content {
    background: linear-gradient(135deg, #2c5364 0%, #203a43 50%, #0f2027 100%);
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid #3d3d3d;
}

.welcome-body {
    color: #ffffff;
}

.welcome-title {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.4;
}

.welcome-on-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 25px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.welcome-on-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.welcome-text {
    font-size: 14px;
    color: #cccccc;
    margin: 0;
    line-height: 1.5;
}

/* フローティング入力パネル */
.floating-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
    width: 200px;
    user-select: none;
}

.floating-panel.active {
    display: block;
}

.floating-panel.dragging {
    cursor: grabbing;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: move;
}

.panel-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
}

.close-btn:hover {
    color: #333;
}

.panel-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
}

.panel-input:focus {
    outline: none;
    border-color: #007bff;
}

.panel-controls {
     display: block;
}

.panel-label {
    font-size: 14px;
    color: #333;
    min-width: 60px;
}

.panel-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.panel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.panel-value {
    font-size: 14px;
    color: #333;
    min-width: 35px;
    text-align: right;
}

.panel-toggles {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.color-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-switch-label {
    font-size: 14px;
    color: #333;
}

.color-switch-btn {
    display: flex;
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.color-option {
    padding: 8px 16px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.color-option.black {
    color: #000;
    background: #f8f9fa;
}

.color-option.white {
    color: #fff;
    background: #333;
}

.color-option.active {
    background: #007bff;
    color: white;
}

.panel-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.mini-toggle {
    width: 40px;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.mini-toggle.active {
    background: #007bff;
}

.mini-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mini-toggle.active .mini-toggle-slider {
    transform: translateX(20px);
}

/* モーダルウィンドウ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #2c5364 0%, #203a43 50%, #0f2027 100%);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #3d3d3d;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #cccccc;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    color: #ffffff;
    line-height: 1.6;
}

.modal-body h4 {
    color: #4dd0e1;
    margin: 15px 0 8px 0;
    font-size: 16px;
}

.modal-body p {
    margin: 8px 0;
}