:root {
    --db-blue: #3182F6;
    --db-gray: #F2F4F6;
    --db-light-gray: #F8F9FA;
    --db-white: #FFFFFF;
    --db-black: #1E1E1E;
    --db-red: #FF3B30;
    --db-green: #34C759;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--db-gray);
    color: var(--db-black);
    margin: 0;
    touch-action: none;
    height: 100%;
    /* overflow: hidden; */
    padding: 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--db-black);
}

p {
    font-weight: 400;
    color: var(--db-black);
}

/* 카드 스타일 */
.card {
    background-color: var(--db-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 16px;
}

/* 버튼 스타일 */
button {
    background-color: var(--db-blue);
    color: var(--db-white);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
}

button:hover {
    background-color: #1C6DEB;
}

button.secondary {
    background-color: var(--db-gray);
    color: var(--db-black);
}

button.secondary:hover {
    background-color: #E0E4E8;
}

/* 입력 필드 스타일 */
input {
    border: 1px solid var(--db-gray);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--db-blue);
    outline: none;
}

/* 상태 표시 (태그) */
.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.success {
    background-color: var(--db-green);
    color: var(--db-white);
}

.status.error {
    background-color: var(--db-red);
    color: var(--db-white);
}

.status.info {
    background-color: var(--db-blue);
    color: var(--db-white);
}

/* 리스트 스타일 */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--db-gray);
}

.list-item:last-child {
    border-bottom: none;
}

/* 탭 스타일 */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--db-gray);
    margin-bottom: 16px;
}

.tab {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    color: var(--db-black);
    transition: color 0.2s;
}

.tab.active {
    color: var(--db-blue);
    border-bottom: 2px solid var(--db-blue);
}

.tab:hover {
    color: var(--db-blue);
}

/* 모달 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--db-white);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-body {
    margin-bottom: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .card {
        padding: 16px;
    }

    h1 {
        font-size: 24px;
    }

    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.supergrid {
    /* grid-template-columns: 1fr 300px; */
    flex-wrap: wrap;
    flex-direction: row;
    display: flex;
    gap: 16px;
}

.maingrid {
    grid-template-columns: 1fr 1fr;
    min-width: 300px;
    display: grid;
    /* width: 100%; */
    flex: 1 0;
    gap: 16px;
}

.dba {
    text-decoration: none;
    text-align: center;
    color: black;
    display: block;
}

.dba>p {
    font-weight: 700;
    font-size: 16px;
}