* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 400px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Icon */
.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.icon-wrapper.danger {
    background-color: #FEE2E2;
}

.icon-wrapper.success {
    background-color: #D1FAE5;
}

.icon-wrapper.error {
    background-color: #FEE2E2;
}

.icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.icon-wrapper.danger svg {
    color: #DC2626;
}

.icon-wrapper.success svg {
    color: #059669;
}

.icon-wrapper.error svg {
    color: #DC2626;
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 16px;
}

.description {
    font-size: 14px;
    color: #6B7280;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Warning Box */
.warning-box {
    background-color: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
}

.warning-box svg {
    width: 20px;
    height: 20px;
    color: #D97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box p {
    font-size: 13px;
    color: #92400E;
    line-height: 1.5;
}

/* Info Box */
.info-box {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1E40AF;
    margin-bottom: 8px;
}

.info-box ol, .info-box ul {
    padding-left: 20px;
    font-size: 14px;
    color: #1E40AF;
    line-height: 1.8;
}

/* Success Box */
.success-box {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.success-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: #065F46;
    margin-bottom: 8px;
}

.success-box ul {
    padding-left: 20px;
    font-size: 14px;
    color: #065F46;
    line-height: 1.8;
}

/* Error Box */
.error-box {
    background-color: #F3F4F6;
    border-radius: 12px;
    padding: 16px;
}

.error-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.error-box ol {
    padding-left: 20px;
    font-size: 14px;
    color: #4B5563;
    line-height: 1.8;
}

/* Button */
.btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-danger {
    background-color: #DC2626;
    color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
    background-color: #B91C1C;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 40px 0;
}

.loading-container .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #1741EA;
    margin-bottom: 24px;
}

.loading-container p {
    color: #6B7280;
    font-size: 14px;
}

/* Hint text */
.hint {
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
    margin-top: 24px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
}

.modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.modal-content {
    margin-bottom: 24px;
}

.modal-content p {
    font-size: 14px;
    color: #374151;
    margin-bottom: 16px;
}

.modal-content .warning-list {
    list-style: none;
    padding: 0;
}

.modal-content .warning-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.modal-content .warning-list svg {
    width: 16px;
    height: 16px;
    color: #F59E0B;
    flex-shrink: 0;
}

.modal-hint {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
}

.btn-secondary {
    background-color: #F3F4F6;
    color: #374151;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #E5E7EB;
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 32px 24px;
    }

    h1 {
        font-size: 20px;
    }

    .modal {
        padding: 20px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }
}
