:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-color: #2C3E50;
    --bg-color: #1e1e1e;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9));
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    margin: 20px;
    text-align: center;
}

/* Button Styles */
.button-group {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-analyze {
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-history {
    background: linear-gradient(135deg, #7F8C8D, #95A5A6);
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-history:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 140, 141, 0.4);
}

.btn-detail {
    background: linear-gradient(135deg, var(--secondary-color), #3AA99E);
    color: white;
    font-weight: bold;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

/* Result Cards */
.result-card {
    background: white;
    padding: 15px;
    margin: 12px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.result-card strong {
    color: #2C3E50;
    font-weight: 600;
}

.result-card em {
    display: block;
    margin-top: 10px;
    color: #2C3E50;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    line-height: 1.5;
}

.active {
    display: block !important;
}

#hasilAnalisisPremium {
    display: none; /* Default state */
}

#hasilAnalisisPremium.active {
    opacity: 1;
}

/* Form Styles */
form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
}

form input {
    width: calc(100% - 24px);
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

form button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    margin-top: 20px;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 230, 109, 0.3);
    outline: none;
}

.karmic-lessons {
    margin-top: 10px;
}

.karmic-lessons p {
    margin: 8px 0;
    padding-left: 15px;
    border-left: 3px solid #ff6b6b;
}

/* Tooltip styles */
.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.info-tooltip i {
    color: #666;
    font-size: 0.9em;
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Update style untuk calculation steps */
.calculation-steps {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    max-width: 100%;
    font-family: inherit;
    margin: 0;
    padding: 10px;
    line-height: 1.5;
}

.calculation-steps pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Roboto Mono', monospace;
    color: #666;
}

.section-title {
    color: var(--text-color);
    margin: 30px 0 15px;
    font-size: 1.5em;
}

.result-section {
    margin-bottom: 30px;
}

.pinnacle-period, .challenge-period {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.pinnacle-period strong, .challenge-period strong {
    color: #2C3E50;
    display: block;
    margin-bottom: 5px;
}

.ascendant-result {
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.ascendant-details {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.coordinate-info {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 5px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.disclaimer-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    border-left: 4px solid #FFD700;
}

.disclaimer-card i {
    color: #FFD700;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.disclaimer-card p {
    color: #2C3E50;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-top: -10px;
    margin-bottom: 30px;
    font-style: italic;
}

.reading-history {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reading-history-item {
    padding: 10px;
    margin: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reading-history-item:hover {
    background: rgba(78, 205, 196, 0.1);
}

.title-with-tooltip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
}

.title-with-tooltip h3 {
    margin: 0;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-color);
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    color: #666;
    font-size: 0.9em;
    width: 16px;
    height: 16px;
    margin-top: 4px;
}

.tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 100;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px;
    background-color: rgba(44, 62, 80, 0.98);
    color: white;
    border-radius: 8px;
    font-size: 0.9em;
    width: 280px;
    text-align: left;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    margin-bottom: 8px;
}

.title-with-tooltip:hover .tooltip {
    visibility: visible;
    opacity: 1;
    bottom: 120%;
}

/* Styling untuk hasil analisis */
.analysis-result {
    text-align: left;
    padding: 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    color: #444;
    width: 100%;
}

.analysis-section {
    margin: 12px 0;
    padding: 12px 15px;
    border-left: 3px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Roboto', sans-serif;
}

.analysis-section h4 {
    color: var(--text-color);
    margin: 0 0 8px 0;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.analysis-list {
    list-style-type: none;
    padding-left: 0;
    margin: 5px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.9em;
    line-height: 1.6;
}

.analysis-list li {
    padding: 2px 0;
    margin-bottom: 3px;
    font-family: 'Roboto', sans-serif;
}

.calculation-steps {
    font-family: 'Roboto Mono', monospace;
    background: rgba(0, 0, 0, 0.03);
    padding: 12px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 0.85em;
    line-height: 1.5;
}

.result-highlight {
    font-weight: 500;
    color: var(--primary-color);
    margin: 8px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    letter-spacing: 0.3px;
}

/* Accordion Styles */
.accordion-section {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    border: 1px solid #e0e0e0;
}

.accordion-header {
    background: linear-gradient(135deg, var(--secondary-color), #3AA99E);
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.accordion-header i {
    font-size: 0.8em;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #3AA99E, var(--secondary-color));
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    border-top: 1px solid #e0e0e0;
}

.accordion-content.active {
    max-height: 2000px;
    padding: 12px;
    overflow: visible;
}