/* General Styles */
body { font-family: 'Noto Sans KR', sans-serif; background-color: #f4f7f6; color: #333; display: flex; flex-direction: column; align-items: center; min-height: 100vh; margin: 0; padding: 0; }
header { width: 100%; background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px; }
.navbar { max-width: 950px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo { font-size: 1.2rem; font-weight: bold; color: #3498db; }
.nav-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: #555; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: #3498db; }

.container { background-color: #fff; padding: 30px 40px; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); width: 100%; max-width: 950px; text-align: center; box-sizing: border-box; margin-bottom: 40px; }
h1 { color: #2c3e50; margin-bottom: 25px; }

footer { width: 100%; background-color: #fff; border-top: 1px solid #eee; padding: 30px 0; margin-top: auto; }
.footer-content { max-width: 950px; margin: 0 auto; text-align: center; color: #777; font-size: 0.9rem; }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 20px; padding: 0; margin-top: 15px; }
.footer-links a { text-decoration: none; color: #777; }
.footer-links a:hover { color: #3498db; }

/* Input & Buttons */
.person-input-container { border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 20px; background-color: #fcfcfc; }
.person-input-container h3 { margin-top: 0; color: #34495e; }
.input-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; align-items: flex-end; }
.input-group { display: flex; flex-direction: column; align-items: flex-start; }
.input-group label { margin-bottom: 5px; font-size: 0.9em; color: #555; }
.input-group input, .input-group select { padding: 10px; border-radius: 6px; border: 1px solid #ccc; width: 120px; text-align: center; font-size: 1em; }
.button-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; }
#calculate-btn, #gunghap-toggle-btn { padding: 12px 30px; border: none; border-radius: 6px; cursor: pointer; transition: background-color 0.3s, transform 0.2s; font-size: 1.1em; font-weight: 500; }
#calculate-btn { background-color: #3498db; color: white; }
#calculate-btn:hover { background-color: #2980b9; transform: translateY(-2px); }
#gunghap-toggle-btn { background-color: #9b59b6; color: white; }
#gunghap-toggle-btn:hover { background-color: #8e44ad; transform: translateY(-2px); }

/* Result Tabs */
#result-container { margin-top: 30px; text-align: left; }
...
.rel-원진 .rel-type { background-color: #f39c12; }

/* ... 기존 스타일 ... */

/* Search Sequence Loader */
#search-sequence-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.98); display: flex; justify-content: center; align-items: center; z-index: 10000; }
.search-spinner { border: 3px solid #f3f3f3; border-top: 3px solid #3498db; border-radius: 50%; width: 40px; height: 40px; animation: spin 0.8s linear infinite; margin: 0 auto 20px; }
.search-text { font-size: 1.1rem; color: #2c3e50; font-weight: 500; min-height: 1.5em; }

/* Dynamic Verdict Box */
.dynamic-verdict-box { background: #2c3e50; color: #ecf0f1; padding: 25px; border-radius: 12px; margin-bottom: 30px; line-height: 1.8; position: relative; overflow: hidden; box-shadow: inset 0 0 10px rgba(0,0,0,0.2); }
.dynamic-verdict-box::before { content: "감명서 작성 중..."; position: absolute; top: 5px; right: 15px; font-size: 0.7rem; color: #95a5a6; opacity: 0.6; }
.verdict-text { font-family: 'Noto Sans KR', sans-serif; font-size: 1.05rem; letter-spacing: 0.5px; white-space: pre-wrap; }
.search-badge { background-color: #3498db; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 15px; display: inline-block; }

/* Existing Styles... */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
