body {
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 14px;
    background-color: #FFFFFF;
    color: #000000;
}

a {
    color: #00A000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-weight: normal;
    color: #00A000;
}

/* Header & Menu Container */
.header {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.header h3 {
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 18px;
    font-weight: bold;
}

#menu {
    list-style: none;
    width: 980px;
    margin: 1px auto 20px auto;
    height: 43px;
    padding: 0px 20px 0px 20px;
    border-radius: 5px 5px 0px 0px;
    background: #BBBBBB;
    border: 1px solid #777777;
    box-shadow: inset 0px 0px 1px #edf9ff;
}

#menu li {
    float: left;
    display: block;
    text-align: center;
    position: relative;
    padding: 4px 10px 4px 10px;
    margin-right: 20px;
    margin-top: 7px;
    border: 1px solid transparent; /* Keeps layout stable on hover */
}

#menu li:hover {
    border: 1px solid #777777;
    padding: 4px 9px 4px 9px;
    background: #00A000; /* Original used #A00000, user requested green theme */
    border-radius: 5px 5px 0px 0px;
}

#menu li a {
    font-size: 14px;
    color: #000;
    display: block;
    outline: 0;
    text-decoration: none;
}

#menu li:hover a {
    color: #FFFFFF;
    text-shadow: 1px 1px 1px #000000;
}

/* Main Container */
.container {
    width: 980px;
    margin: 0 auto;
    padding: 10px;
}

/* Tables & Forms */
table {
    border-spacing: 1px 1px;
    width: 100%;
}

td {
    padding: 5px;
    vertical-align: top;
}

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

.form-group label {
    font-weight: bold;
    display: inline-block;
    width: 120px;
}

select, input[type="number"], input[type="text"], input[type="password"] {
    font-family: inherit;
    font-size: 12px;
    padding: 2px 4px;
    border: 1px solid #777777;
    background-color: #F4F4F4;
}

button, .btn {
    font-family: inherit;
    font-size: 13px;
    padding: 4px 12px;
    background-color: #EEEEEE;
    border: 1px solid #777777;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background-color: #DDDDDD;
    text-decoration: none;
}

/* Alerts */
.alert {
    padding: 10px;
    border: 1px solid #A00000;
    background-color: #FFEEEE;
    color: #A00000;
    margin-bottom: 15px;
}
.success-alert {
    padding: 10px;
    border: 1px solid #00A000;
    background-color: #EEFFEE;
    color: #00A000;
    margin-bottom: 15px;
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.results-table th, .results-table td {
    border: 1px solid #BBBBBB;
    padding: 8px;
    text-align: left;
}
.results-table th {
    background-color: #EEEEEE;
}

/* Chart Styles (Light Theme) */
.chart-container {
    margin-top: 20px;
}

.south-indian-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    background: #FFFFFF;
    border: 2px solid #000000;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.chart-box {
    border: 1px solid #777777;
    padding: 5px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 4px;
}

.chart-box.empty {
    border: none;
    background: transparent;
}

.sign-name {
    font-size: 10px;
    color: #777777;
    position: absolute;
    bottom: 2px;
    right: 4px;
}

.planet {
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    padding: 0px 2px;
}

.planet.asc {
    color: #00A000;
}

.ni-chart {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border: 2px solid #000000;
    background: #FFFFFF;
}
.ni-line {
    stroke: #000000;
    stroke-width: 1.5;
}
.ni-text {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
}
.ni-sign-num {
    font-size: 10px;
    color: #777777;
    margin-bottom: 2px;
}

.h1 { top: 25%; left: 50%; }
.h2 { top: 12%; left: 25%; }
.h3 { top: 25%; left: 12%; }
.h4 { top: 50%; left: 25%; }
.h5 { top: 75%; left: 12%; }
.h6 { top: 88%; left: 25%; }
.h7 { top: 75%; left: 50%; }
.h8 { top: 88%; left: 75%; }
.h9 { top: 75%; left: 88%; }
.h10 { top: 50%; left: 75%; }
.h11 { top: 25%; left: 88%; }
.h12 { top: 12%; left: 75%; }

/* Autocomplete & Modern Inputs */
.autocomplete-results {
    border: 1px solid #CCC;
    background: #FFF;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    width: calc(100% - 130px);
    margin-left: 125px;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    display: none;
}

.autocomplete-item {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 1px solid #EEE;
}

.autocomplete-item:hover {
    background-color: #EEFFEE;
    color: #00A000;
}

.toggle-container {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #CCC;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.historical-warning {
    font-size: 11px;
    color: #A00000;
    margin-left: 10px;
    display: none;
}

/* -- UI Decoration -- */
.main-content-box {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 8px 30px rgba(0, 160, 0, 0.15);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 40px;
    padding: 20px;
}

/* Side Bow Containers */
.side-bow {
    position: absolute;
    top: 50px;
    height: 600px;
    width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.left-bow {
    right: 100%;
    margin-right: 20px;
}

.right-bow {
    left: 100%;
    margin-left: 20px;
}

/* Individual Planet Images */
.planet-img {
    width: 90px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.15));
    cursor: default;
}

.planet-img:hover {
    transform: scale(1.15) !important;
    filter: drop-shadow(0px 6px 12px rgba(0, 160, 0, 0.5));
}

/* Creating the Bow Arc (Pushing middle ones outward) */
.left-bow .pos-1 { align-self: flex-end; margin-right: -10px; transform: rotate(5deg); }
.left-bow .pos-2 { align-self: flex-start; margin-left: 10px; transform: rotate(-5deg); }
.left-bow .pos-3 { align-self: flex-start; margin-left: 10px; transform: rotate(5deg); }
.left-bow .pos-4 { align-self: flex-end; margin-right: -10px; transform: rotate(-5deg); }

.right-bow .pos-1 { align-self: flex-start; margin-left: -10px; transform: rotate(-5deg); }
.right-bow .pos-2 { align-self: flex-end; margin-right: 10px; transform: rotate(5deg); }
.right-bow .pos-3 { align-self: flex-end; margin-right: 10px; transform: rotate(-5deg); }
.right-bow .pos-4 { align-self: flex-start; margin-left: -10px; transform: rotate(5deg); }

