

/* styles.css */

/* Style for the body */
body {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
}

/* Style for header */
header {
    background-color: #333;
    padding: 10px;
    color: white;
    text-align: center;
}

h2 {
    margin: 30px 20px 20px 20px;     /* top right bottom left */
    font-weight: normal;
}

/* Style for navigation links */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Style for the main content */
main {
    padding: 20px;    
}


table, th, td {
    border: 1px solid #ddd;
}

table td, table th {
    border: none; /* Remove grid lines */
    padding: 8px; /* Add spacing */
    vertical-align: middle; /* Align labels with inputs */
}

label {
    font-weight: bold; /* Make labels bold */
}

th, td {
    padding: 8px; /* used to be 8px*/
    text-align: left;
}

th {
    color: #004080; /* Navy blue font color */
    background-color: #F5F5F5; /* Light gray background */
    font-weight: normal;
    font-size: 1.2em;
}

td {
    font-size: 1.0em;
    min-width: 160px; /* Prevent columns from being too narrow */
    max-width: 400px; /* Prevent columns from being too wide */
    overflow: hidden; /* Hide overflowing content */
    text-overflow: ellipsis; /* Add ellipsis for clipped content */
}


thead {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-bottom: 2px solid #ddd; /* Clean separation line */
}

/* Style for pagination controls */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ddd;
    margin: 0 5px;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination .current {
    font-weight: bold;
    padding: 5px 10px;
    margin: 0 5px;
}

/* Center the form on the page */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh; /* Full viewport height */
    flex-direction: column;
    background-color: #fafafa;
    border: 1px solid #ddd; /* Soft border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    width: 50%; /* Adjust form width */
    margin: auto; /* Center form horizontally */
    margin-top: 50px;
    padding: 10px; /* Optional: Add padding for aesthetics */

}


.form-container-big {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh; /* Full viewport height */
    flex-direction: column;
    background-color: #fafafa; /* Light grey background */
    border: 1px solid #ddd; /* Soft border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    width: 70%; /* Adjust form width */
    margin: auto; /* Center form horizontally */
    margin-top: 50px;
    padding: 10px; /* Optional: Add padding for aesthetics */
}

.industry-selection-page select {
    width: 300px; /* Adjust the width of the dropdown */
    height: 40px; /* Adjust the height of the dropdown */
    padding: 5px; /* Add padding inside the dropdown */
    font-size: 16px; /* Increase font size */
    border-radius: 4px; /* Rounded corners */
    border: 1px solid #ccc; /* Light border */
}
/* Style the form table */
form table {
    border-collapse: collapse;    
    margin: auto; /* Center the form horizontally */
}

form td {
    padding: 6px; /* Add spacing between fields */
}

form label {
    text-align: right;
    display: block;
    font-weight: bold;
    margin-right: 10px;
}

.left-aligned-label {
    text-align: left;
    display: block;
}


form button {
    display: block; /* Makes the button a block-level element */
    margin: 0 auto; /* Centers the button horizontally */
    margin-top: 5px;
}

/* Style the h2 elements in forms */
.text-center {
    text-align: center;
    margin-bottom: 20px; /* Add spacing below the heading */
}

/* Center the table */
.center-table {
    margin: auto; /* Center the table horizontally */
}

button {
    background-color: #008cff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 5px;
}


.button-void {
    background-color: #FFA07A;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 5px;
}


.button-cancel {
    background-color: #008cff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 5px;
}

button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.button-small {
    padding: 5px 10px;
    background-color: #008cff;
    color: white;
    border-radius: 5px;
    font-size: 14px;    
    margin-bottom: 10px;
}

.button-small-1 {
    padding: 5px 10px;
    background-color: #008cff;
    color: white;
    border-radius: 5px;
    font-size: 12px;    
    margin-bottom: 10px;
}



.button-small-2 {
    padding: 5px 10px;
    background-color: #008cff;
    color: white;
    border-radius: 5px;
    font-size: 10px;    
    margin-bottom: 10px;
}

.logout-button {
    background-color: #87CEFA;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;    
    cursor: pointer;
    margin-left: 20px;
    margin-top: -1px;
}

.button-container {
    display: flex;
    justify-content: center; /* Center buttons horizontally */
    align-items: center; /* Align items vertically */
    gap: 15px; /* Add spacing between buttons */
    margin-top: 20px; /* Add space above the container */
}

.alert {
    margin-top: 15px; /* Add spacing for the warning message */
    padding: 10px;
    font-size: 14px;
}


input, select, textarea {
    width: 100%;
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-sizing: border-box; /* Prevent padding from overflowing */
}

input:focus, select:focus, textarea:focus {
    border-color: #00aaff; /* Highlight border on focus */
    outline: none;
}

.center-container {
    display: flex; /* Use flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 50vh; /* Full viewport height */
    margin: 0; /* Remove default margins */
}

/* Specific to the login form */
.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 300px; /* Adjust input box width */
    height: 40px; /* Adjust input box height */
    padding: 8px; /* Add spacing inside the input */
    font-size: 16px; /* Increase text size */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 4px; /* Rounded corners */
}

/* Align labels with input fields */
.login-form label {
    display: block; /* Each label on its own line */
    margin-bottom: 5px; /* Space between label and input */
    font-weight: bold; /* Optional: Bold labels */
    text-align: left; /* Align labels to the left */
}

/* Add spacing between input fields */
.login-form div {
    margin-bottom: 16px; /* Space between input groups */
}


.cardpayment-form input[type="text"] {
    width: 400px; /* Adjust input box width */
    height: 30px; /* Adjust input box height */
    padding: 4px; /* Add spacing inside the input */
    font-size: 16px; /* Increase text size */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 4px; /* Rounded corners */
}

.cardpayment-form label {
    display: block; /* Each label on its own line */
    margin-bottom: 5px; /* Space between label and input */
    font-weight: bold; /* Optional: Bold labels */
    text-align: left; /* Align labels to the left */
}

.cardpayment-form div {
    margin-bottom: 8px; /* Space between input groups */
}


a.btn-danger {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFA07A; /* Red color */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px; /* Rounded corners */
    font-size: 16px;
    font-weight: bold;
    border: none;
}

a.btn-danger.btn-small {
    padding: 5px 10px; /* Reduce padding */
    font-size: 12px; /* Smaller font size */
    border-radius: 3px; /* Optional: Adjust rounded corners */
    margin-top: 4px;
    margin-left: 2px;
}

a.btn-danger:hover {
    background-color: #E06A5A; /* Darker red on hover */
    text-decoration: none; /* Ensure no underline on hover */
}

a.btn-danger-b {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0d6efd; /* color */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px; /* Rounded corners */
    font-size: 16px;
    font-weight: bold;
    border: none;
}

a.btn-danger-b.btn-small {
    padding: 5px 10px; /* Reduce padding */
    font-size: 12px; /* Smaller font size */
    border-radius: 3px; /* Optional: Adjust rounded corners */
    margin-top: 4px;
    margin-left: 2px;
}

a.btn-danger-b:hover {
    background-color: #0b5ed7; /* Darker on hover */
    text-decoration: none; /* Ensure no underline on hover */
}

.badge {
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 5px;
    color: white;
    text-align: center;
}

.badge.bg-danger {
    background-color: #FF5733; /* Light red */
}

.badge.bg-success {
    background-color: #28A745; /* Green */
}

.action-container {
    display: flex;
    align-items: center; /* Aligns items vertically in the center */
    gap: 20px; /* Adds some space between the button and the link */
    margin-bottom: 3px;
}

.action-container form {
    margin: 0; /* Removes default margin for the form */
    
}

.action-container a {
    text-decoration: underline; /* Adds underline to the link */
    color: blue; /* Sets the link color to blue for a traditional look */
    font-weight: normal; /* Optional: ensure the font weight is normal */
}


.narrow-column {
    width: 10%;
}

.narrow-column-7 {
    width: 7%;
}

.narrow-column-16 {
    width: 16%;
}

.narrow-column-30 {
    width: 30%;
}

#search-form div {
    display: flex;
    align-items: center;
    gap: 16px;
}

#search-form input {
    flex: 1;
}

#search-form select {
    flex: 0.5;
}

#search-form button {
    flex: 0.3;
}

#search-form input,
#search-form select,
#search-form button {
    height: 30px; /* Adjust height as needed */
    padding: 5px; /* Optional: Adjust padding for better alignment */
    font-size: 14px; /* Optional: Adjust font size for larger text */
}

#autocomplete-suggestions {
    background: white;
    border: 1px solid #ccc; /* Add a light gray border */
    border-radius: 4px; /* Optional: Rounded corners */
    max-width: 300px; /* Limit the width */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for depth */
    margin-top: 5px; /* Add a small gap between the box and suggestions */
    margin-bottom: 5px;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}
.plans-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.plan-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.card-input {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.error-message {
    /* margin-top: 10px; */
    color: red;
    font-size: 0.9em;
    white-space: normal; /* Allows text to wrap */
    word-wrap: break-word; /* Ensures long words break correctly */
    line-height: 1.5; /* Adds spacing between lines */
}

.table {
    width: 100%; /* Ensures the table fits within the container */
    table-layout: fixed; /* Prevents the table from expanding beyond the container */
    border-collapse: collapse; /* Merges borders for cleaner aesthetics */
    border: 1px solid #ddd; /* Adds a subtle border around the table */
  }
  
.table th, .table td {
    word-wrap: break-word; /* Breaks long words to fit the cell */
    overflow: hidden; /* Hides content that overflows the cell */
    text-overflow: ellipsis; /* Adds ellipsis for long text */
    white-space: nowrap; /* Prevents unnecessary text wrapping */
    border: 1px solid #ddd; /* Adds subtle borders between cells */
    padding: 8px; /* Adds padding for better readability */
    text-align: left; /* Aligns content to the left */
}
  
  /* Style for the table header row */
.table th {
    color: #004080; /* Navy blue font color */
    background-color: #F5F5F5; /* Light gray background */
    font-weight: normal;
    font-size: 1.2em;
    text-align: left; /* Aligns header text to the left */
    padding: 10px; /* Slightly larger padding for header cells */
    border-bottom: 2px solid #ccc; /* Distinct bottom border for header row */
}

/* Optional: Add hover effect for table rows */
.table tbody tr:hover {
    background-color: #f9f9f9; /* Light background when hovering over rows */
}

.table-inv-payment {
    width: 100%; /* Ensures the table fits within the container */
    table-layout: fixed; /* Prevents the table from expanding beyond the container */
    border-collapse: collapse; /* Merges borders for cleaner aesthetics */
    border: 1px solid #ddd; /* Adds a subtle border around the table */
}

.table-inv-payment td:first-child {
    width: 34%; /* Left column narrower */
    text-align: left;
}

.table-inv-payment td:last-child {
    width: 66%; /* Right column wider */
}


.container {
    overflow-x: auto; /* Enables horizontal scrolling for overflowing content */
    overflow-y: hidden; /* Prevent vertical scrolling if unnecessary */
    display: block; /* Ensures proper layout for scrolling */
    max-width: 100%; /* Prevents the container from exceeding the viewport */
    background: white;
    padding: 10px; /* Optional: Add padding for aesthetics */
    border: 1px solid #ddd; /* Optional: Border for clarity */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensures padding and borders are included in width calculations */
    margin: auto;
    margin-top: 40px;
  }

.container::-webkit-scrollbar {
    height: 6px; /* Adjust scrollbar height */
}
  
.container::-webkit-scrollbar-thumb {
    background: #888; /* Customize scrollbar thumb color */
    border-radius: 4px;
}
  
.container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.container-warning {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    margin: auto;
    margin-top: 50px;
}
.container-warning h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #dc3545;
}
.container-warning p {
    font-size: 16px;
    margin-bottom: 20px;
}
.container-warning a {
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
}
.container-warning a:hover {
    background-color: #0056b3;
}


.modal-body {
    white-space: normal; /* Ensure text wraps */
    word-wrap: break-word; /* Break long words */
    font-size: 14px; /* Adjust font size for readability */
    line-height: 1.6; /* Add space between lines for clarity */
    overflow-y: auto; /* Add scrolling if content exceeds modal height */
    max-height: calc(100vh - 200px); /* Prevent modal from exceeding viewport height */
}

.settings-submenu {
    display: none;
    position: fixed;
    top: 70px; /* Adjust based on navbar height */
    left: 0;
    width: 200px;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    height: 100%;
    padding: 10px;
    z-index: 1000;
}

.settings-submenu a {
    display: block;
    padding: 10px;
    color: #000;
    text-decoration: none;
}

.settings-submenu a:hover {
    background-color: #ddd;
}

.main-content {
    margin-left: 220px; /* Adjust based on the width of the settings submenu */
}

.custom-date-form {
    display: flex;
    align-items: center;
    gap: 10px; /* Adds space between elements */
    margin-right: 20px;
}

.custom-date-fields {
    display: flex;
    gap: 5px; /* Adds space between the two input boxes */
}

.custom-date-form label {
    margin-right: 10px; /* Adds spacing between the label and inputs */
}

.custom-date-form button {
    margin-left: 10px; /* Adds spacing between the button and inputs */
}


/* Container for all filters */
.filter-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 20px; /* Adds space between filter items */
    align-items: center; /* Vertically center items in a row */
    justify-content: flex-start; /* Align items to the left */
}

/* Grouped Items */
.filter-group {
    display: flex;
    flex-direction: column; /* Stack label and input vertically */
    align-items: flex-start;
    min-width: 150px;
}

/* Custom Date Range Fields */
.custom-date-fields {
    display: flex;
    gap: 10px; /* Space between Start Date and End Date */
    flex-direction: row; /* Align Start Date and End Date horizontally */
    align-items: center; /* Vertically center align Start Date and End Date */    
}

/* Ensure all labels are aligned to the left */
.filter-group label {
    display: block; /* Make the label a block element to ensure alignment */
    text-align: left; /* Align text to the left */
    font-size: 14px; /* Optional: Keep font sizes consistent */
    margin-bottom: 5px; /* Add spacing between the label and the input */
}

/* Inputs and Select Dropdowns */
.filter-group input,
.filter-group select {
    padding: 8px; /* Ensure consistent padding */
    font-size: 14px; /* Standardize font size */
    border: 1px solid #ccc; /* Consistent border */
    border-radius: 4px; /* Consistent border radius */
    box-sizing: border-box; /* Include padding and border in the width */
    height: 36px; /* Standardize the height */
}


.filter-group .button-small {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-group .button-small:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-container {
    display: flex;
    flex-direction: column;
}

.input-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left; /* Ensures the text aligns to the left */
}

.input-container input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.smaller-text {
    font-size: 0.85em;
}

.help-button { 
    background-color: #ffffff;  /* Match outline style */
    color: #007bff;             /* Same as Bootstrap primary color */
    border: 1px solid #007bff;  /* Outline effect */
    padding: 8px 12px;          /* Match Logout button padding */
    border-radius: 4px;         /* Match border radius */
    font-size: 12px;            /* Match font size */
    cursor: pointer;
    display: inline-block;
    vertical-align: sub;      /* Align with Logout button */
    line-height: normal;
}

.help-button:hover {
    background-color: #007bff;
    color: white;
}