:root {
    --primary-color: #8B4513;
    --secondary-color: #DAA520;
    --accent-color: #FF6B35;
    --bg-gradient-start: #1a0a2e;
    --bg-gradient-mid: #16213e;
    --bg-gradient-end: #0f3460;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 15px 50px rgba(218, 165, 32, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 20px;
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.om-symbol {
    font-size: 3rem;
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(218, 165, 32, 0.5), 0 0 30px rgba(218, 165, 32, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(218, 165, 32, 0.8), 0 0 40px rgba(218, 165, 32, 0.5);
    }
}

.header h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 10px;
}

/* Section Styles */
.intro-section {
    margin-bottom: 40px;
}

.intro-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.intro-card h2 {
    color: var(--primary-color);
    font-family: 'Philosopher', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Form Styles */
.calculator-section {
    margin-bottom: 40px;
}

.form-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-card h2 {
    color: var(--primary-color);
    font-family: 'Philosopher', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-card code {
    background: rgba(139, 69, 19, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95em;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

select.large-select {
    padding: 16px 18px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.timezone-info {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.toggle-btn {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #d0d0d0, #e5e5e5);
    transform: translateY(-2px);
}

.advanced-options {
    margin: 20px 0;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: var(--secondary-color);
    background: rgba(218, 165, 32, 0.05);
}

.radio-label input[type="radio"] {
    margin-right: 10px;
}

.radio-label span {
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    margin-top: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Results Section */
.results-section {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

.results-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.results-card h2 {
    color: var(--primary-color);
    font-family: 'Philosopher', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.profile-info {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-label {
    font-weight: 600;
    color: var(--primary-color);
}

.profile-value {
    color: var(--text-dark);
}

.career-recommendations {
    margin-top: 30px;
}

.career-recommendations h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.career-list {
    display: grid;
    gap: 15px;
}

.career-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.career-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.career-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.career-description {
    color: var(--text-dark);
    line-height: 1.6;
}

.planetary-influences {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-radius: 15px;
}

.planetary-influences h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.planet-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.planet-name {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

/* Info Section */
.info-section {
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.info-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-note {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-card,
    .results-card {
        padding: 25px;
    }
}

/* Lagna Section */
.lagna-section {
    margin-top: 30px;
}

.lagna-card {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.15) 0%, rgba(139, 69, 19, 0.15) 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
}

.lagna-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.lagna-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.lagna-description {
    color: var(--text-dark);
    line-height: 1.8;
    text-align: center;
}

/* Planetary Positions */
.planetary-positions {
    margin-top: 30px;
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.planet-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.planet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.planet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.planet-icon {
    font-size: 2rem;
}

.planet-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.planet-sign {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.planet-karaka {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Moon Nakshatra */
.moon-nakshatra {
    margin-top: 30px;
}

.nakshatra-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.nakshatra-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.nakshatra-deity,
.moon-sign {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Voting Results */
.voting-results {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.05) 0%, rgba(139, 69, 19, 0.05) 100%);
    border-radius: 15px;
}

.voting-explanation {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    line-height: 1.8;
    border-left: 4px solid var(--secondary-color);
}

.top-careers {
    margin-bottom: 30px;
}

.career-votes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.career-vote-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.career-vote-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.career-rank {
    font-size: 1.5rem;
    min-width: 40px;
}

.career-vote-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.career-vote-bar {
    height: 25px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.career-vote-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: width 1s ease;
}

.career-vote-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Planetary Recommendations Detail */
.planetary-recommendations-detail {
    margin-top: 30px;
}

.planet-recommendation {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
}

.planet-rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.planet-weight {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.planet-rec-careers {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: var(--text-dark);
}

/* Final Advice */
.final-advice {
    margin-top: 40px;
}

.advice-card {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.15) 0%, rgba(139, 69, 19, 0.15) 100%);
    padding: 30px;
    border-radius: 15px;
    line-height: 1.8;
}

.advice-card p {
    margin-bottom: 15px;
}

.advice-card ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.advice-card ol li {
    margin-bottom: 8px;
    font-weight: 500;
}

.advice-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    font-size: 0.95rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
}

.user-name {
    color: var(--text-light);
    font-weight: 600;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Access Blocked */
.access-blocked {
    background: var(--card-bg);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.lock-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.access-blocked h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.access-blocked p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.access-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.access-btn {
    padding: 15px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.access-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.access-btn-secondary {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
}

.access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.access-features {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(139, 69, 19, 0.1));
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.access-features h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.access-features ul {
    list-style: none;
    padding: 0;
}

.access-features ul li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(129, 199, 132, 0.15));
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    border-left: 5px solid #4CAF50;
}

.welcome-message p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

/* Guna Section */
.guna-section, .varna-section, .employment-section {
    margin-top: 30px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.guna-section h3, .varna-section h3, .employment-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.guna-card, .varna-card, .employment-card {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(139, 69, 19, 0.1));
    padding: 25px;
    border-radius: 15px;
}

.guna-scores, .varna-scores {
    margin-bottom: 20px;
}

.guna-bar, .varna-item {
    margin-bottom: 15px;
}

.guna-bar span, .varna-item span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.bar {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: width 1s ease;
}

.guna-explanation, .varna-explanation {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.guna-careers, .varna-details {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.guna-careers h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Employment Section */
.employment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.employment-score {
    margin-bottom: 20px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 10px;
}

.employment-description {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.employment-recommendation {
    background: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
}

/* Auth buttons on main page */
.auth-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.intro-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.register-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

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

.login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .access-actions {
        flex-direction: column;
    }
    
    .access-btn {
        width: 100%;
    }
    
    .planets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .intro-btn {
        width: 100%;
        justify-content: center;
    }
}

