.title {
    color: green;
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 10px;
    text-align: left;
}

.main-table {
    border: 2px solid green;
    width: 100%;
    border-collapse: collapse;
    background: #e9f1ff;
    table-layout: fixed;
    font-size: 14px;
}

.main-table td {
    width: 16.66%;
    /* ✅ 6 equal columns */
    vertical-align: middle;
    padding: 6px;
}

.header {
    background: green;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 6px;
    font-size: 16px;
}

.row-label {
    font-weight: bold;
}
select{
    font-size: 14px;
    background: rgba(255,255,255) !important;
    border-radius: 2px !important;
    border: 1px solid #666 !important;
}

input[type="text"],
input[type="date"],
select,
textarea {
    width: 95%;
    padding: 4px;
    box-sizing: border-box;
}

textarea {
    resize: none;
    height: 80px;
}

/* Time of Birth dropdowns inline */
.time-select {
    display: inline-block;
    width: 29%;
    margin-right: 3px;
    font-size: 11px;
}

.siblings-table {
    width: 100%;
    border: 1px solid #000;
    border-collapse: collapse;
    margin-top: 5px;
}

.siblings-table th,
.siblings-table td {
    border: 1px solid #000;
    text-align: center;
    padding: 5px;
}

.siblings-table th {
    background: #cfcfcf;
    font-weight: bold;
}

/* ✅ Responsive Fixes */
@media (max-width: 768px) {

    .main-table,
    .main-table tr,
    .main-table td {
        display: block;
        width: 100% !important;
    }

    .row-label {
        width: 100%;
        background: #dbe7ff;
        display: block;
    }

    .row-input {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }

    .time-select {
        width: 30%;
    }

    .siblings-table th,
    .siblings-table td {
        font-size: 13px;
        padding: 4px;
    }
}

.chart {
    display: grid;
    grid-template-columns: repeat(4, 70px);
    grid-template-rows: repeat(4, 70px);
    margin: auto;
}

.house {
    border: 1px solid #333;
}

.house::after {
    content: "";
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 15px;
    height: 15px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
}

.center {
    grid-column: 2 / span 2;
    /* ✅ spans middle 2 columns */
    grid-row: 2 / span 2;
    /* ✅ spans middle 2 rows */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    font-weight: bold;
    color: green;
    font-size: 16px;
}

.small-select {
    width: 80px;
    /* smaller width */
    padding: 3px;
    /* less padding */
    font-size: 13px;
    /* smaller font */
}
.astro-table {
    width: 100%;                 /* Let it fill available space */
    border: 1px solid rgba(56, 56, 57, 0.48);
    background-color: #eaf2fc;
    text-align: center;
    font-size: 13px;
    min-height: 70px;            /* Minimum height */
    height: auto;                /* Grow if needed */
    overflow: visible;           /* No scrollbar */
    white-space: normal;         /* Allow wrapping */
    word-break: break-word;      /* Break long words */
    padding: 5px;                /* Some breathing space */
    box-sizing: border-box;      /* Include padding inside */
}
