* {
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* 페이지 전체 스크롤 방지 */
}

.popup-container {
    background: #f4f6fa;
    width: 100%;      
    height: 100%;    
    max-width: none;   
    max-height: none;  
    margin: 0;
    padding: 16px;
    min-height: 100vh;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 10px;

    overflow: hidden;
}

.main-title {
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1;
}


.info-section,
.error-section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-title-box {
    display: flex;
}

.section-title {
    /* margin: 0 0 20px 0; */
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
}

.info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.info-item.full-width {
    grid-column: 1 / -1; /* 전체 너비 사용 */
}

.info-label {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    flex: 0 0 65px;
}

.info-value {
    background: #f4f6fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    min-height: 20px;
    display: flex;
    align-items: center;
    flex: 1;
}

.error-content-box {
    position: relative;
    /* width: 100%;
    height: 100%; */
}

.error-content {
    /* position: absolute; */
    width: 98%;
    height: 100%;

    background: #f4f6fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    max-height: 400px;        /* 최대 높이 설정 */
    min-height: 200px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

/* Webkit 브라우저 스크롤바 스타일링 */
.error-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.error-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.error-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.error-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.error-content {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666666;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #666666;
}

@media (max-width: 768px) {
    .popup-container {
        padding: 20px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .main-title h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 16px;
    }
}
