html, body {
    height: 100%;
    min-height: 1050px;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* Set background color to white */
    display: flex;
    flex-direction: column;
    font-size: 1.15em; /* Increase base font size */
}

/* Import custom font */
@font-face {
    font-family: 'Optima';
    src: url('../font/Optima.ttc') format('truetype');
}

@font-face {
    font-family: 'Krungthep';
    src: url('../font/Krungthep.ttf') format('truetype');
}

body {
    font-family: 'Optima', Arial, sans-serif;
}

h1 {
    font-family: 'Krungthep', Arial, sans-serif;
}

header {
    position: relative;
    text-align: center;
    color: white;
}
header img {
    width: 100%;
    height: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #70BC1F;
    padding: 10px 20px;
    position: relative;
    top: -8px; /* Adjusts the gap space between the header image and menu bar */
}
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.4em;
}
nav a:hover {
    text-decoration: underline;
}
nav a.active {
    background-color: #0056b3; /* Highlight background color */
    color: white; /* Ensure text is readable */
    font-weight: bold; /* Make the active tab stand out */
    border-radius: 4px; /* Optional: Add rounded corners */
    padding: 5px 10px; /* Add padding for better appearance */
}
.left-menu a, .right-menu a {
    color: white;
    margin: 0 15px;
    font-size: 1.3em;
    text-decoration: none;
}
.left-menu, .right-menu {
    display: flex;
}
.left-menu a:hover, .right-menu a:hover {
    text-decoration: underline;
}
/* Content area */
.content {
    display: flex;
    flex: 1; /* Allow content to grow and fill the remaining space */
    flex-direction: row;
    box-sizing: border-box;
    margin: 0; /* Remove any gap */
}
.content h2 {
    color: #0056b3;
    font-size: 2em;
    margin-bottom: 10px; /* Ensure space between heading and paragraph */
}
.content p {
    font-size: 1.25em; /* Larger text for better readability */
    line-height: 1.6;
    margin: 0; /* Remove default margin */
}
.container {  
    width: 100%;  
    max-width: 1800px; /* Set a maximum width for the container */  
    margin: 0 auto; /* Center the container */  
    padding: 0 20px; /* Add some padding for content */  
    display: flex;  
    flex-wrap: wrap;  
    align-items: flex-start; /* Align items to the top */  
    position: relative; /* Position relative for pseudo-element */  
}  
.contact-info, .direct-meeting {
    flex: 1;
    padding: 20px;
    background: #fff;
    margin: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
}
h2, .contact-info p strong, .direct-meeting form label {
    color: #0056b3; /* Dark blue color */
    font-weight: bold;
}
.contact-info p, .direct-meeting form label {
    font-size: 1.25em; /* Larger text */
}
.contact-info a {
    color: #0056b3;
    text-decoration: none; /* No underline for email */
}
.contact-info a:hover {
    text-decoration: underline; /* Optional: underline on hover */
}
form {
    display: flex;
    flex-direction: column;
}
form label {
    display: block;
    margin: 10px 0 5px;
}
form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 1.25em; /* Larger text */
}
button {
    background-color: #85C54B;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.2em; /* Larger text */
    align-self: flex-end; /* Aligns button to the right */
}
button:hover {
    background-color: #6faa39;
}
/* Additional line spacing */
.contact-info p {
    margin-bottom: 30px; /* Increased line space */
}
.contact-info p:last-child {
    margin-bottom: 0; /* Remove margin from the last paragraph */
}
.contact-info h2, .direct-meeting h2 {
    margin-bottom: 30px; /* Increase space after headings */
}

aside {
    flex: 0 0 20%; /* Fixed width for aside */
    max-width: 250px;
    background-color: #E2F0D9;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Allows scrolling if content is too tall */
    margin: 0; /* Remove any default margin */
    font-size: 1.4em; /* Larger text for aside */
    line-height: 2.1; /* Increase line spacing */
    height: 700px; /* Fixed height */
}

.project-details {
    flex: 1; /* Takes remaining space */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Allows scrolling if content is too tall */
    margin-left: 20px;
    white-space: normal;
    font-size: 1.2em; /* Larger text for project details */
    height: 700px; /* Fixed height */
}

.contact-info {
    flex: 1;
    padding: 20px;
    background: #fff;
    margin: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

.contact-info h2 {
    margin-bottom: 30px; /* Increase space between title and content */
}

.contact-info p, .contact-info a {
    padding-left: 10px; /* Indent content to the right */
    font-size: 1.25em;
    line-height: 1.6;
    margin: 0;
}

.contact-info p {
    margin-bottom: 30px; /* Space between paragraphs */
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.container::before {  
    content: '';  
    position: absolute;  
    top: 70px; /* Distance from top of the container */  
    bottom: 70px; /* Distance from bottom of the container */  
    left: 50%; /* Center the line */  
    width: 2px; /* Line width */  
    background-color: #ccc; /* Line color */  
    transform: translateX(-50%); /* Adjust for line width */  
}   

.about-container {
    width: 100%;
    max-width: 1800px; /* Set a maximum width similar to the Contact Us section */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Add some padding for content */
    box-sizing: border-box;
    line-height: 2.1;
}

.project-links a {
    color: #333; /* Change this to your desired color */
    text-decoration: none; /* Remove underline by default */
    display: inline-flex; /* Use flex to separate icon and text */
    align-items: center; /* Align items vertically */
}

.project-links a:hover span + span {
    text-decoration: underline; /* Underline only the text part on hover */
}

.project-links span:first-child {
    text-decoration: none; /* Ensure the icon is not underlined */
    margin-right: 5px; /* Add some space between icon and text */
}

.project-links ul li a:hover span {
    text-decoration: underline; /* Underline sub-item text on hover */
}

.project-links a:hover {
    text-decoration: none; /* Ensure no underline on hover */
}

.project-links a span {
    margin-right: 5px; /* Add some space between icon and text */
}

.project-links a:hover span + span {
    text-decoration: underline; /* Underline only the text part on hover */
}

.project-links span {
    text-decoration: none; /* Ensure the icon is not underlined */
}

.project-links div, .project-links ul {
    padding-left: 35px; /* Indent content to the right */
}

aside ul {
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove default padding */
}

aside li {
    padding-left: 10px; /* Optional: Add some padding for alignment */
}

.project-details h2 {
    font-size: 1.8em; /* Keep project name size */
    margin-bottom: 25px; /* Space after project name */
}

.project-details .project-links {
    font-size: 1.2em; /* Increase text size for links */
    line-height: 1.9; /* Increase line spacing */
}

.project-details .project-links ul {
    line-height: 1.4; /* Adjust line spacing for sub-items */
    margin-top: 5px; /* Reduce space between main item and sub-items */
    padding-left: 50px; /* Increase padding to move sub-items to the right */
}

.project-details .project-links li {
    font-size: 0.9em; /* Adjust text size for sub-items */
}
/* The Modal (background) */  
.modal {  
    display: none; /* Hidden by default */  
    position: fixed; /* Stay in place */  
    z-index: 1; /* Sit on top */  
    left: 0;  
    top: 0;  
    width: 100%; /* Full width */  
    height: 100%; /* Full height */  
    overflow: auto; /* Enable scroll if needed */  
    background-color: rgb(0,0,0); /* Fallback color */  
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */  
}   
/* The Modal (background) */  
.modal {  
    display: none; /* Hidden by default */  
    position: fixed; /* Stay in place */  
    z-index: 1; /* Sit on top */  
    left: 0;  
    top: 0;  
    width: 100%; /* Full width */  
    height: 100%; /* Full height */  
    overflow: auto; /* Enable scroll if needed */  
    background-color: rgb(0,0,0); /* Fallback color */  
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */  
}  
  
/* Modal Content/Box */  
.modal-content {  
    background-color: #fefefe;  
    margin: 5% auto; /* Centered */  
    padding: 0;  
    border: none; 
    width: 75%;  
    height: 75%;  
    position: relative;  
}  

/* Modal Content/Box */  
.modal-table {  
    background-color: #fefefe;  
    padding: 0;  
    border: none;
    top: 90px;
    left: 12.5%;
    width: 75%;  
    height: 85%;  
    position: fixed;  
    overflow: auto;
}  

/* The Close Button */  
.close {  
    position: absolute;  
    top: -30px;  
    right: -30px;  
    width: 30px;  
    height: 30px;  
    background-color: grey;  
    border-radius: 50%;  
    color: black;  
    text-align: center;  
    line-height: 30px;  
    font-size: 24px;  
    font-weight: bold;  
    cursor: pointer;  
}  
  
.close:hover,  
.close:focus {  
    background-color: darkgrey;  
}  
/* Login Page Specific Styles */  
 .login-form {  
    flex: 1;  
    width: calc(100% - 60px); /* Adjust width to fit the page size with padding */
    max-width: none; /* Remove maximum width restriction */
    background: rgba(0, 128, 0, 0.5); /* Green background with 50% transparency */
    border: none; /* Remove border */
    margin: 20px; /* Add margin to ensure it's not close to the page border */
    text-align: left; /* Align content to the left */
    box-sizing: border-box; /* Include padding and border in width calculation */
}  
  
.registration-request {  
    flex: 1;  
    display: flex;  
    justify-content: center;  
    align-items: center; 
    padding: 200px;   
}  
  
.login-form h1, .registration-form h1  {  
    color: #1E3A8A;  
    margin-bottom: 20px;  
}  
  
.login-form label, .registration-form label  {  
    display: block;  
    margin-bottom: 8px;  
    color: #333;  
    font-size: 20px; 
}  
  
.login-form input[type="email"],  
.login-form input[type="password"],
.registration-form input[type="email"],  
.registration-form input[type="password"] {  
    width: 80%;  
    padding: 10px;  
    margin-bottom: 15px;  
    border: 1px solid #ccc;  
    border-radius: 4px;  
}    
  
.forgot-links {  
    margin-bottom: 20px;  
}  
  
.forgot-links a {  
    display: block;  
    color: #1E3A8A;  
    text-decoration: none;  
    margin-bottom: 5px;  
}  
  
.forgot-links a:hover {  
    text-decoration: underline;  
}  
  
.login-button, .register-button {  
    background-color: #85C54B;  
    color: white;  
    padding: 10px 20px;  
    border: none;  
    border-radius: 4px;  
    cursor: pointer;  
    text-align: center;  
    text-decoration: none;  
    display: inline-block;  
    font-size: 24px;  
    transition: background-color 0.3s;  
}  
  
.login-button:hover, .register-button:hover {  
    background-color: #6faa39;  
}  
  
.register-button {  
    display: flex;  
    align-items: left;  
    justify-content: flex-start;  
    padding: 20px;  
} 

/* Flash messages */  
.flashes {  
    list-style-type: none;  
    padding: 0;  
    margin: 0 0 20px 0;  
}  
  
.flashes li {  
    padding: 10px;  
    margin-bottom: 10px;  
    border-radius: 4px;  
    font-size: 1.2em;  
}  
  
.flashes li.danger {  
    background-color: #f8d7da;  
    color: #721c24;  
    border: 1px solid #f5c6cb;  
}  
  
.flashes li.success {  
    background-color: #d1ecf1;  
    color: #0c5460;  
    border: 1px solid #bee5eb;  
}  

.container.no-vertical-line::before {  
    display: none; /* Hide the vertical line */
}  

.container.no-vertical-line {
    max-width: 600px;
    display: flex;  
    justify-content: center;  
}  

#registration-form {
    display: block !important; /* Force display */
    width: 80%;
    margin: 20px;
    background-color: rgba(1, 166, 1, 0.2);
}

.registration-form {  
    width: 100%; /* Ensure form respects max-width but takes full width otherwise */ 
    padding: 60px;  
    background: #fff;  
    border-radius: 8px;  
}  
.registration-request {  
    flex: 1;  
    display: flex;  
    justify-content: center;  
    align-items: center;  
    padding: 200px;  
} 
/* CMS specific styles */  
.cms-container {  
    display: flex;  
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    margin-top: 20px;  
    height: auto; /* Adjust height to fit content */
}  
.cms-container aside {  
    flex: 1 1 100%; /* Full width on smaller screens */
    max-width: 100%; /* Remove fixed width */
    background-color: #E2F0D9;  
    padding: 20px;  
    box-sizing: border-box;  
    overflow-y: auto; /* Allows scrolling if content is too tall */  
    font-size: 1.2em; /* Larger text for aside */  
    line-height: 2.1; /* Increase line spacing */  
    height: auto; /* Adjust height to fit content */
    margin-bottom: 20px; /* Add spacing between sections */
}  
.cms-container aside ul {  
    list-style-type: none; /* Remove bullet points */  
    padding: 0; /* Remove default padding */
    font-size: 1.2em; /* Larger text for aside */    
}  
.cms-container aside li {  
    padding: 10px 0; /* Add padding for spacing */  
}  
.cms-container aside li:hover {  
    text-decoration: underline; /* Underline on hover */  
}  
.cms-container .project-form {  
    flex: 1 1 100%; /* Full width on smaller screens */
    padding: 20px;  
    box-sizing: border-box;  
    overflow-y: auto; /* Allows scrolling if content is too tall */  
    margin-left: 0; /* Remove left margin */
    white-space: normal;  
    font-size: 1em; /* Larger text for project details */  
    height: auto; /* Adjust height to fit content */
}  
.cms-container .project-form form {  
    display: flex;  
    flex-direction: column;  
}  
.cms-container .project-form form label {  
    display: block;  
    margin: 10px 0 5px;  
    font-size: 1.1em; /* Larger text for project details */  
}  
.cms-container .project-form form input, .cms-container .project-form form select, .cms-container .project-form form textarea {  
    width: 100%;  
    padding: 10px;  
    margin-bottom: 10px;  
    font-size: 1.25em; /* Larger text */  
}  
.cms-container .button-row {  
    display: flex;  
    justify-content: center;  
    gap: 10px;  
    margin-top: 20px;  
}  
.cms-container .project-form button {  
    padding: 10px 20px;  
    cursor: pointer;  
    font-size: 1.25em; /* Larger text */  
    flex: 1; /* Ensure all buttons are the same size */  
    max-width: 290px; /* Optional: Set a maximum width for the buttons */  
}  
.cms-container .add-attachment-btn {  
    background-color: #85C54B;  
    color: white;  
    border: none; 
    height: 50px; 
}  
.cms-container .add-attachment-btn:hover {  
    background-color: #6faa39;  
}  
.cms-container .save-btn {  
    background-color: #007BFF;  
    color: white;  
    border: none;  
    height: 50px;
}  
.cms-container .save-btn:hover {  
    background-color: #0056b3;  
}  
.cms-container .reset-btn {  
    background-color: #FFC107;  
    color: white;  
    border: none; 
    height: 50px;
}  
.cms-container .reset-btn:hover {  
    background-color: #e0a800;  
}  
.cms-container .delete-btn {  
    background-color: #DC3545;  
    color: white;  
    border: none;  
    padding: 10px 20px;  
    cursor: pointer;  
    font-size: 1em;  
    height: 50px;
}  
.cms-container .delete-btn:hover {  
    background-color: #c82333;  
}  
.cms-container .project-form .attachments {  
    margin-top: 10px;  
}  
.cms-container .project-form .attachment {  
    border: 1px solid #ccc;  
    padding: 10px;  
    margin-bottom: 10px;  
}  
.cms-container .project-form .attachment label {  
    display: block;  
    margin-bottom: 5px;  
}  
.cms-container .project-form .attachment input[type="text"], .cms-container .project-form .attachment select, .cms-container .project-form .attachment input[type="file"] {  
    width: calc(100% - 22px);  
    padding: 10px;  
    margin-bottom: 10px;  
    font-size: 1.2em; /* Larger text */  
}  
.cms-container .project-form .attachment .sub-items {  
    margin-top: 10px;  
    padding-left: 20px;  
}  
.cms-container .project-form .attachment .sub-items div {  
    border: 1px solid #ccc;  
    padding: 10px;  
    margin-bottom: 10px;  
}  
.cms-container .project-form .attachment .sub-items label {  
    display: block;  
    margin-bottom: 5px;  
}  
.cms-container .project-form .attachment .remove-btn {  
    background-color: #FFA500; /* Orange color for Remove button */  
    color: white;  
    border: none;  
    padding: 5px 10px;  
    cursor: pointer;  
    font-size: 1.1em; /* Slightly smaller text */  
}  
.cms-container .project-form .attachment .remove-btn:hover {  
    background-color: #e69500;  
}  
.cms-container .project-form .attachment .add-subitem-btn {  
    background-color: #85C54B; /* Green color for Add Sub-item button */  
    color: white;  
    border: none;  
    padding: 5px 10px;  
    cursor: pointer;  
    font-size: 1.1em; /* Slightly smaller text */  
}  
.cms-container .project-form .attachment .add-subitem-btn:hover {  
    background-color: #6faa39;  
} 

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

/* Flash messages */
.flashes {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.flashes li {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 1.2em;
}

.flashes li.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flashes li.success {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Add these styles to your existing style.css */

/* Button Styles */
.approve-btn, .reject-btn {
    background-color: #85C54B;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    margin-right: 20px;
}

.approve-btn {
    background-color: #85C54B;
}

.approve-btn:hover {
    background-color: #6faa39;
}

.reject-btn {
    background-color: #DC3545;
}

.reject-btn:hover {
    background-color: #c82333;
}

/* Larger checkboxes */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Actions row */
.button-row {
    display: flex;
    gap: 50px; /* Add spacing between buttons */
    align-items: center; /* Align buttons to the same height */
    justify-content: center; /* Center the buttons */
}

/* Total pending registrations */
.total-pending {
    color: #1E3A8A;  
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.cms-container .registration-list {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    margin-left: 20px;
    white-space: normal;
    font-size: 1.2em;
    height: fit-content;
}

.move-up-btn, .move-down-btn {
    background-color: #007BFF; /* Bold blue color */
    border: none; /* Make border invisible */
    cursor: pointer;
    font-size: 2em;
    color: white;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.move-up-btn:hover, .move-down-btn:hover {
    background-color: #1159a6; /* Bold blue color */
}

.move-up-btn::before {
    content: '🢁';
}

.move-down-btn::before {
    content: '🢃';
}

.attachment {
    flex-direction: column;
    margin-bottom: 10px;
}

.attachment > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.attachment .button-group {
    display: flex;
    align-items: center;
    border: none; /* Make button-group border invisible */
}

.sub-item .button-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    border: none; /* Make button-group border invisible */
}

.sub-item .project-move-up-btn, .sub-item .project-move-down-btn {
    width: 30px;
    height: 30px;
    font-size: 1.5em;
    margin-left: 5px;
    border-radius: 50%; /* Ensure buttons are circular */
    flex: none; /* Prevent buttons from stretching */
}

.sub-item .remove-btn {
    background-color: #FFA500; /* Orange color for Remove button */
    color: white;
    border: none; /* Make border invisible */
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.1em; /* Slightly smaller text */
    margin-right: auto; /* Move the remove button to the left */
}

.sub-item .remove-btn:hover {
    background-color: #e69500;
}

/* Specific delete button style for manage_users.html */
.manage-users .delete-btn {
    background-color: #DC3545;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.25em; /* Align text size */
    height: 50px; /* Align height */
}

.manage-users .delete-btn:hover {
    background-color: #c82333;
}

body.manage-users main {
    margin: 20px; /* Reduce margin to decrease the space */
}

body.projects .content {
    margin-top: 0px; /* Reduce top margin for projects content */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.assign-group-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.25em;
}

.assign-group-btn:hover {
    background-color: #0056b3;
}

.action-btn {
    background-color: #85C54B;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.25em;
}

.action-btn:hover {
    background-color: #6faa39;
}

.action-btn {
    background-color: #85C54B;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.25em;
    height: 50px;
}

.action-btn:hover {
    background-color: #6faa39;
}

.assign-group-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.25em;
    height: 50px;
}

.assign-group-btn:hover {
    background-color: #0056b3;
}

.delete-btn {
    background-color: #DC3545;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.25em;
    height: 50px;
}

.delete-btn:hover {
    background-color: #c82333;
}

.modal-content label,
.modal-content input,
.modal-content select,
.modal-content button {
    font-size: 1.25em;
}

/* Flash message styles */
#flash-message {
    display: none;
    color: red;
    margin-bottom: 20px;
    font-size: 1.25em;
}

/* Confirm Delete Popup Button Styles */
.confirm-yes-btn {
    background-color: #28a745; /* Green color for Yes button */
}

.confirm-yes-btn:hover {
    background-color: #218838;
}

.confirm-no-btn {
    background-color: #dc3545; /* Red color for No button */
}

.confirm-no-btn:hover {
    background-color: #c82333;
}

/* User Table Styles */
.user-table th, .user-table td {
    font-size: 1.25em; /* Increase text size */
}

main {
    padding: 20px;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form h1 {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.2em;
}

.login-button:hover {
    background-color: #0056b3;
}

/* CMS specific styles */
.cms-container {
    display: flex;
    flex-direction: row; /* Ensure the project list stays on the left */
    margin: 0; /* Remove all margins */
    padding: 0; /* Remove all padding */
    height: auto; /* Full viewport height */
    width: 100%; /* Full width */
    overflow: hidden; /* Prevent unnecessary scrollbars */
}

.cms-container aside {
    flex: 0 0 250px; /* Fixed width for the project list */
    max-width: 250px;
    background-color: #ffffff; /* Match the page background color */
    padding: 10px; /* Reduce padding */
    box-sizing: border-box;
    overflow-y: auto; /* Allow vertical scrolling only if content exceeds height */
    height: auto; /* Dynamically adjust height based on content */
    margin: 0; /* Remove margin */
    font-size: 1.2em; /* Larger text for aside */
    line-height: 1.6; /* Adjust line spacing for better readability */
}

.cms-container .project-form {
    flex: 1; /* Take the remaining space */
    padding: 10px; /* Reduce padding */
    box-sizing: border-box;
    overflow-y: auto; /* Allow vertical scrolling if needed */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    margin: 0; /* Remove margin */
    white-space: normal;
    font-size: 1em;
    height: auto; /* Dynamically adjust height based on content */
}

.cms-container .project-form .attachments {
    overflow-x: hidden; /* Prevent horizontal scrolling in attachments */
    min-height: 50px; /* Ensure attachments section has a minimum height */
}

.cms-container .project-form form input,
.cms-container .project-form form select,
.cms-container .project-form form textarea {
    max-width: 90%; /* Ensure inputs and dropdowns do not exceed container width */
    box-sizing: border-box; /* Include padding and border in width calculation */
}

.nav-bar {
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    background-color: #333;
    padding: 12px;
}

.nav-bar a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.1em;
}

.nav-bar a:hover {
    color: #85C54B; /* Change text color on hover */
}

.nav-bar a.active {
    background-color: #0056b3; /* Highlight background color */
    color: white; /* Ensure text is readable */
    font-weight: bold; /* Make the active tab stand out */
    border-radius: 4px; /* Optional: Add rounded corners */
    padding: 5px 10px; /* Add padding for better appearance */
}

.nav-bar .logout-btn {
    color: white;
    margin-left: auto; /* Push the logout button to the far right */
    text-decoration: none;
    font-size: 1.4em;
    padding: 5px 10px;
    background-color: #DC3545; /* Red background for logout */
    border-radius: 4px;
}

.nav-bar .logout-btn:hover {
    background-color: #c82333; /* Darker red on hover */
    color: white;
}

/* Manage Users Modal Styles */
body.manage-users .modal-content {
    width: 40%; /* Shorter width */
    height: auto; /* Adjust height to fit content */
    max-height: 80%; /* Ensure it doesn't exceed 80% of the viewport */
    margin: 10% auto; /* Centered vertically and horizontally */
    padding: 20px;
    overflow-y: auto; /* Enable scrolling if content exceeds height */
}

/* Projects Modal Styles */
body.projects .modal-content {
    width: 90%; /* Larger width */
    height: 90%; /* Larger height */
    margin: 5% auto; /* Place higher on the page */
    padding: 0; /* No padding for iframe */
    border: none; /* Remove border for cleaner look */
}

/* Manage Users Modal Close Button */
body.manage-users .modal .close {
    position: absolute;
    top: 10px; /* Adjust to align with content */
    right: 10px; /* Adjust to align with content */
    width: 25px;
    height: 25px;
    background-color: #ccc; /* Light gray background */
    border-radius: 50%; /* Circular button */
    color: black;
    text-align: center;
    line-height: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

body.manage-users .modal .close:hover,
body.manage-users .modal .close:focus {
    background-color: #aaa; /* Darker gray on hover */
}

/* Updated login page layout styles */
.login-page {
    height: auto !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.menu-bar {
    position: absolute;
    top: 20px;
    right: 20px;
}

.menu-button {
    background: none; /* No background color */
    border: none;
    color: black;
    font-size: 2em;
    cursor: pointer;
    position: absolute;
    top: 60px;
    right: 10px;
    z-index: 1000; /* Ensure it stays on top */
}

.menu-button:active {
    background: none; /* No background color when pressed */
}

.menu-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    text-align: left;
}

.menu-dropdown a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 5px 0;
}

.menu-dropdown a:hover {
    text-decoration: underline;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.title-section {
    margin-bottom: 50px;
}

.title-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.title-section .login-button {
    background-color: #85C54B;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.5em;
    cursor: pointer;
}

.title-section .login-button:hover {
    background-color: #6faa39;
}

.login-form-section {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    color: black;
}

.login-form h2 {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form .forgot-links {
    text-align: right;
    margin-bottom: 15px;
}

.login-form .forgot-links a {
    color: #007BFF;
    text-decoration: none;
}

.login-form .forgot-links a:hover {
    text-decoration: underline;
}

.login-form .login-button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

.login-form .login-button:hover {
    background-color: #0056b3;
}

.sign-up-section {
    margin-top: 20px;
    display: flex;
    align-items: left;
}

.sign-up-section span {
    flex: 1;
    text-align: left;
    font-size: 1.5em;
    color: white;
    white-space: nowrap; /* Prevent wrapping */
}

.sign-up-section .register-button {
    flex: 0;
    text-align: left;
    margin: 0 auto;
}

/* Top menu styles */
.top-menu {
    display: flex;
    justify-content: flex-start;
    background-color: #70BC1F;
    padding: 10px 20px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.top-menu a {
    color: white;
    margin-right: 20px;
    text-decoration: none;
    font-size: 1.2em;
}

.top-menu a:hover {
    text-decoration: underline;
}

.top-menu .logout-btn {
    margin-left: auto;
    background-color: #DC3545;
    padding: 5px 10px;
    border-radius: 4px;
}

.top-menu .logout-btn:hover {
    background-color: #c82333;
}

/* Login page layout */
.login-page {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    height: 100% !important;
    min-height: 1050px;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.title-section {
    margin-bottom: 30px;
}

.title-section h1 {
    font-size: 3em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.login-form-section {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.login-form h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #0056b3;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.login-form .forgot-links {
    text-align: right;
    margin-bottom: 15px;
}

.login-form .forgot-links a {
    color: #007BFF;
    text-decoration: none;
}

.login-form .forgot-links a:hover {
    text-decoration: underline;
}

.login-form .login-button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

.login-form .login-button:hover {
    background-color: #0056b3;
}

.sign-up-section {
    margin-top: 20px;
    display: flex;
    align-items: left;
}

.sign-up-section span {
    flex: 1;
    text-align: left;
    font-size: 1.5em;
    color: white;
    white-space: nowrap; /* Prevent wrapping */
}

.sign-up-section .register-button {
    flex: 0;
    text-align: left;
    margin: 0 auto;
}

/* Login page layout */
body.login-page {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end; /* Align content to the right */
    color: white;
    text-align: right;
    position: relative;
    background-color: #002b36; /* Fallback background color */
}

.logo {
    position: absolute;
    top: 70px;
    left: 40px;
    width: 220px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    z-index: 1000; /* Ensure it stays on top of other elements */
}

.menu-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.menu-button {
    background: none; /* No background color */
    border: none;
    color: black;
    font-size: 2em;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000; /* Ensure it stays on top */
}

.menu-button:active {
    background: none; /* No background color when pressed */
}

.sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 10px 0;
    font-size: 1.2em;
text-align: left; /* Ensure links are aligned to the left */
}

.sidebar a:hover {
    text-decoration: underline;
}

.content-container {
    max-width: 1250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 45%; /* Start items from 45% width */
    width: 60%; /* Fixed width for the container */
}

.title-section {
    margin-bottom: 50px;
    text-align: left;
}

.title-section h1 {
    font-size: 3.2em; /* Make the title much bigger */
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2; /* Add spacing between words */
}

.title-section h1 span {
    display: block; /* Ensure each word is on a new line */
}

.title-section .login-button {
    background-color: #2E7D32; /* Darker green */
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 1.5rem; /* Rounded corners */
    font-size: 1.8em; /* Larger text */
    cursor: pointer;
    text-align: left;
}

.title-section .login-button:hover {
    background-color: #1B5E20; /* Slightly darker green on hover */
}

.login-form-section {
    border: 2px solid darkgreen; /* Dark green border */
    background-color: transparent; /* Make the background colorless */
    padding: 40px;
    border-radius: 10px;
    width: 100%; /* Ensure the form spans the full width of the container */
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.login-form {
    display: none;
    margin: 20px;
    background-color: rgba(1, 166, 1, 0.2);
    width: 80%;
    padding: 25px;
}

.login-form h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: white;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.5em;
    color: white;
    text-align: left;
}

.login-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.2em;
    text-align: left;
}

.login-form .forgot-links {
    text-align: left;
    margin-bottom: 20px;
}

.login-form .forgot-links a {
    color: #007BFF;
    text-decoration: none;
}

.login-form .forgot-links a:hover {
    text-decoration: underline;
}

.login-form .login-button {
    background-color: #2E7D32; /* Darker green */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 1.5rem; /* Rounded corners */
    font-size: 1.5em;
    cursor: pointer;
    text-align: left;
}

.login-form .login-button:hover {
    background-color: #1B5E20; /* Even darker green on hover */
}

.sign-up-section {
    margin-top: 20px;
    display: flex;
    align-items: left;
}

.sign-up-section span {
    flex: 1;
    text-align: left;
    font-size: 1.5em;
    color: white;
    white-space: nowrap; /* Prevent wrapping */
}

.sign-up-section .register-button {
    flex: 0;
    text-align: left;
    margin: 0 auto;
}

/* Button styles */
button, .login-button, .login-button.large-button, .register-button {
    font-family: 'Optima', Arial, sans-serif; /* Use Optima font */
    background-color: #2E7D32; /* Darker green */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 1.5rem; /* Rounded corners */
    font-size: 1.4em;
    cursor: pointer;
    text-align: center;
}

button:hover, .login-button:hover, .login-button.large-button:hover, .register-button:hover {
    background-color: #1B5E20; /* Even darker green on hover */
}

/* Larger text for specific labels and links */
.large-text {
    font-size: 1.8em; /* Larger text size */
    font-family: 'Optima', Arial, sans-serif; /* Use Optima font */
}

/* Larger login button in the login form */
.large-button {
    font-size: 2em; /* Larger font size for the login button */
    padding: 20px 40px; /* Increase padding for a larger button */
}

/* Remove login-form-section styles */
.login-form-section {
    display: none; /* No longer used */
}

.login-form form > div {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
/* Larger text for labels */
.larger-text {
    font-size: 3em; /* Larger text size for labels */
    font-family: 'Optima', Arial, sans-serif; /* Use Optima font */
}

/* Smaller text for forgot password link */
.smaller-text {
    font-size: 1.2em; /* Smaller text size for forgot password */
    font-family: 'Optima', Arial, sans-serif; /* Use Optima font */
}

input[type="email"], input[type="password"] {
    padding: 8px;
    height: 50px;
    font-size: 1.2em;
}

hr.with-markers {
    border: 0;
    border-top: 2px solid #ccc;
    margin: 0;
    flex: 1;
}

.marker {
    width: 16px;
    height: 16px;
    background-color: #ccc;
    border-radius: 50%; /* Circular marker */
    margin: -8px; /* Ensure the marker overlaps the line */
}

hr.with-markers {
    border: 0;
    border-top: 2px solid #ccc;
    margin: 0 10px;
    flex: 1;
}

.marker {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%; /* Circular marker */
}

hr.with-markers {
    border: 0;
    border-top: 2px solid #ccc;
    margin: 0;
    flex: 1;
}

.marker {
    width: 16px;
    height: 16px;
    background-color: #ccc;
    border-radius: 50%; /* Circular marker */
    margin: -8px; /* Ensure the marker overlaps the line */
}

/* Center the register button */
.register-button {
    display: inline-block;
    margin: 0 auto;
    text-align: left;
    white-space: nowrap; /* Ensures the button content stays in one row */
}

.title-section h1 {
    margin-bottom: 30px; /* Increase spacing between the title and the button */
}

.menu-button {
    background: none; /* No background color */
    border: none;
    color: black;
    font-size: 2em;
    cursor: pointer;
    position: absolute;
    top: 60px;
    right: 10px;
    z-index: 1000; /* Ensure it stays on top */
}

.menu-button:active {
    background: none; /* No background color when pressed */
}

/* Menu bar styles */
.menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between menu button and items */
    padding: 10px 20px;
    background-color: #2E7D32; /* Green background */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Menu button styles */
.menu-button {
    background: none;
    border: none;
    color: white; /* White color for the menu button */
    font-size: 2em;
    cursor: pointer;
    margin-right: 20px; /* Add spacing between button and menu items */
}

/* Menu items styles */
.menu-items {
    display: flex;
    gap: 20px; /* Add spacing between menu items */
}

.menu-items a {
    color: white; /* White text for menu items */
    text-decoration: none;
    font-size: 1.2em;
}

.menu-items a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Dropdown menu styles */
.menu-dropdown {
    position: absolute;
    top: 50px; /* Display below the menu button */
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background for dropdown */
    padding: 10px;
    border-radius: 5px;
    display: none; /* Hidden by default */
    text-align: left; /* Align items to the left */
}

.menu-dropdown a {
    display: block;
    color: white; /* White text for menu items */
    text-decoration: none;
    margin: 5px 0;
}

.menu-dropdown a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Menu button styles */
.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    z-index: 1001; /* Ensure it stays on top of the menu */
}

/* Sidebar menu styles */
.menu-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%; /* Full height */
    background-color: rgba(46, 125, 50, 0.5); /* Green background with 50% transparency */
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Below the menu button */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between menu items */
text-align: center; /* Align text to the left */
}

.menu-sidebar a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
text-align: center; /* Ensure links are aligned to the left */
}

.menu-sidebar a:hover {
    color: black; /* Change color to black on hover */
    text-decoration: none; /* Remove underline */
}

/* Forgot Password link styles */
.smaller-text {
    font-size: 1.1em; /* Smaller text size for forgot password */
    font-family: 'Optima', Arial, sans-serif; /* Use Optima font */
}

.smaller-text:hover {
    color: black; /* Change color to black on hover */
    text-decoration: none; /* Remove underline */
}

/* 2FA verification form styles */
.verify-2fa-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.verify-2fa-form input[type="text"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.2em;
    text-align: center;
    letter-spacing: 5px;
}

.verify-2fa-form .login-button {
    width: 100%;
    margin-top: 20px;
}

/* CMS Login Page Styles */
.cms-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
}

.cms-login-box {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
}

.cms-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cms-login-header h1 {
    color: #2E7D32;
    font-size: 2.2em;
    margin-bottom: 0.5rem;
}

.cms-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333 !important;
    font-size: 1.1em;
}

.cms-login-form input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    color: black;
}

.cms-login-form input[type="email"]:focus {
    border-color: #2E7D32;
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.cms-login-button {
    width: 100%;
    max-width: 300px; /* Set a maximum width */
    padding: 1rem;
    background-color: #2E7D32;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: block; /* Make it a block element */
    margin: 0 auto; /* Center the button horizontally */
}

.cms-login-button:hover {
    background-color: #1B5E20;
}

.cms-flash-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1em;
}

.cms-flash-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.cms-flash-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* History Button Styles */
.history-btn {
    background-color: #007BFF; /* Same color as current history button */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    margin-right: 20px;
}

.history-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
    padding-left: 210px;
}

.forgot-password-link {
    color: white;
    text-decoration: none;
    text-align: left;
}

.forgot-password-link:hover {
    color: #000000;
}

.login-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.login-button.large-button {
    padding: 10px 20px;
}

.terms-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.terms-container .terms-checkbox {
    margin-right: 20px;
    width: 35px;
    height: 35px;
    align-self: flex-start;
    margin-top: 15px;
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.terms-container .terms-label {
    display: inline;
    color: white;
    font-size: 0.9em !important;
    line-height: 1.4;
    white-space: normal;
}

/* Button section */
.button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.button-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.login-button.large-button {
    padding: 10px 20px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-group.email-group label,
.form-group.password-group label {
    margin-right: 30px;
    width: 165px;
}

.form-group.email-group input,
.form-group.password-group input {
    flex: 1;
    background-color: #d4f8d4;
    border-radius: 20px;
    border: 2px solid white;
    padding: 8px;
    height: 50px;
}

.login-form .register-subtitle {
    color: #85C54B;
    font-size: 1.2em;
    margin-top: -10px;
}

/* Forgot password specific styles */
#forgot-password-form {
    display: block !important;
    margin: 20px;
    background-color: rgba(1, 166, 1, 0.2);
    width: 80%;
    padding: 20px;
}

.forgot-password-desc {
    text-align: left;
    margin-bottom: 40px;
    color: white;
    font-size: 1.2em;
    color: #85C54B;
}

/* Complete registration form styles */
#complete-registration-form {
    display: block !important;
    width: 80%;
    margin: 20px;
    background-color: rgba(1, 166, 1, 0.2);
    padding: 25px;
}

#verify-2fa-form {
    display: block !important;
    width: 80%;
    margin: 20px;
    background-color: rgba(1, 166, 1, 0.2);
    padding: 25px;
}

.verification-desc {
    margin-bottom: 20px;
    color: white;
    font-size: 1.2em;
    line-height: 1.4;
    color: #85C54B;
}

.form-group.code-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-group.code-group label {
    margin-right: 40px;
    width: 240px;
}

.form-group.code-group input {
    flex: 1;
    background-color: #d4f8d4;
    border-radius: 20px;
    border: 2px solid white;
    padding: 8px;
    height: 50px;
}

.hidden {
    display: none;
}

.about-content {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(1, 166, 1, 0.2);
    border-radius: 4rem;
    width: 80%;
}

.about-content p {
    font-size: 1.2em;
    color: white;
    line-height: 1.6;
    text-align: justify;
}

.content-container {
    display: flex;
    justify-content: flex-start;
    padding-left: 45%;
    width: 55%;
}

.title-section {
    width: 80%;
    margin-top: 50px;
}

.title-section h1 {
    margin-bottom: 40px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-box {
    background-color: rgba(1, 166, 1, 0.2);
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.project-box:hover {
    transform: scale(1.05);
}

.project-box h2 {
    margin-bottom: 10px;
    color: white;
}

.project-box p {
    margin-bottom: 0;
    font-size: 0.9em;
    color: white;
}

#project-details {
    width: 100%;
    margin-top: 20px;
}

.project-details-box {
    background-color: rgba(1, 166, 1, 0.2);
    border-radius: 10px;
    padding: 20px;
    color: white;
    position: relative;
}

.project-details-box {
    background-color: rgba(1, 166, 1, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

#project-ids {
    color: white !important;
}

.project-links {
    width: 100%;
    text-align: left;
}

.project-links > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    white-space: normal;
}

.project-links > div > div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    padding-left: 0 !important;
}

.project-links > div > div > span {
    white-space: normal;
    word-break: break-word;
}

.project-links ul {
    margin: 0;
    padding-left: 40px;
    list-style: disc;
}

.project-links ul li {
    white-space: normal;
    word-break: break-word;
    margin-bottom: 5px;
}

.project-links a {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.project-links a span:first-child {
    flex-shrink: 0;
}

.close {
    position: absolute !important;
    right: 15px !important;
    top: 10px !important;
    font-size: 1.5em !important;
    cursor: pointer !important;
    color: white !important;
}

/* Specific style for deleted users modal close button */
#deletedUsersModal .close {
    position: fixed !important;
    top: 95px !important;
    right: 14% !important;
    z-index: 1001;
    background-color: black;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-content {
    margin: 0 auto;
    height: 85%;
    width: 40%;
    background-color: rgba(1, 166, 1, 0.2);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.modal .close {
    position: absolute;
    right: -30px;
    top: -30px;
    width: 30px;
    height: 30px;
    background-color: black;
    border-radius: 50%;
    color: #333;
    text-align: center;
    line-height: 30px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
}

.modal .close:hover {
    background-color: #ddd;
    color: black;
}

.contact-box {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(1, 166, 1, 0.2);
    border-radius: 10px;
}

.contact-box h2 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-group label {
    color: white;
    margin-right: 40px;
    width: 220px;
    font-size: 1.1em;
    text-align: left;
}

.form-group input,
.form-group textarea {
    flex: 1;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 5px;
    padding: 10px;
    color: black;
}

input[type="name"], input[type="tel"], .form-group textarea {
    color: white;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.contact-box p {
    color: white;
    margin-bottom: 10px;
    text-align: left;
}

.contact-box a {
    color: white;
    text-decoration: underline;
}

.office-hours {
    font-size: 0.8em;
}

/* Add these new styles */
.modal-top {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content-top {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content-top h2 {
    color: #333;
    margin-bottom: 20px;
}

.modal-content-top label {
    display: block;
    margin: 10px 0 5px;
    color: #333;
    font-size: 1.1em;
}

.modal-content-top input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-content-top .close {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: black;
    border: none;
}

.modal-content-top .close:hover {
    color: #333;
}

.password-policy {
    margin-bottom: 1em;
    color: #4fc3f7;
    font-size: 1em;
}
.password-policy ul {
    margin: 0 0 0 1.5em;
    padding: 0;
}

.menu-sidebar {
    display: none;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

/* Spacer for sidebar */
.sidebar-spacer {
    height: 120px;
}

/* Divider with markers */
.divider-with-markers {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.marker {
    width: 16px;
    height: 16px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 -8px;
}

hr.with-markers {
    flex: 1;
    border: 0;
    border-top: 2px solid #ccc;
    margin: 0;
}

/* Sign up section */
.sign-up-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.sign-up-section span {
    flex: 0;
    text-align: left;
    white-space: nowrap;
}

.login-title {
    margin-bottom: 40px;
}

.sidebar-footer {
    margin-top: auto;
    margin-bottom: 50px;
    text-align: center;
}

.register-label {
    margin-right: 40px;
    width: 310px;
}

.register-email-input {
    flex: 1;
    background-color: #d4f8d4;
    border-radius: 20px;
    border: 2px solid white;
    padding: 8px;
    height: 50px;
}

.project-link-white {
    color: white !important;
}


.project-link-orange {
    color: orange !important;
    font-weight: bold;
}

/* Disclaimer link bottom left */
#disclaimer-btn {
    position: absolute;
    left: 15px;
    bottom: 10px;
    z-index: 1000;
    margin: 0;
    text-align: left;
    background: transparent;
}

.disclaimer-link {
    color: #e0ffe0;
    font-size: 0.95em;
    cursor: pointer;
    padding: 6px 6px;
    border-radius: 8px;
    background: transparent !important; /* Always transparent */
    transition: color 0.2s;
    font-weight: 500;
    user-select: none;
    text-decoration: none;
    display: inline-block;
    border: none;
    box-shadow: none;
}
.disclaimer-link:hover {
    background: transparent !important; /* No background on hover */
    color: #b6ffb6;
    text-decoration: none;
}
.privacy-link {
    margin-left: 0 !important;
    margin-right: 0 !important; /* Remove extra right margin */
    padding-right: 0 !important; /* Remove extra right padding */
}
.info-link {
    margin-left: 0 !important;
}
.info-link-underline {
    color: #e0ffe0;
    text-decoration: underline;
}
.info-link-underline:hover {
    color: #b6ffb6;
    text-decoration: underline;
}
.copyright-link {
    margin-left: 0 !important;
}
.terms-link {
    color: #e0ffe0;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0 2px;
}
.terms-link:hover {
    color: #b6ffb6;
    text-decoration: underline;
}

/* Modal background dark green, centered content */
#disclaimer-modal.modal {
    display: none;
    position: fixed;
    z-index: 1300;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 40, 20, 0.92);
    overflow: hidden;
}

.disclaimer-modal-content {
    background: #114d2c; /* dark green */
    color: #e0ffe0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 850px;
    min-width: 260px;
    min-height: 120px;
    max-height: 70vh;
    border-radius: 12px;
    padding: 28px 28px 18px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    align-items: flex-start;
    justify-content: flex-start;
    word-break: break-word; /* Break long words */
}

.disclaimer-modal-content h2 {
    color: #b6ffb6;
    font-size: 1.15em;
    margin: 0 0 10px 0;
    text-align: center;
    width: 100%;
}
.disclaimer-text {
    font-size: 0.93em;
    color: #e0ffe0;
    margin-top: 8px;
    overflow-y: auto;
    max-height: 70vh;
    line-height: 1.5;
    padding-right: 2px;
    text-align: left;
    width: 100%;
}
.disclaimer-modal-content .close {
    position: absolute;
    top: 10px;
    right: 18px;
    color: #b6ffb6;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.disclaimer-modal-content .close:hover {
    color: #fff;
}

.privacy-link {
    margin-left: 18px;
}

.divider-bar {
    color: #e0ffe0;
    margin: 0 2px 0 3px;
    font-size: 0.95em;
    user-select: none;
}

.contact-box a:hover {
    color: #b6ffb6; /* Change to your desired hover color */
    text-decoration: underline; /* Optional: Add underline on hover */
}

/* Add these styles to your existing style section */
.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.sortable:hover {
    background-color: #f0f0f0;
}

.sort-icon {
    font-size: 0.8em;
    margin-left: 5px;
}

.sort-asc .sort-icon::after {
    content: "↑";
}

.sort-desc .sort-icon::after {
    content: "↓";
}

.user-table th {
    padding: 10px;
    text-align: left;
    background-color: #f8f9fa;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100%;
    margin-bottom: 20px;
    padding: 8px 40px 8px 8px; /* right padding for the eye icon */
}

.toggle-password-eye {
    position: absolute;
    right: 0.75em;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #888;
    user-select: none;
    z-index: 2;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
}

/* Notification Management Styles */
.notification-management {
    padding: 20px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.notification-editor {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.notification-editor h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.message-box {
    margin-bottom: 20px;
}

.message-box h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: bold;
}

.notification-preview {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    min-height: 120px;
    background-color: #f8f9fa;
    color: #000;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: left;
}

.notification-preview .no-changes {
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 40px;
}

.notification-editor textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1em;
    margin-bottom: 20px;
    resize: vertical;
    color: #000;
}

/* Project link styles */
.project-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.project-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.pending-projects-message {
    line-height: 1.5;
    margin-bottom: 20px;
    color: red;
    font-weight: bold;
}

/* Publish history styles */
.publish-history {
    margin: 10px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.publish-history h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.publish-history table {
    width: 100%;
    border-collapse: collapse;
}

.publish-history th,
.publish-history td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.publish-history th {
    font-weight: bold;
    background-color: #f1f1f1;
}

.notification-editor .save-btn {
    background-color: #0056b3;
    color: #fff; /* Ensures text is visible */
    border: none;
    padding: 10px 20px; /* Add padding to your preference */
    cursor: pointer;
}

/* Change background color on mouseover for Save Draft button */
.notification-editor .save-btn:hover {
    background-color: #003d80; /* Darker shade on hover */
}

.notification-editor .reset-btn {
    background-color: #5a6268;
    color: #fff; /* Ensures text is visible */
    border: none;
    padding: 10px 20px; /* Add padding to your preference */
    cursor: pointer;
}

/* Change background color on mouseover for Reset button */
.notification-editor .reset-btn:hover {
    background-color: #3e444a; /* Darker shade on hover */
}

.preview-link {
    align-self: flex-end;
    font-family: 'Optima', Arial, sans-serif;
    padding: 10px 20px;
    border-radius: 1.5rem;
    cursor: pointer;
    text-align: center;
    font-size: 0.8em;
    background-color: #add8e6;
    color: black;
    border: none;
    display: block;
    margin: 20px auto;
    text-decoration: none;
}

.notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fffbe6;
    color: #7c5c00;
    padding: 14px 40px 14px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 1.05em;
    z-index: 2000;
    text-align: start;
    max-height: 48px;
    overflow: auto; /* Add this line to enable scrolling */
}


.close-notification-btn {
    background: none;
    border: none;
    color: #7c5c00;
    font-size: 1.4em;
    font-weight: bold;
    margin-left: 40px;
    margin-right: 40px;
    cursor: pointer;
    padding: 2px 8px;
    line-height: 1;
    border-radius: 3px;
    transition: background 0.2s;
}

.close-notification-btn:hover {
    background: #ffe58f;
}

.notification-spacer {
    height: 30px;
    width: 100%;
    display: block;
}

.preview-link:hover {
    background-color: #90c1d3; /* Darker shade on hover */
    color: white; /* Change text color on hover */
}

/* Mobile styles for widths 1380px or less */
@media (max-width: 1380px) {
    html, body {
        min-height: 980px;
        height: 100% !important;
    }

    body.login-page {
        background-image: url('../images/mobile_background.png') !important;
        min-width: 300px; /* Added minimum width */
        min-height: 980px;
        height: 100% !important;
    }

    .content-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px !important;
        width: 90% !important;
        max-width: 1200px;
        margin: 0 auto;
    }

    .title-section {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 30px;
    }

    .title-section h1 {
        font-size: 2.1em;
        text-align: center;
    }

    .login-form {
        width: 100% !important;
        margin: 0 auto !important;
    }

    .login-form label.larger-text {
        font-size: 0.9em;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    /* Adjust buttons and links */
    .login-button.large-button, .register-button, .title-section .login-button{
        font-size: 0.9em;
    }

    .smaller-text {
        font-size: 0.7em;
    }

    .login-form h2 {
        font-size: 1.3em;
        margin-bottom: 15px; /* Reduce margin below the heading */
        margin-top: 5px; /* Reduce margin above the heading */
    }

    .login-form input[type="email"],
    .login-form input[type="password"] {
        width: 100%;
    }

    .menu-sidebar {
        width: 140px !important;
        right: 0 !important; /* Change to right side */
        left: auto !important; /* Remove left positioning */
        background-color: rgba(46, 125, 50, 0.9);
        z-index: 1000;
        transition: all 0.3s ease;
        font-size: 0.8em;
    }

    /* Adjust menu button position to right side */
    .menu-button {
        right: 0px !important;
        left: auto !important;
        top: 10px;
        z-index: 1001;
    }

    .logo {
        width: 150px;
        top: 20px;
        left: 20px;
    }

    /* Adjust form layout for mobile */
    .login-form form > div {
        flex-direction: column !important;
        margin-bottom: 2px;
    }

    /* Center the forgot password link */
    .login-form form > div:nth-child(3) {
        padding-left: 0 !important;
        justify-content: center !important;
    }

    /* Center the sign-up section */
    .sign-up-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .sign-up-section span {
        text-align: center;
        font-size: 1.1em;
    }

    .form-group.email-group,
    .form-group.password-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 5px !important;
        width: 100% !important;
    }

    .form-group.email-group label,
    .form-group.password-group label {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
    }

    .form-group.email-group input,
    .form-group.password-group input,
     {
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    .forgot-password-container {
        padding-left: 0;
        justify-content: center;
        margin-bottom: 5px;
    }

    .form-group.password-group input {
        width: 95% !important;
        margin-bottom: 5px !important;
    }

    .forgot-password-container {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-start !important; /* Align to the left */
        padding-left: 0 !important;
        margin-bottom: 15px !important;
    }

    .forgot-password-link {
        align-self: flex-start !important; /* Align link to the left */
    }

    .login-form.password-group {
        display: flex !important;
        flex-direction: column;
        margin-bottom: 2px;
        align-items: stretch !important; /* Stretch items to full width */

    }

    .password-group label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2px;
    }

    .login-button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .login-form .terms-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        font-size: 0.7em !important;
    }

    .login-form .terms-container .terms-checkbox {
        width: 20px !important;
        height: 20px !important;
        margin: 5px 10px 0 0 !important;
        flex: 0 0 20px !important;
        min-width: 20px !important;
        align-self: flex-start;     
    }

    .login-form .terms-container .terms-label {  /* Fixed selector */
        font-size: 0.8em !important;
        line-height: 1.4 !important;
        position: relative;
        top: -5px; /* Adjust this value to move it upward */
    }

    .login-form .register-subtitle {
        font-size: 0.9em !important;
        margin-top: -5px !important;
        margin-bottom: 15px !important;
    }
    #forgot-password-form {
        display: block !important;
        width: 90% !important;
        margin: 10px auto !important;
        padding: 15px !important;
    }

    .forgot-password-desc {
        font-size: 0.9em !important;
        margin-bottom: 20px !important;
    }

    .form-group.email-group {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 20px !important;
    }

    .form-group.email-group label {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        font-size: 0.9em !important;
    }

    .form-group.email-group input {
        width: 95% !important;
    }

    .button-container {
        margin-top: 20px !important;
    }

    .button-row {
        gap: 20px !important;
    }

    .button-row .login-button {
        padding: 8px 15px !important;
        font-size: 0.9em !important;
    }

    #forgot-password-form h2 {
        font-size: 1.3em !important;
        text-align: left !important;
        margin-bottom: 15px !important;
    }

    #complete-registration-form {
        width: 90% !important;
        margin: 60px auto 10px auto !important;
        padding: 15px !important;
    }

    #complete-registration-form h2 {
        font-size: 1.3em !important;
        text-align: left !important;
        margin-bottom: 10px !important;
    }

    #complete-registration-form .register-subtitle {
        font-size: 0.9em !important;
        text-align: ledt !important;
        margin-bottom: 15px !important;
        color: #85C54B !important;
    }

    #complete-registration-form .form-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 2px !important;
    }

    #complete-registration-form .form-group label {
        width: 100% !important;
        margin-right: 40px;
        margin-bottom: 5px !important;
        font-size: 0.9em !important;
    }

    #complete-registration-form .form-group input {
        width: 95% !important;
        background-color: #d4f8d4 !important;
        border-radius: 20px !important;
        border: 2px solid white !important;
        padding: 8px !important;
        height: 24px !important;
        margin-left: 0px;
    }

    #complete-registration-form .button-container {
        display: flex !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }

    #complete-registration-form .button-row {
        gap: 20px !important;
        flex-direction: row !important;
    }

    #complete-registration-form .button-row .login-button,
    #complete-registration-form .button-row .register-button {
        padding: 8px 15px !important;
        font-size: 0.9em !important;
    }
    #verify-2fa-form {
        width: 90% !important;
        margin: 10px auto !important;
        padding: 15px !important;
    }

    #verify-2fa-form h2 {
        font-size: 1.3em !important;
        text-align: left !important;
        margin-bottom: 15px !important;
    }

    .verification-desc {
        font-size: 0.9em !important;
        text-align: left !important;
        margin-bottom: 20px !important;
    }

    .form-group.code-group {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .form-group.code-group label {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        font-size: 0.9em !important;
    }

    .form-group.code-group input {
        width: 95% !important;
    }

    .button-container {
        display: flex !important;
        justify-content: center !important;
        margin-top: 20px !important;
    }

    .button-row {
        gap: 20px !important;
        flex-direction: row !important;
    }

    .button-row .login-button {
        padding: 8px 15px !important;
        font-size: 0.9em !important;
    }
    .content-container {
        padding: 20px !important;
        width: 90% !important;
        margin: 0 auto !important;
    }

    .title-section {
        margin-top: 80px !important; /* Smaller space on mobile */
        width: 100% !important;
        text-align: center !important;
    }

    .title-section h1 {
        font-size: 1.8em !important;
        margin-bottom: 20px !important;
    }

    .title-section span {
        display: block !important;
        margin-bottom: 5px !important;
    }

    .about-content {
        margin-top: 15px !important;
        padding: 15px !important;
        border-radius: 2rem !important;
        margin: 0 auto 5px auto !important; /* Center the project box and reduce bottom spacing */
    }

    .about-content p {
        font-size: 0.8em !important;
        text-align: start !important;
        line-height: 1.5 !important;
    }

    .menu-button {
        right: 2px !important;
        top: 40px !important;
    }

    .logo {
        width: 120px !important;
        top: 60px !important;
        left: 15px !important;
    }

    .projects-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .project-box {
        padding: 15px !important;
        margin: 0 auto 5px auto !important; /* Center the project box and reduce bottom spacing */
        width: 75%;
        max-width: 400px; /* Set maximum width to 300px */
    }

    .project-box h2 {
        font-size: 1.2em !important;
    }

    .project-details-box {
        margin-top: 10px !important; /* Reduced from 20px to 10px */
        padding: 15px !important;
        text-align: left !important; /* Align details box content to the left */
    }

    .modal-content {
        width: 90% !important;
        height: 80% !important;
    }

    #project-id {
        color: white !important;
        font-size: 1.3em !important;
        margin-bottom: 10px !important;
    }

    #project-name {
        color: white !important;
        font-size: 1em !important;
        margin-bottom: 15px !important;
    }

    .project-links {
        font-size: 0.9em !important;
        width: 100% !important;
        text-align: left !important;
        padding-left: 0 !important;
    }

    .project-links div {
        margin-bottom: 10px !important;
    }

    .project-links a {
        color: white !important;
        padding: 5px 0 !important;
    }

    .close {
        position: absolute !important;
        right: 15px !important;
        top: 10px !important;
        font-size: 1.5em !important;
        cursor: pointer !important;
        color: white !important;
    }

    .hidden {
        display: none !important;
    }

    .password-policy {
        font-size: 0.6em;
    }

    .flashes {
        font-size: 0.7em;
    }

    .disclaimer-modal-content {
        width: 90% !important;
        max-width: 98vw !important;
        padding: 12px 6px 8px 6px !important;
    }
    .disclaimer-modal-content h2 {
        font-size: 1em !important;
    }
    .disclaimer-text {
        font-size: 0.75em !important;
    }

    .disclaimer-link {
        font-size: 0.55em !important;
        padding: 1px 2px !important;
    }

    .divider-bar {
        font-size: 0.75em;
        margin: 0 1px 0 2px;
    }

    .project-links div {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important; /* Align to left */
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .project-links > div > span {
        display: flex !important;
    }

    .project-links ul {
        margin-left: 25px !important;
        list-style: disc !important;
        display: block !important;
        padding-left: 0 !important;
        text-align: left !important;
        width: 100% !important;
        margin-left: 40px !important; /* Indent the list */
    }

    .project-links ul li {
        display: block !important;
        margin-bottom: 5px !important;
        white-space: normal !important;
        text-align: left !important;
        padding-left: 0 !important;
    }

    .project-links ul li a {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        color: white !important;
        text-decoration: none;
    }

    .project-links a {
        display: flex !important;
        gap: 8px !important;
    }

    .project-links > div {
        display: flex !important;
        align-items: flex-start !important;
        margin-bottom: 10px !important;
    }

    #project-info .project-links ul {
        list-style: disc !important;
        margin-left: 40px !important;
        padding-left: 0 !important;
        width: 100% !important;
    }

    #project-info .project-links ul li {
        display: list-item !important;
        white-space: normal !important;
        text-align: left !important;
    }

    #project-info .project-links ul li a {
        display: inline-flex !important;
        align-items: center !important;
    }

    .project-links > div > span {
        display: inline-flex;
        align-items: flex-start;
        margin-top: 2px; /* Align with the bullet points */
    }
    .project-details-box {
        margin-top: 20px !important;
        padding: 15px !important;
        text-align: left !important;
        width: 85% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin: 0 auto 5px auto !important; /* Center the project box and reduce bottom spacing */
    }

    .project-links {
        width: 100% !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .project-links > div {
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow-x: visible !important;
        margin-bottom: 5px !important; /* Reduced from 10px to 5px */
    }

    .project-links > div > div {
        width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 2px !important; /* Reduced from 5px to 2px */
    }

    .project-links > div > div > span:last-child {
        flex: 1 !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    .project-links ul {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-right: 15px !important;
    }

    .project-links ul li {
        white-space: normal !important;
        word-break: break-word !important;
        margin-bottom: 2px !important; /* Reduced from 5px to 2px */
    }

    .content-container {
        padding: 20px !important;
        width: 90% !important;
    }

    .title-section {
        width: 100% !important;
    }

    .form-group {
        flex-direction: column !important;
    }

    .form-group label {
        width: 100% !important;
        margin-bottom: 5px !important;
        margin-right: 0 !important;
    }

    .form-group input,
    .form-group textarea {
        width: 95% !important;
    }

    .contact-box p {
        font-size: 0.8em !important;
        margin-bottom: 2px;
    }

    .office-hours {
        font-size: 0.7em !important;
    }

    #contact-form .form-group label {
        font-size: 0.9em !important;
    }

    #contact-form .button-container button {
        font-size: 0.9em !important;
    }

    #contact-form h1 {
        font-size: 1.3em !important;
        margin-bottom: 5px !important
    }

    #contact-form .form-group {
        margin-bottom: 5px;
    }

    .password-input-wrapper {
        display: block;
    }

    .notification-bar {
        font-size: 0.7em;
        max-height: 30px;
    }

    .close-notification-btn {
        margin-left: 20px;
        margin-right: 20px;
    }

    .login-form input {
        font-size: 1em;
    }
    
    #contact-form .button-container {
        margin-bottom: 5px;
        margin-top: 5px !important;
    }
}

/* Disabled button state for login form */
.login-button:disabled,
.login-button.large-button:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.login-button:disabled:hover,
.login-button.large-button:disabled:hover {
    background-color: #cccccc !important;
    color: #666666 !important;
}