/* Import Google Font: Roboto Condensed */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap');

body {
  background: #1e1e1e;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  margin: 0;
  padding: 20px;
}
.login-container input[type="text"],
.login-container input[type="password"] {
  width: 80%;          /* adjust the width as needed */
  display: block;      /* make sure the inputs are block-level */
  margin: 10px auto;   /* auto left/right margins center the element */
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
}
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #2c2f33;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

/* Headers */
h1, h2 {
  color: #fff;
}

/* Links */
a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Logout link styled in gold */
.logout-link {
  color: #b39754;
  font-weight: bold;
}

/* Buttons */
button {
  background: transparent;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.3s ease;
}

button:hover {
  background: #b39754;
}

/* Inputs and Textareas */
input,
textarea {
  padding: 6px;
  margin: 5px 0;
  width: 100%;
  border: 1px solid #444;
  border-radius: 4px;
  background: #333;
  color: #fff;
}
button,
a.btn {
  background: transparent;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.3s ease;
}

button:hover,
a.btn:hover {
  background: #b39754;
}

/* Login container */
.login-container {
  max-width: 400px;
  margin: 120px auto;
  background: #2e2e2e;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

/* Alert messages */
.error {
  background: #ff6666;
  padding: 10px;
  margin: 10px 0;
}

.success {
  background: #7ad03a;
  padding: 10px;
  margin: 10px 0;
}
    /* Custom Checkbox Styling */
    .custom-checkbox {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
    }
    .custom-checkbox input[type="checkbox"] {
      display: none;
    }
    .custom-checkbox .checkbox-icon::before {
      font-family: 'Material Icons';
      content: "check_box_outline_blank";
      font-size: 18px;
    }
    .custom-checkbox input[type="checkbox"]:checked + .checkbox-icon::before {
      content: "check_box";
    }
    .custom-checkbox label {
      cursor: pointer;
      margin: 0;
    }
    /* Custom Radio Styling using same icons */
    .custom-radio {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
    }
    .custom-radio input[type="radio"] {
      display: none;
    }
    .custom-radio .radio-icon::before {
      font-family: 'Material Icons';
      content: "check_box_outline_blank";
      font-size: 18px;
    }
    .custom-radio input[type="radio"]:checked + .radio-icon::before {
      content: "check_box";
    }
    .custom-radio label {
      cursor: pointer;
      margin: 0;
    }

/* --- Client List and Expandable Rows --- */

.client-list {
  margin-top: 20px;
}

.client-row {
  border: 1px solid #444;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: visible;
}


  /* Hide the default radio input */
  .due-options input[type="radio"] {
    display: none;
  }
  /* Make labels display as inline-flex items */
  .due-options label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    margin-right: 10px;
  }
  /* Use Material Icons for the custom checkbox icon */
  .due-checkbox::before {
    font-family: 'Material Symbols Outlined';
    content: "check_box_outline_blank";
    font-size: 18px; /* adjust icon size as needed */
  }
  /* When the radio is checked, change the icon */
  .due-options input[type="radio"]:checked + .due-checkbox::before {
    content: "check_box";
  }

/* Client header now uses flex layout to space out the info and the delete button */
.client-header {
  background: #2c2f33;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-header:hover {
  background: #3a4147;
}

.delete-client {
  background: transparent;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.3s ease;
}

.delete-client .material-icons {
  vertical-align: middle;
}

/* Client details area with the updated background color */
.client-details {
  background: #444444;
  padding: 10px;
  display: none;
}

.invoice-item {
  border-bottom: 1px solid #666;
  padding: 5px 0;
}

.invoice-item:last-child {
  border-bottom: none;
}

/* Footer for Logout positioned at the bottom of the dashboard */
.dashboard-footer {
  margin-top: 20px;
  text-align: center;
}

    .invoicer-container {
      max-width: 800px;
      margin: 0 auto;
      background: #2c2f33;
      padding: 20px;
      border-radius: 8px;
      font-family: 'Roboto Condensed', sans-serif;
      color: #fff;
    }
    .invoicer-container h2 {
      text-align: center;
      margin-bottom: 20px;
    }
    form label {
      display: block;
      margin-top: 10px;
      font-weight: bold;
    }
    form input[type="text"],
    form input[type="date"],
    form textarea {
      width: 100%;
      padding: 6px;
      margin-top: 4px;
      border: 1px solid #444;
      border-radius: 4px;
      background: #333;
      color: #fff;
    }
    /* Invoice fields container */
    #invoice-fields, #project-fields {
      margin-bottom: 20px;
    }
    /* Due options styling */
    .due-options label {
      margin-right: 10px;
      font-weight: normal;
    }
    #custom-due-date {
      margin-top: 10px;
    }
    /* Items section styling */
    #items .item {
      margin-bottom: 10px;
    }
    #items .item input {
      display: inline-block;
      width: 30%;
      margin-right: 2%;
    }
    #items .item input:last-child {
      margin-right: 0;
    }
    button[type="submit"]:hover {
      background: #a68948;
    }
    .error, .success {
      margin-bottom: 15px;
      padding: 10px;
      border-radius: 4px;
    }
