body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    background-color: #0a0a1a;
    color: #e0e0e0;
    overflow-x: hidden;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(10, 10, 26, 0.6), rgba(10, 10, 26, 1) 80%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.main-header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-header h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: 3rem;
    color: #ffd700;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffc400;
}

.main-header p {
    font-size: 1.2rem;
    color: #c0c0c0;
}

/* Main Content 2-Column Layout */
.main-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

/* Input Section - Vertical Form */
.input-section {
    flex: 1 1 40%; /* Takes up 40% of the width */
    background: rgba(10, 10, 26, 0.7);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.input-section h2 {
    text-align: center;
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 2rem;
    font-family: 'Noto Serif KR', serif;
}

.input-form .form-group {
    margin-bottom: 1.5rem;
}

.input-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #c0c0c0;
    font-size: 0.9rem;
}

.input-form input[type="text"],
.input-form input[type="number"],
.input-form input[type="date"],
.input-form input[type="time"] {
    width: 100%;
    padding: 0.8rem;
    background: #1c1c3c;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.input-with-picker {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.input-with-picker input[type="text"] {
    flex: 1;
}

.picker-btn {
    background: #1c1c3c;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    padding: 0 1.2rem;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.picker-btn:hover {
    background: #ffd700;
    color: #0a0a1a;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.hidden-picker {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.gender-toggle {
    display: flex;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
}
.gender-toggle input[type="radio"] { display: none; }
.gender-toggle label {
    flex: 1;
    text-align: center;
    padding: 0.7rem;
    cursor: pointer;
    background: #1c1c3c;
    color: #888;
    margin: 0;
    transition: all 0.3s ease;
}
.gender-toggle input[type="radio"]:checked + label {
    background: #ffd700;
    color: #0a0a1a;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}


#analyze-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a0a1a;
    background: #ffd700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}
#analyze-button:hover { background: #f0c400; }

/* Info Section */
.info-section {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: rgba(10, 10, 26, 0.7);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.info-card h3 {
    color: #ffd700;
    margin-top: 0;
    font-family: 'Noto Serif KR', serif;
}

.info-card p {
    line-height: 1.7;
    color: #c0c0c0;
}

/* Loading */
.loading-indicator { text-align: center; margin: 3rem 0; }
.spinner { width: 50px; height: 50px; border: 5px solid #444; border-top: 5px solid #ffd700; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Results */
.result-section { margin-top: 3rem; }
.result-tabs { display: flex; border-bottom: 1px solid #444; margin-bottom: 2rem; }
.tab-link { background: none; border: none; color: #aaa; padding: 0.8rem 1.5rem; cursor: pointer; font-size: 1.1rem; transition: all 0.3s ease; }
.tab-link.active, .tab-link:hover { color: #ffd700; border-bottom: 2px solid #ffd700; }
.tab-content .card { background: rgba(255, 255, 255, 0.07); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid rgba(255, 215, 0, 0.1); }
.tab-content h3 { color: #ffd700; }

/* Footer & Modal */
.main-footer { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #333; }
#today-fortune-button { background: none; border: 1px solid #888; color: #888; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; transition: all 0.3s ease; }
#today-fortune-button:hover { background: #ffd700; color: #0a0a1a; border-color: #ffd700; }
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); }
.modal-content { background-color: #1e1e3e; color: #e0e0e0; margin: 15% auto; padding: 2rem; border: 1px solid #ffd700; border-radius: 10px; max-width: 500px; text-align: center; position: relative; }
.close-button { position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
