/* 결과 리포트 카드 레이아웃 */
.result-report-card {
    max-width: 700px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.report-accent-bar {
    height: 10px;
    background: linear-gradient(90deg, #865EF4, #a166ff);
}

/* 결과 이미지 스타일 개선 */
.main-result-img {
    max-width: 500px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.3s ease;
    background-color: transparent !important;
}

.main-result-img:hover {
    transform: scale(1.02);
}

/* 점수 시각화 섹션 */
.score-visualization {
    background: rgba(134, 94, 244, 0.05);
    border: 1px solid rgba(134, 94, 244, 0.2);
    padding: 1.5rem;
    border-radius: 1rem;
}

.score-progress {
    height: 12px;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    border: none !important;
    overflow: hidden;
}

.score-progress-bar {
    background: linear-gradient(90deg, #865EF4, #a166ff) !important;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 분석 및 처방전 섹션 */
.analysis-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
}

.analysis-text {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1.05rem;
}

.prescription-box {
    background: rgba(255, 193, 7, 0.02);
    border: 1px dashed rgba(255, 193, 7, 0.3);
    padding: 1.5rem;
    border-radius: 1rem;
}

/* 액션 버튼 커스텀 */
.btn-result-action {
    background: #865EF4 !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-result-action:hover {
    background: #413bbd !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(134, 94, 244, 0.4);
}

/* 유틸리티 및 기존 스타일 유지/보완 */
.tracking-widest { letter-spacing: 0.1em; }

#copyToast {
    visibility: hidden; min-width: 200px; background-color: #ffffff; color: #000;
    text-align: center; border-radius: 10px; padding: 12px 24px; position: fixed;
    z-index: 10000; bottom: 50px; left: 50%; transform: translateX(-50%);
    font-weight: bold; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
#copyToast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }

@keyframes fadein { from { bottom: 0; opacity: 0; } to { bottom: 50px; opacity: 1; } }
@keyframes fadeout { from { bottom: 50px; opacity: 1; } to { bottom: 0; opacity: 0; } }

#previewToast {
    visibility: hidden; min-width: 250px; background-color: #ffc107; color: #000;
    text-align: center; border-radius: 10px; padding: 12px 24px; position: fixed;
    z-index: 10000; bottom: 50px; left: 50%; transform: translateX(-50%);
    font-weight: bold; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 다크 커스텀 테이블 (결과 페이지용) */
/* 다크 커스텀 테이블 (결과 페이지용) */
.table-dark-custom {
    --bs-table-bg: transparent !important;
    --bs-table-hover-bg: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-dark-custom thead th {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 8px !important;
}

.table-dark-custom td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 12px 8px !important;
    vertical-align: middle;
    color: #fff !important; /* 텍스트 흰색 강제 */
}

.table-dark-custom tr:last-child td {
    border-bottom: none !important;
}

@media (max-width: 576px) {
    .result-report-card { border-radius: 20px; }
    .main-result-img { max-height: 350px; }
}

/* 다른 결과 유형 카드 호버 효과 */
.other-result-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.other-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* 상세 결과 보기 모달 스타일 */
.other-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.other-result-modal.active {
    display: flex;
    opacity: 1;
}

.other-result-modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.other-result-modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-result-img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-result-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.modal-result-description {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    color: rgba(255, 255, 255, 0.9);
}

.modal-close-btn {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}
