body {
    font-family: 'Chivo', sans-serif;
    font-size: 16px; /* Font size adjusted for better legibility */
    background-color: #FCFBF8; /* New background color */
    color: #333; /* Text color updated for better contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* This will place the footer at the bottom */
    min-height: 100vh; /* Minimum height to be the full viewport height */
    margin: 0;
}
/* Basic styling for the navigation */
.admin-nav {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    padding: 10px 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #3c3c3c;
    font-size: 16px;
    padding: 10px;
    font-weight: bold;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 220px; /* Increased min-width to give more space */
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links .dropdown-content li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-links .dropdown-content li a {
    font-size: 14px;
    color: #3c3c3c;
    font-weight: normal;
    display: block;
    width: 100%; /* Make sure the links take up the entire width */
}

.nav-links .dropdown-content li a:hover {
    background-color: #f0f0f0;
}

/* Hover effect to show dropdown */
.nav-links .dropdown:hover .dropdown-content {
    display: block;
}

/* General hover effects */
.nav-links a:hover {
    color: #0056b3;
}

.brand-logo img {
    height: 50px;
    width: auto;
}

/* Reduce margin between logo and nav links */
.nav-links {
    margin-left: 40px;
}

/* Adjust for larger dropdown menu */
.nav-links .dropdown-content {
    min-width: 220px; /* Adjusted width */
    max-width: 300px; /* Added max-width for flexibility */
}


/* Update content styling */
.content {
    max-width: 90%; /* Adjust the width as necessary */
    width: 100%;
    margin: 120px auto; /* Increased top margin to create more space below the fixed navbar */
    text-align: left;
    padding: 20px; /* Retain padding for spacing inside the content area */
    box-sizing: border-box;
    position: relative; /* Ensure the content flows naturally within the document */
    background: #FCFBF8; /* Optional: set a background color if needed */
    z-index: 10; /* Ensure the content layer is above the background layers */
    border-radius: 8px; /* Optional: rounds the corners of the content box */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: adds a subtle shadow for depth */
}

/* Input styles for sophistication */
input[type=email], input[type=tel], input[type=text], select {
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #aaa; /* Lighter border color */
    border-radius: 2px; /* Less roundness on corners */
    box-sizing: border-box;
    max-width: 100%; /* Ensures it doesn't exceed the width of its container */
    width: auto; /* Allows the input to be as wide as its content, up to the max-width */
}

/* Style the input fields */
input[type="text"],
textarea {
    width: 100%;  /* Full width to match the form */
    padding: 12px;  /* Add padding for readability */
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 16px;  /* Make text larger for readability */
    box-sizing: border-box;
}

/* Adjust input fields (date input) and textarea (notes) width */
textarea {
    width: 100%; /* Makes the input and textarea take up full width of their container */
    max-width: 600px; /* Set a max width to avoid them becoming too wide */
    padding: 12px 20px; /* Padding for better readability */
    margin: 8px 0;
    display: block; /* Ensures fields are stacked properly */
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Style the form container */
form {
    max-width: 650px;  /* Set a max width to ensure the form is not too wide */
    margin: 0 auto;    /* Center the form */
    padding: 20px;
    background: #FCFBF8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds subtle shadow */
    box-sizing: border-box;
}

/* Style for the form groups */
.form-group {
    margin-bottom: 20px;  /* Add space between form fields */
    display: flex;
    flex-direction: column;
}

/* Style for the labels */
label {
    margin-bottom: 8px;  /* Spacing between label and input field */
    font-weight: bold;
    font-size: 16px;
}

/* Additional responsive design */
@media (max-width: 768px) {
    input[type=email] {
        width: 100%; /* On small screens, the input will take the full container width */
    }
}


/* This styles the button to look more professional */
button, input[type="submit"] {
    display: inline-block; /* Allows setting of width and margins */
    width: auto; /* Only as wide as the content and padding */
    background-color: #004466; /* A professional-looking dark blue */
    color: #ffffff; /* White text for contrast */
    padding: 10px 20px; /* A comfortable amount of padding */
    border: none; /* No border for a clean look */
    border-radius: 4px; /* Matches the input fields */
    cursor: pointer; /* Shows an interactive cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition for interactive states */
}

button:hover, input[type="submit"]:hover {
    background-color: #02618c; /* A lighter blue on hover for interactivity */
}


/* Navigation styles for a cleaner look */
.client-nav, .admin-nav {
  background-color: transparent; /* Ensures nav background is transparent */
  padding: 10px 0; /* Adjust padding as needed */
  /* position: fixed; */
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.brand-logo img {
    height: 50px; /* Example height, adjust as necessary */
    margin-right: 20px; /* Space between logo and links, if needed */
    background-color: transparent !important; /* Makes background of logo transparent */
    color: transparent;
    align-items: center; /* Ensures the image aligns vertically with text */
}

/* Remove default list styling */
.nav-links {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center; /* Vertically aligns all items in the middle */
}

.nav-links li {
    margin-right: 20px;
}

/* Additional styles for nav items to remove background on individual links */
.nav-item {
    background-color: transparent; /* Ensure that nav items have no background */
    color: #333;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 10px;
    }

    .nav-links li {
        margin: 5px 0; /* Stack links with space between */
    }
}

.site-footer {
    background-color: #f8f9fa; /* Light gray background to match the site's palette */
    color: #5a5a5a; /* Darker gray text for contrast */
    padding: 40px 20px; /* Add some padding */
    text-align: center; /* Center-align the text */
    border-top: 1px solid #e7e7e7; /* A subtle border at the top of the footer */
    font-size: 14px; /* Smaller font size for footer text */
    width: 100%; /* Ensures the footer is as wide as the viewport */
    margin: 0; /* Removes any margin that could affect the width */
    padding: 0; /* Removes padding inside the footer */
}

.site-footer a {
    color: #007bff; /* A standard link color, perhaps matching your navbar */
    text-decoration: none; /* Removes underline from links */
}

.site-footer a:hover {
    text-decoration: underline; /* Underline on hover for better user interaction */
}

.site-footer img {
    height: 24px; /* Set a fixed height for social icons */
    width: auto; /* Ensure the width is auto to maintain aspect ratio */
    margin: 0 10px; /* Add some horizontal space between icons */
}

.site-footer .security-notice {
    font-style: italic; /* Italicize for emphasis */
    margin-top: 20px; /* Extra space above the privacy notice */
    color: #6c757d; /* Muted text color for less prominent information */
    width: 100%;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px; /* Reduce padding on smaller screens */
        font-size: 12px; /* Smaller font size for smaller screens */
    }

    .site-footer img {
        height: 20px; /* Smaller icons for smaller screens */
    }
}



/* Alert styles */
.flash, .alert, .alert-success, .alert-error {
    padding: 10px;
    border-radius: 2px; /* Less roundness for a sharper look */
    margin-bottom: 20px;
    border: 1px solid transparent; /* Hides the border unless it's an error or success */
    font-weight: normal;
    font-size: 1em;
}

/* Success messages should be calm, hence the use of a soft green */
.alert-success {
    color: #2e7d32; /* Darker green for text */
    background-color: #e8f5e9; /* Very light green background */
    border-color: #c8e6c9; /* Light green border */
}

/* Error messages should be clear but not alarming, hence the use of a soft red */
.alert-error, .flash {
    color: #c62828; /* Darker red for text */
    background-color: #ffebee; /* Very light red background */
    border-color: #ffcdd2; /* Light red border */
}

/* General alert for other types of messages, with a neutral color */
.alert {
    color: #856404; /* Dark yellow text for neutrality */
    background-color: #fff3cd; /* Very light yellow background */
    border-color: #ffeeba; /* Light yellow border */
}

/* Hover effects for alerts to provide interactive feedback */
.flash:hover, .alert:hover, .alert-success:hover, .alert-error:hover {
    border-color: darken(border-color, 10%); /* Darkens the border color by 10% on hover */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

html {
    height: 100%; /* Ensure the html element stretches to full height */
}

.hero-section {
  /* background: #F4F4F4; /* Or a background image could be used */ */
  padding: 50px 0;
  text-align: center;
}

.welcome-message h1 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 0.5em;
}

.welcome-message p {
  font-size: 1.2em;
  color: #555;
}

.action-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px; /* Creates a space between cards */
}

.action-card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: calc(33.333% - 20px); /* Three cards per row minus gap size */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Featured Pulse card on the admin dashboard – live system overview entry */
.pulse-feature-card {
  background: linear-gradient(135deg, #07090f 0%, #1a1438 60%, #0e1a2c 100%);
  color: #e8edf6;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}

.pulse-feature-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #22d3ee, #a855f7 60%, #f472b6);
  opacity: 0.18;
  pointer-events: none;
}

.pulse-feature-card:hover {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
  color: #ffffff;
}

@media (max-width: 768px) {
  .action-card {
    width: calc(50% - 20px); /* Two cards per row on smaller screens */
  }
}

@media (max-width: 480px) {
  .action-card {
    width: 100%; /* Full width on mobile */
  }
}

/* Keep admin navigation reachable on phones. The GP admin menu has many
   sections, so allow the top-level links to wrap instead of overflowing
   horizontally off screen. */
@media (max-width: 768px) {
  .admin-nav .nav-wrapper {
    align-items: stretch;
    gap: 8px;
    padding: 0 12px;
  }

  .admin-nav .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .admin-nav .nav-links li {
    margin: 0;
  }

  .admin-nav .nav-item,
  .admin-nav .nav-links a {
    display: block;
    padding: 8px 10px;
  }

  .admin-nav .dropdown-content {
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
  }
}

table {
    /* width: 100%; */
    border-collapse: separate;
    border-spacing: 0 15px; /* This will create space between rows */
}
/* Add padding between table rows */
/* table tr {
    padding: 10px 0;
} */
/* Alternatively, if you want to add padding to table cells for vertical spacing */
table td {
    padding: 10px 0; /* Adds 10px padding to the top and bottom of each table cell */
}
th, td {
  padding: 8px 15px; /* Adds 15px padding to the left and right, 8px to the top and bottom of each table cell */
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.odd {
  background-color: #f9f9f9;
}
.even {
  background-color: #eff2f5;
}
