/* Force browser refresh - v3.0 */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #02b3e4;
    --accent-color: #ffa726;
}



body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.card {
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.card-header {
    font-weight: 600;
    background-color: rgba(108, 99, 255, 0.2);
    padding: 15px;
    border-bottom: 2px solid rgba(108, 99, 255, 0.3);
}

/* Enhance chart header specifically */
.card-header h3 {
    margin-bottom: 0;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(108, 99, 255, 0.2);
}

.table {
    margin-bottom: 0;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 0, 0, 0.05);
}

.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
}

.chart-form-container {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Ensure all tab panes appear in the same position */
.tab-content .tab-pane {
    min-height: 0;
    position: relative;
}

/* Fix Vedic Transit form positioning */
#vedic-transit-form {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin-top: 0 !important;
}

#loading .spinner-border {
    color: var(--primary-color);
}

.badge {
    font-size: 0.9em;
    padding: 0.4em 0.6em;
}

.badge-retrograde {
    background-color: #dc3545;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.35em 0.65em;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.tooltip-icon {
    cursor: help;
    color: var(--secondary-color);
    margin-left: 5px;
}

.chart-visualization {
    width: 100%;
    height: 400px;
    margin: 0 auto;
}

/* Zodiac sign icons */
.zodiac-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* Aspect colors */
.aspect-conjunction {
    color: #1a73e8;
}
.aspect-trine {
    color: #34a853;
}
.aspect-square {
    color: #ea4335;
}
.aspect-opposition {
    color: #fbbc05;
}
.aspect-sextile {
    color: #34a853;
}

/* Moon phase visualization */
.moon-phase-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 1rem auto;
    background-color: #111;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.moon-illumination {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    border-radius: 0 100px 100px 0;
}

.moon-illumination:before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f5f5f5;
}

/* Chart Wheel Styles */
.chart-wheel-container {
    width: 100%;
    position: relative;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(20, 20, 40, 0.7); /* Slightly blue-tinted dark background */
    margin-bottom: 20px;
}

.chart-wheel {
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    background-color: rgba(15, 15, 30, 0.8); /* Darker inner circle */
    box-shadow: 0 0 20px rgba(100, 100, 255, 0.3); /* Subtle blue glow */
}

/* Chart Legend */
.chart-legend {
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.color-box {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 3px;
}

/* Zodiac sign symbols in chart */
.zodiac-symbol {
    position: absolute;
    font-weight: bold;
    font-size: 1.5rem;
    color: #333333;
    background-color: #f8f9fa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dddddd;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    z-index: 8;
}

/* Planet symbols in chart */
.planet-symbol {
    position: absolute;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 1.2rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #ccc;
}

.natal-planet {
    background-color: #0066cc;
    color: white;
    width: 26px;
    height: 26px;
}

.transit-planet {
    background-color: #cc3300;
    color: white;
    width: 26px;
    height: 26px;
}

/* Aspect lines in chart */
.aspect-line {
    position: absolute;
    transform-origin: center;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 5;
    height: 1px !important;
    box-shadow: none;
}

.conjunction-line {
    background-color: #3366cc;
    height: 1px !important;
}

.trine-line {
    background-color: #33cc33;
    height: 1px !important;
}

.square-line {
    background-color: #cc3333;
    height: 1px !important;
}

.opposition-line {
    background-color: #cc6600;
    height: 1px !important;
}

.sextile-line {
    background-color: #33cc33;
    height: 1px !important;
}

/* House cusps */
.house-cusp {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.3);
    transform-origin: left center;
    z-index: 5;
    box-shadow: none;
}

.ascendant-line {
    background-color: #cc0000;
    height: 2px;
    box-shadow: none;
    z-index: 6;
}

.mc-line {
    background-color: #000099;
    height: 2px;
    box-shadow: none;
    z-index: 6;
}

/* Element and modality stats */
.element-stats, .modality-stats {
    margin-top: 1rem;
}

.element-stats .progress, .modality-stats .progress {
    height: 1.5rem;
    margin-bottom: 0.5rem;
}

.element-fire { background-color: #f44336; }
.element-earth { background-color: #4caf50; }
.element-air { background-color: #2196f3; }
.element-water { background-color: #00bcd4; }

.modality-cardinal { background-color: #9c27b0; }
.modality-fixed { background-color: #ff9800; }
.modality-mutable { background-color: #607d8b; }

/* Custom nav tabs for chart sections */
.nav-tabs .nav-link {
    border: none;
    color: var(--bs-secondary);
    padding: 0.75rem 1rem;
    border-radius: 0;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

/* Fix for chart tab header with blue background */
.tab-pane .card-header.bg-primary {
    background-color: #0d6efd !important; /* Deep blue */
    color: white !important;
}

.tab-pane .card-header.bg-primary h3 {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Fix for all chart tab pane headers (the blue headers) */
#natal-wheel-content .card-header, 
#transit-wheel-content .card-header,
#synastry-wheel-content .card-header,
#composite-wheel-content .card-header,
#planets-content .card-header,
#houses-content .card-header,
#aspects-content .card-header,
#transit-aspects-content .card-header,
#natal-aspects-content .card-header,
#synastry-aspects-content .card-header,
#composite-aspects-content .card-header,
#composite-planets-content .card-header,
#person1-chart-content .card-header,
#person2-chart-content .card-header {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Fix specifically for the tab headers at the top */
.nav-tabs .nav-link {
    color: var(--bs-secondary) !important;
    margin-right: 2px;
    border-radius: 0 !important;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
    background-color: transparent;
}

/* Fix for the chart wheel containers */
#natal-chart-wheel, #transit-chart-wheel, #synastry-chart-wheel, #composite-chart-wheel {
    color: white !important;
}

/* SVG Chart Enhancements */
.chart-wheel svg text {
    font-weight: bold;
    paint-order: stroke;
    stroke: #000000;
    stroke-width: 1px;
    stroke-linecap: round;
    stroke-linejoin: round;
    font-size: 18px !important; /* Force larger font size */
    fill: #ffffff !important; /* Force white text */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); /* Add shadow for better contrast */
}

.chart-wheel svg circle.planet-circle {
    stroke: #ffffff;
    stroke-width: 2px; /* Increased stroke width */
    filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.7)); /* Add glow effect */
}

/* Improve aspect lines visibility */
.chart-wheel svg line.aspect-line {
    stroke-width: 1.2px;
}

/* Improve house cusps visibility */
.chart-wheel svg line.house-cusp {
    stroke-width: 0.8px;
    stroke-dasharray: 3, 3;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
    
    .card-header h3 {
        font-size: 1.25rem;
    }
}
