/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/


body, html {
    height: 100%;
}

#wrapper {
    display: flex;
    flex-direction: column; /* This ensures the content is displayed vertically */
    min-height: 100vh; /* This makes sure the wrapper takes at least the full height of the viewport */
}

#content {
    flex: 1 0 auto; /* This allows the content to grow and take up any available space */
    background-color: rgb(197, 220, 213);
}

footer#footer {
    flex-shrink: 0; /* This prevents the footer from shrinking smaller than its content size */
}

a {
    color: rgb(18, 94, 69); /* Green color for links */
    text-decoration: none; /* Remove underlines */
}

a:hover {
    color: #006644; /* Slightly darker green on hover for feedback */
    text-decoration: underline; /* Add underline on hover for clarity */
}



#footer.dark {
    margin-top: 0px !important;
    border-top: 0px !important;
    padding-top: 70px !important;
    background-color: rgb(18, 94, 69);
    color: white;
}

/* ----------------------------------------------------------------
	Table styles
-----------------------------------------------------------------*/
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif; /* You can change this to your preferred font */
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 0px;
}

table th, table td {
    padding: 8px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

/* Header Styling */
table thead th {
    background-color: #516951;
    color: #e9f3e9;
    font-weight: 200;
    padding: 0px;
    height: 10px !important; /* Example minimal height */
}

/* Row Styles - Alternating Colors */
table tbody tr:nth-child(odd) {
    background-color: #f9fdf7;  /* Light Green */
}

table tbody tr:nth-child(even) {
    background-color: #f2f2f2;  /* Light Grey */
}

/* On Hover, make the row slightly darker to indicate it's active/selected */
table tbody tr:hover {
    background-color: #e6e6e6;  /* A shade darker than light grey */
}

/* Tooltip styling - if you're using Tippy.js, this is optional as Tippy.js comes with its own styles */
[data-tippy-content] {
    cursor: pointer;
}

/* Tippy.js Tooltip Styling */
.tippy-box[data-theme~='custom-green'] {
    background-color: #006400;  /* Dark Green */
    color: #ffffff;  /* White */
}

.tippy-arrow[data-theme~='custom-green'] {
    color: #006400;  /* Arrow Color */
}


/* ----------------------------------------------------------------
	Score Cards
-----------------------------------------------------------------*/

.scorecard {
    border: 1px solid;
    border-radius: 10px;
    margin: 20px; /* Adjust margin as needed */
    padding: 20px; /* Adjust padding as needed */
    position: relative;
}

.scorecard.clean {
    border-color: black;
    background-color: white;
}
.scorecard.red {
    border-color: red;
    background-color: #fceaea; /* Light red */
}

.scorecard.yellow {
    border-color: yellow;
    background-color: #fdfdee; /* Light yellow */
}

.scorecard.green {
    border-color: green;
    background-color: #f1faf1; /* Light green */
}

.scorecard-content {
    display: flex;
    justify-content: space-between;
    margin-top:10px;
}

.scorecard-description {
    width: 30%;
    font-style: italic;
    font-size: smaller; /* Adjust as needed */
}

.scorecard-summary {
    width: 65%; /* Adjust as needed */
    margin-left: 5%; /* Space between description and summary */
}

/* Pill container to align pills horizontally */
.pill-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center; /* Aligns pills vertically */
}

.pill,
.pill-outline {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    padding: 2px 10px;
    border-radius: 15px; /* Fully rounded edges for pill shape */
    border: 1px solid; /* Border for outline */
    font-size: 0.7em;
    text-decoration: none; /* Remove underline from links */
    margin-left: 5px; /* Space between pills */
    white-space: nowrap; /* Prevents wrapping of text in pill */
}

/* Filled pills */
.pill.red { background-color: #d92f2f; color: white; }
.pill.blue { background-color: #242450; color: white; }
.pill.green { background-color: #0d620d; color: white; }

/* Outline pills */
.pill-outline {
    background-color: transparent;
    border: 1px solid; /* Border for outline */
    color: inherit; /* Text color same as border */
    margin-left: 5px; /* Ensures equal space between pills */
}

.pill-outline.red { border-color: #d92f2f; }
.pill-outline.green { border-color: #0d620d; }
.pill-outline.blue { border-color: #242450; }

/* Specific hover effect for link pills */
.pill-container > a.pill:hover,
.pill-container > a.pill-outline:hover {
    background-color: black !important; /* Overrides other background rules */
    color: white !important; /* Overrides other color rules */
    border-color: black !important; /* Overrides other border color rules */
    opacity: 1 !important; /* Overrides other opacity rules */
    text-decoration: none !important; /* Ensures text is not underlined on hover */
}

/* ----------------------------------------------------------------
	Pop-up (file upload)
-----------------------------------------------------------------*/

#file-upload-modal {
    background: white; /* Set background color */
    padding: 20px; /* Add some padding */
    max-width: 600px; /* Max width of the modal */
    margin: 40px auto; /* Center the modal */
    border-radius: 10px; /* Round the corners */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Add a subtle shadow */
}

#file-upload-modal .modal-dialog {
    margin: 0; /* Remove any default margin */
}

#file-upload-modal .form-group {
    margin-bottom: 15px; /* Spacing between form elements */
}

#file-upload-modal label {
    display: block; /* Ensure labels are block-level */
    margin-bottom: .5rem; /* Space below labels */
}

#file-upload-modal .form-control {
    width: 100%; /* Full width inputs */
    padding: 8px; /* Padding inside inputs */
    border: 1px solid #ddd; /* Border for inputs */
    border-radius: 4px; /* Rounded corners for inputs */
}

#file-upload-modal button {
    background-color: #007bff; /* Button background color */
    color: white; /* Button text color */
    padding: 10px 15px; /* Button padding */
    border: none; /* Remove border */
    border-radius: 4px; /* Rounded corners for button */
    cursor: pointer; /* Cursor pointer on hover */
}

#file-upload-modal button:hover {
    background-color: #0056b3; /* Darker background on hover */
}
