/* 기본 리셋 및 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1e1e1e;
    color: #ffffff;
    overflow: hidden;
}

/* 버튼 스타일 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 2px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #007acc;
    color: white;
}

.btn-primary:hover {
    background: #005a9e;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    margin: 5px 0;
}

/* 입력 필드 스타일 */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #444;
    border-radius: 6px;
    height: 8px;
    outline: none;
    margin: 8px 0;
    border: 1px solid #666;
    cursor: pointer;
    width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #007acc;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: grab;
    height: 18px;
    width: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #005a9e;
    transform: scale(1.2);
}

input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
}

input[type="number"],
input[type="text"] {
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    padding: 6px 10px;
    font-size: 13px;
}

input[type="number"]:focus,
input[type="text"]:focus {
    border-color: #007acc;
    outline: none;
}

select {
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}

select:focus {
    border-color: #007acc;
    outline: none;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 체크박스 스타일 */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 8px;
}

/* 컬러 피커 스타일 */
input[type="color"] {
    width: 60px;
    height: 30px;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #2d2d2d;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #fff;
}

.modal-body {
    margin: 20px 0;
    text-align: left;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

