:root {
    --border-color: #e5e8eb;
    --color-primary: #ffc11f;
    --color-primary-bold: #d19e0d;
    --color-purple: #7c4dff;
    --color-red: #ff0000;
    --color-green: #2ecc71;
    --color-green-soft: #eefff5;

    --color-gray: #606975;
    --color-gray-soft: #adb5bd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #e5e8eb transparent;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* 스크롤바 트랙 (배경) */
::-webkit-scrollbar-track {
    background: transparent;
}

/* 스크롤바 핸들 (움직이는 부분) */
::-webkit-scrollbar-thumb {
    background: #e5e8eb;
    border-radius: 10px;
    transition: background 0.2s ease;
}

/* 핸들에 마우스 올렸을 때 */
::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

html {
    scrollbar-gutter: stable;
}

body {
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul, ol, li {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    border-radius: 5px;
    font: inherit;
    outline: none;
    color: inherit;
}

button:disabled {
    opacity: 0.7;
    background-color: #f2f4f6;
    color: #8b95a1;
    cursor: not-allowed;
    pointer-events: none;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="tel"], select, textarea {
    width: 100%;
    font: inherit;
    outline: none;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
}

.grid-select input[type="radio"],
.grid-select input[type="checkbox"] {
    display:none;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}
input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

textarea {
    resize: none;
    line-height: 1.5;
    letter-spacing: 1px;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
    color: #adb5bd;
    font-size: 14px;
    font-weight: 300;
    opacity: 1;
}

select {
    width: 100%;
    min-width: 150px;
    color: #adb5bd;
    font-size: 14px;
    font-weight: 300;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select:valid, option {color: #000;}

.select-box {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.select-box:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

img, video {
    max-width: 100%;
    display: block;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    font-size: 12px;
}

table th, td {
    text-align: left;
    vertical-align: middle;
}

table tr {
    border-bottom: 1px solid var(--border-color);
}

table thead th {
    background: #f9f9f9;
    color: var(--color-gray);
    font-weight: 500;
    padding: 10px 15px;
}

table tbody td {
    height: 50px;
}

table tbody tr:last-child {border-bottom: none;}

/* FLEX SETTINGS */
.flex-5-center {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mobile-br { display: none; }

@media (max-width: 768px) {
  .mobile-br { display: flex; }
}
