/* Main styles for VedicAI prototype - Updated with Brand Theme */

/* Import brand theme */
@import url('brand-theme.css');

/* General styling - Updated with brand colors */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header styling - Subtle pastel theme */
header {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: var(--space-lg) 0;
    box-shadow: var(--shadow-subtle);
    margin: 0;
    border-bottom: 1px solid var(--border-light);
}

header h1 {
    margin: 0;
    font-size: var(--font-size-3xl);
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Clickable title hover effect - Subtle */
.hover-glow:hover {
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Navigation - Light pastel theme */
nav {
    background: var(--brand-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #7E57C2;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #673AB7 0%, #9C27B0 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Form styling */
.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Button styling */
.btn {
    display: inline-block;
    background-color: #673AB7;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #5E35B1;
}

.btn-secondary {
    background-color: #9C27B0;
}

.btn-secondary:hover {
    background-color: #8E24AA;
}

/* Chart styling */
.chart-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.chart-svg {
    max-width: 100%;
    height: auto;
}

.planet-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #673AB7;
}

/* Prediction styling */
.prediction-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.time-period {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Footer styling */
footer {
    background-color: #512DA8;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-4, .col-md-8, .col-md-6 {
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Chart Loading States */
.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.chart-loading {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.6;
    }
}

#chart-loading-message {
    border-left: 4px solid #0dcaf0;
    background-color: #e8f4fd;
}

#chart-loading-message .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Progress bar for chart generation */
.chart-progress {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.chart-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    border-radius: 3px;
    animation: chartProgress 25s linear forwards;
}

@keyframes chartProgress {
    0% { width: 0%; }
    10% { width: 20%; }
    30% { width: 40%; }
    60% { width: 70%; }
    90% { width: 95%; }
    100% { width: 100%; }
}

/* ===== TRANSIT CALENDAR STYLING ===== */

.calendar-visualization-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
}

.calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.calendar-subtitle {
    font-size: 1.2em;
    color: #b8c5d1;
    margin-bottom: 20px;
}

/* Overall Influence Card */
.overall-influence-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border-left: 4px solid;
}

.overall-influence-card.challenging { border-left-color: #8b4513; }
.overall-influence-card.beneficial { border-left-color: #2d5016; }
.overall-influence-card.neutral { border-left-color: #8b7355; }

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

.rating-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.rating-badge.challenging { background: rgba(139, 69, 19, 0.8); color: #ffffff; }
.rating-badge.beneficial { background: rgba(45, 80, 22, 0.8); color: #ffffff; }
.rating-badge.neutral { background: rgba(139, 115, 85, 0.8); color: #ffffff; }

.recommendation {
    background: rgba(0, 255, 136, 0.1);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #00ff88;
    margin-top: 10px;
}

/* Priority Alerts */
.priority-alerts-section {
    margin: 30px 0;
}

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

.alert-card {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.alert-content, .vedha-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vedha-icon {
    font-size: 1.2em;
}

.remedy {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 0.9em;
}

/* Filter Controls */
.filter-controls {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
}

.filter-buttons, .view-toggles {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.filter-btn, .view-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.filter-btn:hover, .view-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.filter-btn.active, .view-toggle.active {
    background: linear-gradient(135deg, #ff8844, #9944ff);
    border-color: transparent;
}

/* Transit Sections */
.transit-section {
    margin: 30px 0;
}

.section-description {
    color: #b8c5d1;
    margin-bottom: 20px;
    font-style: italic;
}

/* Transit Grids */
.transits-grid, .aspects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Transit Cards */
.transit-card, .aspect-card, .moon-transit-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.transit-card:hover, .aspect-card:hover, .moon-transit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Nature-based styling (Applied when present) */
.benefic-nature, .beneficial-nature, .moon-transit-card.benefic-nature, .moon-transit-card.beneficial-nature, 
.aspect-card.benefic-nature, .aspect-card.beneficial-nature { 
    background: rgba(45, 80, 22, 0.2) !important; /* Green for beneficial */
    border-left-color: #2d5016; 
    box-shadow: 0 0 10px rgba(45, 80, 22, 0.3); 
}
.malefic-nature, .challenging-nature, .moon-transit-card.malefic-nature, .moon-transit-card.challenging-nature,
.aspect-card.malefic-nature, .aspect-card.challenging-nature { 
    background: rgba(139, 69, 19, 0.2) !important; /* Brown for challenging */
    border-left-color: #8b4513; 
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.3); 
}

/* Neutral nature styling for moon and aspect cards */
.moon-transit-card.neutral-nature, .aspect-card.neutral-nature {
    border-left-color: #8b7355; 
    background: rgba(139, 115, 85, 0.1); 
    box-shadow: 0 0 10px rgba(139, 115, 85, 0.2); 
}

/* Significance-based card backgrounds - Gray shades based on intensity */
.very_high-significance { 
    background: rgba(26, 26, 26, 0.9) !important; /* Very black for Very High */
    border-left-color: #ffffff;
}
.high-significance { 
    background: rgba(45, 45, 45, 0.85) !important; /* 90% gray for High */
    border-left-color: #e0e0e0;
}
.medium-significance { 
    background: rgba(77, 77, 77, 0.8) !important; /* 80% gray for Medium */
    border-left-color: #cccccc;
}
.low-significance { 
    background: rgba(102, 102, 102, 0.75) !important; /* 70% gray for Low */
    border-left-color: #b0b0b0;
}

/* Transit Header */
.transit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.planet-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.planet-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px currentColor);
}

.planet-name {
    font-weight: 600;
    font-size: 1.1em;
}

.significance-badge, .moon-house-badge, .strength-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.very_high-significance { background: #1a1a1a; color: #ffffff; } /* Very black for Very High */
.high-significance { background: #2d2d2d; color: #ffffff; } /* 90% gray for High */
.medium-significance { background: #4d4d4d; color: #ffffff; } /* 80% gray for Medium */
.low-significance { background: #666666; color: #ffffff; } /* 70% gray for Low */

.moon-house-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Planet-specific colors */
.sun { color: #ff8800; }
.moon { color: #ffffff; }
.mars { color: #ff4444; }
.mercury { color: #44ff44; }
.jupiter { color: #ffcc00; }
.venus { color: #ff8844; }
.saturn { color: #4488ff; }
.rahu { color: #9944ff; }
.ketu { color: #8b4513; }
.neptune { color: #4488ff; }
.uranus { color: #44ffff; }
.pluto { color: #8844ff; }

/* Sign and House Display */
.sign-house-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sign-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sign-name {
    font-weight: 600;
    color: #00ff88;
}

.sign-symbol {
    font-size: 1.5em;
    color: #ffcc00;
}

.house-movement {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

.house-from, .house-to {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 600;
}

.movement-arrow {
    font-size: 1.2em;
}

.nature-indicator {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: 500;
}

.nature-indicator.benefic, .nature-indicator.beneficial {
    background: rgba(45, 80, 22, 0.3);
    color: #90c695;
}

.nature-indicator.malefic, .nature-indicator.challenging {
    background: rgba(139, 69, 19, 0.3);
    color: #d4a574;
}

.nature-indicator.neutral {
    background: rgba(139, 115, 85, 0.3);
    color: #c4b896;
}

/* Transit Details */
.transit-details, .moon-analysis, .aspect-details {
    color: #b8c5d1;
}

.house-theme, .theme {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.interpretation {
    font-size: 1.05em;
    line-height: 1.5;
    margin-bottom: 10px;
    font-style: italic;
    color: #ffffff;
}

/* Aspect Cards */
.aspect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.aspect-planets {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aspect-type {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 500;
}

.strength-badge.weak { background: #666666; color: #ffffff; }
.strength-badge.medium { background: #ffcc00; color: #1a1a2e; }
.strength-badge.strong { background: #44ff44; color: #1a1a2e; }

/* Responsive Design */
@media (max-width: 768px) {
    .transits-grid, .aspects-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-title {
        font-size: 2em;
    }
    
    .filter-buttons, .view-toggles {
        flex-direction: column;
        align-items: stretch;
    }
    
    .transit-header, .aspect-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .sign-house-display {
        flex-direction: column;
        gap: 10px;
    }
}

/* Navigation Dropdown Styles */
.dropdown-menu-dark {
    background-color: #512DA8 !important;
    border: 1px solid #673AB7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 5px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu-dark.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu-dark .dropdown-item {
    color: #ffffff !important;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    background-color: #673AB7 !important;
    color: #ffffff !important;
    transform: translateX(3px);
}

.dropdown-icon {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    border-color: #673AB7 !important;
    margin: 5px 0;
}

/* Navigation active state */
.nav-link.dropdown-toggle {
    position: relative;
}

.nav-link.dropdown-toggle::after {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
    .dropdown-menu-dark {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background-color: #673AB7 !important;
        margin-top: 0;
        border-radius: 0;
    }
    
    .dropdown-menu-dark .dropdown-item {
        padding: 8px 20px;
        border-left: 3px solid transparent;
    }
    
    .dropdown-menu-dark .dropdown-item:hover {
        border-left-color: #00ff88;
        transform: none;
        background-color: #7C4DFF !important;
    }
}

/* User dropdown specific styling */
#userDropdown {
    font-weight: 500;
}

.dropdown-menu-end {
    min-width: 160px;
}

/* Login/Register icons */
.nav-link .me-1 {
    display: inline-block;
    margin-right: 0.25rem;
}
