:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(17, 24, 39, 0.82);
    --border-color: rgba(75, 85, 99, 0.4);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

/* Banner Animasi Globe & Benang Halus */
.banner-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.9) 0%, rgba(11, 15, 25, 1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

#globeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    text-align: center;
    padding: 0 15px;
}

.banner-text h1 {
    font-size: 1.6rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.banner-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(12px);
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Mode Switcher Styling */
.mode-switcher-card {
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    background: rgba(17, 24, 39, 0.9);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#tabSingle {
    background: var(--accent-gold);
    color: #000;
}

#tabPair {
    background: rgba(31, 41, 55, 0.8);
    color: var(--text-muted);
}

.subject-group, .partner-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title-gold {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.section-title-blue {
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 12px;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--accent-gold);
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 10px;
}

button[type="submit"]:hover {
    opacity: 0.9;
}

/* Hasil Analisis & Diagram Card */
.result-box {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.layer-item {
    margin-bottom: 12px;
    padding: 14px;
    background: rgba(31, 41, 55, 0.5);
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    transition: transform 0.2s;
}

.layer-item:hover {
    transform: translateY(-2px);
    background: rgba(31, 41, 55, 0.7);
}

.layer-title {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--accent-gold);
    display: flex;
    justify-content: space-between;
}

.layer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}