:root {
    --toss-blue: #3182f6;
    --toss-light-blue: #e7f0ff;
    --toss-gray: #f9fafb;
    --toss-border: #eaedef;
    --toss-text: #191f28;
    --toss-subtext: #8b95a1;
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* PC 환경을 위한 미디어 쿼리 추가 */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 100%;
        flex-direction: row;
        padding: 0 40px;
        gap: 24px;
    }

    .card {
        flex: 1;
        max-width: 50%;
        height: calc(100vh - 100px); /* 네비게이션 바 고려 */
        display: flex;
        flex-direction: column;
    }

    .input-card {
        position: sticky;
        top: 80px; /* 네비게이션 바 고려 */
    }

    textarea {
        flex: 1;
        height: 100%;
        min-height: calc(100vh - 250px); /* 네비게이션 바, 헤더와 버튼 공간 고려 */
    }

    .result-content {
        max-height: calc(100vh - 300px); /* 네비게이션 바, 탭과 버튼 공간 고려 */
        overflow-y: auto;
    }
}

.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--toss-border);
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--toss-subtext);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--toss-border);
    font-size: 15px;
    resize: vertical;
    min-height: 300px;
    outline: none;
    transition: border 0.2s;
}

textarea:focus {
    border-color: var(--toss-blue);
}

button {
    width: 100%;
    padding: 16px;
    background-color: var(--toss-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2b76e5;
}

button.secondary {
    background-color: var(--toss-light-blue);
    color: var(--toss-blue);
    margin-top: 8px;
}

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

.tabs {
    display: flex;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--toss-gray);
    border: 1px solid var(--toss-border);
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.tab.active {
    background-color: white;
    color: var(--toss-blue);
    font-weight: 600;
}

.result-content {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
}

.output-container {
    display: none;
}

.output-container.active {
    display: block;
}

.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media screen and (min-width: 1024px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
    
    body {
        padding: 20px 0;
    }
    
    #results-card {
        display: block !important;
    }
}

/* 인쇄 설정 */
@media print {
    .nav-container {
        display: none;
    }
    
    .input-card {
        display: none;
    }
    
    #results-card {
        display: block !important;
        box-shadow: none;
        border: none;
    }
    
    .tabs {
        display: none;
    }
    
    .output-container {
        display: none;
    }
    
    .output-container.active {
        display: block;
    }
    
    .copy-btn {
        display: none;
    }
}
