
/* Styling for Disclaimer */
.disclaimer {
    background-color: #f9f9f9; /* Light grey background */
    border-left: 4px solid #e67e23; /* Orange accent border */
    padding: 15px;
    margin: 20px 0; /* Space around disclaimer */
    font-size: 14px;
    color: #333;
}

.disclaimer p {
    margin: 0;
    line-height: 1.5;
}

.disclaimer strong {
    color: #e67e23; /* Highlight the word "Disclaimer" */
}


/* Styling for tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin: 10px 10px 20px 10px;
}

.tab-button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    background-color: #004080;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-button:hover {
    background-color: #003060;
}

.tab-button.active {
    background-color: #E67E23;
}

/* Tab content */
.tab-content {
    padding: 0;
}

.tab-content.active {
    display: block;
}


/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-block; /* Stack elements vertically */
    width: 100%;
    text-align: center;
    color: #333;
    background: linear-gradient(135deg, #004080, #87CEFA); /* Dark Blue to Light Blue gradient */
    margin: 0;
    padding-bottom: 50px;
    overflow-x: hidden;
}

/* Logo Centering */
header {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    background-color: white;
    padding: 20px 0;
}

.logo {
    max-width: 300px;
    height: auto;
}

@media (max-width: 600px) {
    .logo {
        max-width: 150px; /* Smaller logo for mobile */
    }
    
    .tabs {
        display: block;
    }
    
    .tabs button {
        display: block;
        margin: 0 auto 25px auto;
        width: 75%;
    }
}

/* Spreadsheet Container */
.spreadsheet {
    display: inline-block;
    background-color: blue;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0px auto;
    overflow-x: hidden;
}

.spreadsheet:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}


/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    border: solid black 1px;
}

th, td {
    text-align: left;
    padding: 12px;
    vertical-align: middle;
}

th {
    background-color: #004080;
    color: #ffffff;
    font-size: 16px;
    border-bottom: 2px solid #003060;
}

td {
    border-bottom: 1px solid #ddd;
    color: #333;
}

.inPlaceTitle {
    font-weight: 800;
}

/* Input Styling */
input {
    width: 90%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #E67E23; /* Orange border color on focus */
    box-shadow: 0 0 8px rgba(230, 126, 35, 0.2);
}

/* Responsive Spreadsheet, Input and Table */
@media (max-width: 600px) {
    
    .spreadsheet {
        width: auto;
        margin: 0 auto 50px auto;

    }
    input {
        padding: 8px;
        font-size: 16px;
    }

    table {
        font-size: 16px; /* Reduce table font size for mobile */
    }
}

/* Special Text Colors for Results */
#vacancyLoss, #effectiveGrossIncome, #netOperatingIncome {
    font-weight: bold;
    color: #004080; /* Blue for positive results */
    font-size: 16px;
}

#totalAnnualExpenses, .negative {
    color: #FF8000;
    font-weight: bold;/* Orange for negative results */
}

.positive {
    color: green;
}



/*Proforma Tab Styling*/
/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #004080, #87CEFA); /* Dark Blue to Light Blue gradient */
    margin: 0 auto;
    color: #333;
}

/* Container for Proforma Page */
.proforma-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Header Styling */
h1 {
    text-align: center;
    color: #00B6ED;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Inputs Styling */
.growth-inputs {
    display: flex;
    flex-wrap: wrap; /* Stack fields for mobile */
    justify-content: space-between;
    margin-bottom: 20px;
}

.growth-field {
    flex: 1;
    padding: 10px;
    min-width: 250px; /* Ensure minimum width */
}

.growth-field label {
    color: #00B6ED;
    display: block;
    margin-bottom: 5px;
}

.growth-field input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 100px;
}

/* Ensure the table wrapper allows horizontal scrolling */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Table Styling */
table {
    width: 100%; /* Full width table for proforma results */
    border-collapse: collapse;
    margin-bottom: 20px;
}

thead th {
    background-color: #004080;
    color: white;
    padding: 12px;
    font-size: 16px;
    text-align: left;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:nth-child(odd) {
    background-color: #fff;
}

td, th {
    padding: 10px;
    border-bottom: 1px solid #ddd;

}

td {
    color: #333;
}

tfoot td {
    font-weight: bold;
    color: #004080;
}

/* Button Styling */
button, .tab-button {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Active Button - Orange */
.tab-button.active {
    background: linear-gradient(135deg, #E67E23, #F2994A);
    color: white;
}

/* Inactive Button - Blue */
.tab-button.inactive {
    background-color: #004080;
    color: white;
}

button:hover, .tab-button:hover {
    background-color: #d46517;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .proforma-container {
        margin: 0 auto 50px auto;
        
    }
    .growth-inputs {
        flex-direction: column;
    }

    .growth-field {
        width: 100%;
    }

    table {
        font-size: 12px;
    }

    .growth-field input {
        font-size: 16px;
        padding: 10px;
        max-width: 150px;
    }

    button, .tab-button {
        width: 100%;
        margin: 30px 10px;
    }
}


/*Itemized Expenses Tab Styles*/

/* Styling for the switch container */
.toggle-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 350px;
    margin: 0 auto;
    border: solid #00B6ED 2px;
    padding: 10px;
}

.switch-label {
    font-weight: bold;
    margin-right: 20px;
    font-size: 14px;
}

/* The switch - the checkbox itself is hidden */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider that will move to the left and right */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* When the switch is checked, change the background and move the slider */
input:checked + .slider {
    background-color: #E67E23;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.itemized-expenses {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.itemized-expenses table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto 0 auto;
    
}

.itemized-expenses td {
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    max-width: 500px;
}

.itemized-expenses td:first-child {
    max-width: 100px;
}

.itemized-expenses input {
    width: 90%;
    padding: 8px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/*------- Tool Tips --------*/
/* Tooltip container for the '?' icon */
.tooltip {
    position: relative;
    display: inline-block;
    margin-right: 8px; /* Space between the tooltip and the text */
    font-weight: bold;
    cursor: pointer;
    background-color: #fff;
    color: #888;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    border: 1px solid #888;
}

/* Tooltip text - position relative to the icon */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px; /* Set a fixed width for the tooltip */
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute; /* Positioned relative to the ? icon */
    z-index: 1000;
    bottom: 125%; /* Position above the ? icon */
    left: 50%; /* Center horizontally relative to the icon */
    transform: translateX(-50%); /* Centering adjustment */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 14px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    word-wrap: break-word; /* Handle text wrapping properly */
}

/* Tooltip arrow to point to the icon */
.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%; /* Arrow at the bottom of the tooltip box */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Show the tooltip when hovering or clicking on the '?' */
.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
}



/*Styles for Unit Mix Tab*/

.unit-mix-table-wrapper {
    max-width: 100%;
    overflow-x: auto; /* Horizontal scrolling for small screens */
    margin: 20px 0;
}

#unitMixTable {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-bottom: 20px;
}

#unitMixTable th,
#unitMixTable td {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 14px;
}

#unitMixTable th {
    background-color: #004080;
    color: white;
}

#unitMixTable input {
    width: 90%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Add Unit Type Button */
button {
    padding: 10px 20px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #003060;
}
/* Delete row button */
.delete-row {
    background: none;
    border: none;
    color: red;
    font-size: 14px; /* Smaller button */
    cursor: pointer;
    padding: 0;
}

/* Totals row styling */
tfoot tr {
    background-color: #f8f8f8; /* Light grey for better readability */
    font-weight: bold;
}

tfoot td {
    text-align: center;
    color: #004080; /* Dark blue text for consistency */
}

/* Table adjustments */
.unit-mix-table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling on small screens */
}

#unitMixTable th, #unitMixTable td {
    padding: 10px;
    text-align: center;
}

#unitMixTable .width,
#unitMixTable .height {
    width: 80px; /* Smaller columns for width and height */
}

#unitMixTable .dimensions {
    font-weight: bold;
    text-align: center;
    width: 120px; /* Adjusted column size for dimensions */
}
