/* Created by David Gray on November 23, 2024 */
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and border are included in the element's dimensions */
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    background-color: #e8e6e6; /* Light gray background */
    color: #333; /* Dark gray text color */
}

/* Sidebar */
.sidebar {
    width: 17%; /* Sidebar occupies 17% of the screen width */
    height: 100%; /* Full-screen height */
    background-color: #004080; /* Dark blue background */
    color: #ffffff; /* White text */
    position: fixed; /* Sticks to the left side */
    top: 0;
    left: 0;
    padding: 1rem;
}

.sidebar h2 {
    margin-top: 0;
    text-align: center; /* Center-align header text */
}

.sidebar ul {
    list-style: none; /* Removes default bullet points */
    padding: 0;
}

.sidebar ul li {
    margin: 1rem 0; /* Adds vertical spacing between items */
}

.sidebar ul li a {
    color: white; /* Links are white */
    text-decoration: none; /* Removes underline */
    display: block;
    padding: 0.5rem;
    border-radius: 5px; /* Rounded corners for links */
}

.sidebar ul li a:hover {
    background-color: #0056b3; /* Highlighted blue on hover */
}
/* Main Content Area */
.main-content {    
    margin-top: 0.85%;
    line-height: 1.6;
    margin-left: 18%; /* Shifts content to the right of the sidebar */
    width: 82%; /* Remaining width */
    display: flex;
    flex-direction: column; /* Stacks header, content, and footer */
    height: 100%; /* Full height for alignment */
}

/* Header */
.header {
    height: 85px; /* Fixed header height */
    background-color: #004080; /* Matches sidebar color */
    color: #ffffff; /* White text */
    display: flex;
    align-items: center; /* Vertical alignment */
    justify-content: space-between; /* Spacing between title and logo */
    padding: 1rem;
}

.header h1 {
    margin: 0; /* Removes extra spacing */
    font-size: 2rem; /* Header font size */
}

.header img {
    height: 55px; /* Logo height */
}

/* Aside Section */
aside {
	margin-top: 0.85%;
	
}

.aside h2 {
    font-size: 16px;
}

/* Main Section */
main {
    
    padding: 2rem; /* Adds padding around the main content */
}

h1, h2 {
    margin-bottom: 1rem; /* Adds spacing below headings */
}

h2 {
    font-size: 22px; /* Smaller font size for subheadings */
}
/* Footer */
.footer {   
    text-align: center;
    padding: 1rem;
    background-color: #004080;
    color: white;
    margin-top: auto;  /* Push footer to the bottom */
    height: 75px; /* Fixed footer height */
}

/* Additional Styling */
.content {
    flex: 1; /* Expands to fill available vertical space */
    padding: 1rem; /* Adds padding around the content */
    overflow-y: auto; /* Enables scrolling for long content */
}

/* Summary Section */
.summary {
    margin-bottom: 2rem; /* Adds spacing below the summary section */
}

.summary-grid {
    display: grid; /* Creates a grid layout */
    grid-template-columns: repeat(6, 1fr); /* Four equal columns */
    gap: 1rem; /* Space between grid items */
}

/* Cards in Summary */
.card {
    background-color: white; /* White background for cards */
    padding: 1rem;
    border: 2px solid #002b80; /* Blue border */
    border-radius: 20px; /* Rounded corners */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
.card p {
    font-size: 28px;
}
.chart-table {
    border: 2px solid #002b80;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Data Table */
.data-table table {
    width: 100%; /* Full width */
    border-collapse: collapse; /* Removes spacing between table borders */
    margin-bottom: 1rem;
}

.data-table th, .data-table td {
    border: 1px solid #ddd; /* Light gray borders */
    padding: 0.5rem;
    text-align: left;
}

.data-table th {
    background-color: #004080; /* Blue background */
    color: white; /* White text */
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border: none;
    background-color: #004080;
    color: white;
    cursor: pointer;
    border-radius: 5px; /* Rounded corners */
}

.pagination button:disabled {
    background-color: #aaa; /* Disabled gray */
    cursor: not-allowed; /* Disabled cursor style */
}
/* Project Details */
.projects ul {
    list-style-type: none;
    padding: 0;
}
.projects li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}
   .dashboard {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }
    .chart-container {
     background-color: #fff; 
    }
    h1 {
      text-align: center;
    }
div.table {
	display: table;
}
div.tr {
	display: table-row;
}
div.td {
	display: table-cell;
}
  
button {
    background-color: transparent;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
	display: block;
}

fieldset {
    border: 2px solid #178744;
    padding: 15px;
    margin: auto;
    border-radius: 10px;
	color: #000;
}
label {
	display: block;
}
form {  
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-bottom: 0;
	height: 100%;
}
.next {
    background-color: #d3d3d3; /* Default gray for disabled */
    color: #ffffff;           /* Default white text */
    border: none;
    padding: 10px 20px;
    cursor: not-allowed;
    opacity: 0.6;             /* Slightly transparent for disabled */
    transition: all 0.3s ease-in-out;
}
.next.enabled {
    background-color: #178744; /* Bright blue for enabled */
    color: #ffffff;
    cursor: pointer;
    opacity: 1;
}
.floating-square {
    display: inline-block;
    width: 100px;          /* Adjust size as needed */
    height: 85px;         /* Square shape */
    background-color: rgba(255, 255, 255, 0.6);  /* White with 60% transparency */
    border-radius: 25px;     /* Rounded corners */
    text-align: center;      /* Center text horizontally */
    vertical-align: middle;  /* Center text vertically */
    line-height: 100px;      /* Vertically center the text */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Shadow at the bottom */
    font-size: 18px;         /* Adjust font size as needed */
	font-weight: bold;
	color: #004080;
    font-family: Arial, sans-serif; /* Use appropriate font */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transition for scaling and shadow */
    cursor: pointer;        /* Changes cursor to indicate it's clickable */
}
/* Hover effect */
.floating-square:hover {
    transform: scale(1.05);  /* Slightly enlarge the square */
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}
/* Active (click) effect */
.floating-square:active {
    transform: scale(1);    /* Reset scale when clicked */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Smaller shadow when clicked */
}
.disable {
    cursor: not-allowed;
	background-color: #c6c8cc;
    opacity: 6;   /* Changes cursor to indicate it's clickable */
}
.pRight {
	padding-right: 25px;
}
.padChart {
	padding: 12px 12px 12px 12px;
}

/* Styles for the question mark icon */
.info-icon {
    display: inline-block;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
	color: #004080;
	background-color: #e8e6e6;
    cursor: pointer;
    position: relative; /* Relative for tooltip positioning */
	margin: auto;
}

.info-text {
	display: none;
	margin-top: 5px;
	padding: 10px;
	background-color: #eef2f7;
	border-left: 4px solid #004080;
	font-size: 14px;
	border-radius: 4px;
	color: #004080;
}
.info-textWrap {
	display: none;
	margin-top: 5px;
	padding: 10px;
	background-color: #eef2f7;
	border-left: 4px solid #004080;
	font-size: 14px;
	border-radius: 4px;
	color: #004080;
	white-space: nowrap;
}
/* Tooltip Styles */
.tooltip {
    display: none; /* Hidden by default */
    position: absolute;
    top: 25%; /* Adjust for spacing below the icon */
    left: 80%; /* Center-align tooltip */
    transform: translateX(-50%); /* Offset for perfect centering */
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px;
    min-width: 250px;
    font-size: 14px;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Ensure visibility over other elements */
}

/* CDF RECOMMENDATION */
.textarea {
        min-height: 5vh;
}
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  border-radius: 50%;
  width: 16px;
  height: 16px;

  border: 2px solid #0d4f1f;
  transition: 0.2s all linear;
  margin-right: 5px;

  position: relative;
  top: 4px;
}

input[type="radio"]:checked {
  border: 6px solid #0d4f1f;
  outline: unset !important /* I added this one for Edge (chromium) support */
}

input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  border-radius: 50%;
  width: 16px;
  height: 16px;

  border: 2px solid #0d4f1f;
  transition: 0.2s all linear;
  margin-right: 5px;

  position: relative;
  top: 4px;
}

input[type="checkbox"]:checked {
  border: 6px solid #0d4f1f;
  outline: unset !important /* I added this one for Edge (chromium) support */
}
.select {
        width: 165px; /* stated width for small select fields */
        margin-bottom: 15px;
        border-radius: 5px;
        border: 1px solid #0d4f1f;		
		font-size: 16px;
		height: 25px;
}
.small {
        width: 165px; /* Default width for all form fields */
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 5px;
        border: 1px solid #0d4f1f;
		letter-spacing: 1.7px;
		font-size: 20px;
		height: 25px;
}
.medium {
        width: 250px; /* Default width for all form fields */
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 5px;
        border: 1px solid #0d4f1f;
		letter-spacing: 3px;
		font-size: 20px;
		height: 25px;
}
.large {
        width: 550px; /* Default width for all form fields */
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 5px;
        border: 1px solid #0d4f1f;
		letter-spacing: 3px;
		font-size: 20px;
		height: 25px;
}    
.email {
        width: 340px; /* Default width for all form fields */
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 5px;
        border: 1px solid #0d4f1f;
		letter-spacing: 3px;
		font-size: 20px;
		height: 25px;
}

/* Step Bar Styles */
.step-bar {
    display: flex;
    margin: auto;
    background-color: #004080;
    padding: 10px;
    border-radius: 10px;
	margin-top: 5%;
	width: 45%;
}

.step {
    flex: 1;
    text-align: center;
    color: white;
    padding: 5px 0;
    cursor: pointer;
    font-weight: bold;
}

.step.active {
    background-color: #0056b3;
    border-radius: 5px;
}

.step:not(:last-child) {
    border-right: 1px solid white;
}
.step-1-3 {
            min-height: 55vh;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .sidebar {
        width: 20%;
    }

    .main-content {
        margin-left: 20%;
        width: 80%;
    }
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 25%;
    }

    .main-content {
        margin-left: 25%;
        width: 75%;
    }

    .header h1 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .sidebar {
        width: 100%;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .header, .footer {
        flex-direction: column;
        text-align: center;
    }

    .header h1 {
        font-size: 1rem;
    }
}

@media screen and (max-width: 320px) {
    .header h1 {
        font-size: 0.9rem;
    }

    .header img {
        height: 55px;
    }

    main {
        padding: 1rem;
    }

    .footer {
        font-size: 0.8rem;
    }
}