/*Main CSS*/
#main {
 /* background-color: #152d7c !important; */
 background-color: #f5f5f5 !important;
}

.errorSummary {
  color: #f04124 !important;
  text-align: left !important;
  padding-left: 20px !important;
}

/* Admin admin.php View CSS*/
.admin-container-top {
  color: black;
  border-radius: 8px;
  max-width: 100% !important;
  min-height: 100%;
  /* min-height: 100%; */
  margin-right: 24px;
}

.admin-header {
  /* display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%; */
}

.admin-header h1 {
  /* color: black;
    margin: 0;
    font-size: 24px;
    font-weight: bold;*/
}

.admin-actions {
  /*  display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;   
    gap: 10px;*/
}

/*AddButton addButton.php View CSS*/

.add-button-section {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
 /* margin-bottom: 20px;*/
}

.add-button {
  background: #152d7c;
  color: white;
  padding: 10px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: normal;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(21, 45, 124, 0.2);
  font-size: 1rem;
  width: 300px;
  text-align: center;
}

.add-filter-button {
  background: #152d7c;
  color: white;
  padding: 10px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: normal;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(21, 45, 124, 0.2);
  font-size: 0.6rem;
  width: 120px;
  text-align: center;
}


.add-filter-button:hover {
  background: #1e3fa1;
  color: white;
  text-decoration: none;
}

.add-button:hover {
  background: #1e3fa1;
  color: white;
  text-decoration: none;
}

.export-btn {
  background: #28a745;
  color: white;
  padding: 10px 70px;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(21, 45, 124, 0.2);
  font-size: 1rem;
  margin: 0 0 10px 20px;
}

.export-btn:hover {
  background: #218838;
  color: white;
  text-decoration: none;
}

.export-btn:focus {
  outline: none;
  background: #218838;
}

.export-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.add-button-section i {
  margin-right: 8px;
}

/* Debug debug.php View CSS*/

.debug-container {
  margin-bottom: 50px;
}

/* Admin Content / Alert Container admin.php View CSS*/

.admin-content {
  border-radius: 6px;
  overflow: hidden;
}

.alert-container {
  padding: 24px 0px;
  border-radius: 6px;
  overflow: hidden;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

/* Admin Container Table admin.php View CSS*/

.admin-container-table {
  color: black;
  border-radius: 8px;
  max-width: 100% !important;
  min-height: 100%;
  margin: 24px;
}

.admin-container-table .table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  color: black;
  border-collapse: collapse;
}

.admin-container-table .table th {
  background: #152d7c;
  color: white;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 12px 8px;
  font-weight: normal;
  text-align: left;
}
.admin-container-table .table th a {
  color: white;
}

.admin-container-table .table td {
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px 8px;
  vertical-align: middle;
}

.admin-container-table .table tr:last-child td {
  border-bottom: none;
}

.admin-container-table .table tr {
  background: white;
}

.admin-container-table .table tr.even {
  background: white;
}

.admin-container-table .table tr:hover {
  background: #f1f2ff;
}

/* Pagination link styles */
.admin-container-table .pagination li a,
.admin-container-table .pagination li span {
  color: #152d7c !important;
  border-radius: 4px;
  padding: 6px 12px;
  transition: background 0.2s, color 0.2s;
}

/* Active or focused page */
.admin-container-table .pagination li.active a,
.admin-container-table .pagination li.active span,
.admin-container-table .pagination li a:focus,
.admin-container-table .pagination li a:hover {
  background: #152d7c !important;
  color: #fff !important;
  text-decoration: none;
}
/* Icon button styles for action buttons */
.admin-container-table .table thead th {
  background-color: #f5f5f5 !important;
  color: black !important;
}
.admin-container-table .table thead th .sort-link {
  color: black !important;
}

/* Admin Container Table Grid _grid.php View CSS*/
.admin-content-list {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 100%;
}

.admin-content-list-header {
  padding: 10px 10px 10px 20px;
  border-bottom: 2px solid #152d7c;
  background-color: #f5f5f5;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.admin-content-list-header-title {
  font-size: 22px;
  font-weight: bold;
  color: #152d7c;
  text-align: left;
}

.admin-content-list-body {
  padding: 0 24px 24px 24px;
}

.grid-view {
  overflow-x: auto;
}

/* Table Icon Button Styles */
.icon-btn {
  background: transparent !important;
  border: none;
  color: #152d7c;
  font-size: 20px;
  margin: 0 2px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: #152d7c !important;
  color: white;
  text-decoration: none;
}

.icon-btn:focus {
  outline: none;
  background: #152d7c !important;
  color: white;
  text-decoration: none;
}

/* User View view.php View CSS*/
/* View Container Top */
.view-container-top {
  color: black;
  border-radius: 8px;
  max-width: 100% !important;
  min-height: 100%;
  margin: 24px;
}

/* View Actions Buttons */
.view-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  gap: 10px;
}

/* View Layout */
.view-layout {
  color: black;
  border-radius: 8px;
  max-width: 100% !important;
  min-height: 100%;
  margin: 24px;
}
/* View Main Content */
.view-main-content {
  width: 100%;
}

.view-info-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 28px;
  width: 100%;
  margin: 20px auto;
}

.view-info-card-header {
  padding: 10px 10px 10px 20px;
  border-bottom: 2px solid #152d7c;
  background-color: #f5f5f5;
}

.view-info-card h3 {
  font-size: 22px;
  color: #152d7c;
  font-weight: bold;
  text-align: left;
  padding: 10px 10px 10px 20px;
  margin: 0;
}

.view-info-paragraphs,
.view-info-paragraphs-2 {
  text-align: left;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 24px;
  font-size: 1rem;
}

.view-info-paragraph-buttons {
  text-align: left;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 24px;
  font-size: 1rem;
}

.view-info-paragraphs p {
  width: 40%;
}

.view-info-paragraphs-2 p {
  width: 100%;
}

.view-info-paragraphs-2 .view-info-paragraph .info-label {
  width: 20%;
}

.view-info-paragraphs-2 .view-info-paragraph .info-value {
  width: 100%;
}

.view-info-paragraph {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.view-info-paragraph .info-label {
  color: #152d7c;
  font-size: 1em;
  text-align: left;
  font-weight: bold;
  width: 50%;
}

.view-info-paragraph .info-value {
  background-color: #f5f5f5;
  padding: 10px;
  width: 50%;
  text-align: left;
  font-size: 1rem;
  font-weight: normal;
  border-right: 2px solid #152d7c;
}

/* View Notes */
.view-notes {
  padding: 24px;
  font-size: 1rem;
  text-align: left;
}

/* View Licenses Table */
.view-licenses-table-container {
  overflow-x: auto;
  padding: 24px;
  background-color: white;
  width: 100%;
}

.view-orders-table-container {
  overflow-x: auto;
  padding: 24px;
  background-color: white;
  width: 100%;
}

.view-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98em;
}

.view-licenses-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98em;
}

.view-orders-table th,
.view-orders-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  font-weight: normal;
  text-align: left;
}
.view-orders-table th {
  background: #152d7c;
  color: white;
  border: none;
  border-bottom: 1px solid #ccc;
  font-weight: normal;
  text-align: left;
}

.view-orders-table tr:last-child td {
  border-bottom: none;
}

.view-no-orders {
  color: #888;
  text-align: center;
  padding: 18px 0;
}

.view-licenses-table th,
.view-licenses-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  font-weight: normal;
  text-align: left;
}
.view-licenses-table th {
  background: #152d7c;
  color: white;
  border: none;
  border-bottom: 1px solid #ccc;
  font-weight: normal;
  text-align: left;
}
.view-licenses-table tr:last-child td {
  border-bottom: none;
}

.view-no-licenses {
  color: #888;
  text-align: center;
  padding: 18px 0;
}

/* License View view.php View CSS*/

.btn-reset {
  background: #ffc107;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  width: 300px;
  text-align: center;
}

/*Order View view.php View CSS*/

/* View Licenses Table */
.view-order-table-container {
  overflow-x: auto;
  padding: 24px;
  background-color: white;
  width: 100%;
}

.view-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98em;
}
.view-order-table th,
.view-order-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  font-weight: normal;
  text-align: left;
}
.view-order-table th {
  background: #152d7c;
  color: white;
  border: none;
  border-bottom: 1px solid #ccc;
  font-weight: normal;
  text-align: left;
}
.view-order-table tr:last-child td {
  border-bottom: none;
}

.view-no-order {
  color: #888;
  text-align: center;
  padding: 18px 0;
}
/* User Create/Update view.php View CSS*/

.form {
  width: 100%;
  padding: 0px !important;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 24px 24px;
}

.form-title {
  font-size: 22px !important;
  color: #152d7c;
  font-weight: bold;
  text-align: left;
  padding: 10px 10px 10px 20px;
  margin: 0;
  background-color: #f5f5f5;
  border-bottom: 2px solid #152d7c;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.form-title h1 {
  margin: 0;
  font-size: 22px !important;
  font-weight: bold;
  color: #152d7c;
}

.form-title span {
  margin-left: 10px;
  font-size: 20px;
  color: #152d7c;
  cursor: pointer;
  text-decoration: none;
}

.user-guide-link {
  color: #152d7c;
  text-decoration: none;
}
.user-guide-link:hover {
  color: #152d7c;
  text-decoration: none;
}
.user-guide-link:focus {
  color: #152d7c;
  text-decoration: none;
}

.form-title .note {
  margin-top: 20px;
  padding-left: 10px;
  width: 30%;
  text-align: left;
  font-size: 0.8rem;
  color: #152d7c;
  font-weight: normal;
  margin-bottom: 0;
}

/* Form Inner Container */
.form-inner-container {
  width: 100%;
  padding: 50px;
}

.form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.form-row-change-password {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Form Group */
.form-group {
  flex: 0 0 41.66667%;
  min-width: 0;
  margin-bottom: 10px;
}

.form-row-change-password .form-group {
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  text-align: left;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  margin: 0;
}

.form-group input[disabled] {
  background-color: #f5f5f5;
  color: #666;
}

.form-group .errorMessage {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.form-button-section {
  margin: 50px 0px;
}

.form-button-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.form-button {
  padding: 10px 70px;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #152d7c;
  color: #fff;
  width: 300px;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  margin: 0;
}
.form-button:hover {
  background-color: #081c5c !important;
  border-color: #081c5c !important;
  color: #fff;
}

.form-button.alert {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.form-button.alert:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

/* Breadcrumbs */

.breadcrumb-nav,
.breadcrumb-list,
.breadcrumb-item,
.breadcrumb-link,
.breadcrumb-text {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

.breadcrumb-nav {
  /* background: white;*/
  /*border: 1px solid #e9ecef;*/
  border-top-left-radius: 20px;
  padding: 130px 20px 0px 20px;
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 1rem !important;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: #152d7c;
  font-weight: bold;
}

.breadcrumb-link {
  color: #152d7c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #152d7c;
  text-decoration: underline;
}

.breadcrumb-current .breadcrumb-text {
  color: #495057;
  font-weight: 500;
}

.breadcrumb-current .breadcrumb-link {
  color: #495057;
  text-decoration: none;
  cursor: default;
}

.breadcrumb-nav[aria-label] {
  /* Ensure screen readers can identify this as breadcrumb navigation */
}

/* Footer */

.footer {
  /*background: #181818;*/
  color: white;
  padding: 0 0 0 0;
  font-size: 0.95em;
  height: auto;
  z-index: 10;
  position: relative;
}
.footer-content {
  /*max-width: 1200px;*/
  margin: 0 auto;
  /*padding: 0 20px;*/
}

.footer-bottom a {
  color: white;
}

.footer-section {
  margin-bottom: 20px;
}
.footer-section h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.1em;
}
.company-description {
  color: #bbb;
  margin-bottom: 10px;
}
.company-links,
.footer-links,
.contact-info {
  margin-bottom: 10px;
}
.footer-link {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 6px;
}
.contact-info p {
  margin: 0 0 6px 0;
}
.footer-bottom {
  background: #152d7c;
  padding: 15px 0;
  margin-top: 0px;
}
.copyright {
  color: white;
  font-size: 0.95em;
}
.footer-meta {
  text-align: right;
  color: #aaa;
  font-size: 0.95em;
}
.footer-meta .separator {
  margin: 0 8px;
  color: #555;
}
.build-date {
  padding-right: 10px;
  color: white;
}

.app-version {
  color: white;
}

/* Header */

#header {
  margin: 0 auto;
  padding: 0 0px;
  max-height: 100px;
  height: 100px !important;
  width: 100%;
}

.top-bar {
  margin: 0;
  /*background: #152d7c !important;*/
  background: white !important;
  width: 100%;
  height: auto;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e0e0e0;
}

.top-bar-section {
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.top-bar-section-left-menu {
  margin-left: 0px;
  /*background-color: #152d7c;*/
  background-color: white;
}

.top-bar-section-right {
  font-size: 1rem;
}

.user-bar {
  background: transparent;
  padding: 8px 0;
  text-align: right;
}

.user-bar-content {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
}

.user-link {
  /*color: white;*/
  color: black;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
}
.user-link:hover {
  background: rgba(255, 255, 255, 0.1);
  /*color: white;*/
  color: black;
  text-decoration: none;
}
.user-link.active {
  background: #081c5c !important;
  /*color: white !important;*/
  color: black !important;
  padding: 10px 20px !important;
  border-radius: 15px !important;
  margin: 0 10px !important;
  text-decoration: none !important;
  border: none !important;
}
.user-link.active:hover {
  background: rgba(255, 255, 255, 0.25);
  /*color: white;*/
  color: black;
  text-decoration: none;
}

/*.user-welcome a,
.user-logout a {
  background-color: #152d7c !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 15px !important;
  margin: 0 10px !important;
  text-decoration: none !important;
  border: none !important;
}*/
.user-welcome a,
.user-logout a {
  /*background-color: #152d7c !important;*/
  background-color: transparent !important;
  color: black !important;
  padding: 10px 20px !important;
  border-radius: 15px !important;
  margin: 0 10px !important;
  text-decoration: none !important;
  border: none !important;
}
/*.user-welcome a:hover,
.user-logout a:hover {
  background-color: #081c5c !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 15px !important;
  margin: 0 10px !important;
  text-decoration: none !important;
  border: none !important;
}*/
.user-welcome a,
.user-logout a:hover {
  /*background-color: #081c5c !important;*/
  background-color: transparent !important;
  color: #152d7c !important;
  padding: 10px 20px !important;
  border-radius: 15px !important;
  margin: 0 10px !important;
  text-decoration: none !important;
  border: none !important;
  transform: scale(1.1);
  font-weight: bold;
}
.user-logout a:active,
.user-logout a:focus {
  background-color: transparent !important;
  color: #152d7c !important;
  padding: 10px 20px !important;
  border-radius: 15px !important;
  margin: 0 10px !important;
  text-decoration: none !important;
  border: none !important;
  transform: scale(1.1);
  font-weight: bold;
}
.user-welcome i {
  padding-right: 10px;
}

.logo-dlm {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  margin: 0;
  padding: 0 0px 0 20px;
}

.icon-logout {
  padding-right: 10px;
}

#logo-dlm {
  width: 100px;
}
#logo-ja-company {
  width: 200px;
}

.debug-info-container {
  background: rgb(254, 189, 189);
  border: 1px solid red;
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  width: 100%;
  text-align: left;
}

.debug-info-title {
  color: black;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.debug-info-title h3 {
  margin: 0;
}

.debug-info-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  text-align: left;
}

.debug-info-content span {
  width: 100%;
}

.debug-info-variable-dumps {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid red;
  width: 100%;
  text-align: left;
}

.debug-info-variable-dumps div {
  width: 100%;
}

.debug-info-variable-dumps-content {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}

.debug-info-variable-dumps-content pre {
  background: red;
  color: white;
  padding: 5px;
  border-radius: 3px;
  margin: 5px 0;
  font-size: 11px;
  overflow-x: auto;
}

.debug-info-variable-dumps-content {
  margin-top: 10px;
}

.debug-info-variable-dumps-content div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.debug-info-variable-dumps-content-item {
  padding: 8px;
  border-radius: 3px;
}

.debug-info-variable-dumps-content-item strong {
  color: black;
  font-size: 12px;
}

.debug-info-variable-dumps-content-item p {
  margin: 5px 0 0 0;
  font-size: 11px;
  max-height: 150px;
  background: white;
  padding: 5px;
  border-radius: 2px;
  overflow-y: auto;
}

/*login*/

/* Required field asterisks */
.form-group label .required,
.form-group-login label .required,
span.required {
  color: #dc3545 !important; /* Red color for required asterisks */
  font-weight: bold;
}

/* Additional styling for Yii framework forms */
div.form span.required {
  color: #dc3545 !important;
  font-weight: bold;
}

.form-group-login-forgot-password {
  text-align: center;
  color: #152d7c;
}

.form-title-login-forgot-password {
  width: 100%;
}

.form-title-login-forgot-password > h1 {
  font-weight: bold;
  padding: 10px 10px 10px 20px;
  margin: 0;
  background-color: #f5f5f5;
  border-bottom: 2px solid #152d7c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  text-align: center;
  color: #152d7c;
}

.form-title-login {
  font-weight: bold;
  padding: 10px 10px 10px 20px;
  margin: 0;
 /* background-color: #f5f5f5;*/
 background-color: white;
  border-bottom: 2px solid #152d7c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  text-align: center;
}

.form-title-login h1 {
  margin: 0;
  font-size: 22px !important;
  font-weight: bold;
  color: #152d7c;
}

.form-container-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  width: 100%;
  padding: 24px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-group-login {
  width: 100%;
  margin-bottom: 10px;
  padding: 0px 24px;
}

.form-row-change-password .form-group-login {
  width: 100%;
}

.form-group-login label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  font-size: 1rem;
  text-align: left;
}

.form-group-login input[type="text"],
.form-group-login input[type="email"],
.form-group-login input[type="password"],
.form-group-login select,
.form-group-login textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  margin: 0;
}

.form-group-login input[disabled] {
  background-color: #f5f5f5;
  color: #666;
}

.form-group-login .errorMessage {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.form-login {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#login-form {
  width: 100%;
  height: 500px;
}

.form-inner-container-login {
  padding: 20px 0px;
}

.form-row-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.form-button-section-login {
  margin: 0px 0px 20px 0px;
}

/* Guest Index */

.guest-index {
  text-align: center;
  background-color: white;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.guest-index p {
  font-size: 1rem;
  margin-bottom: 0px !important;
  padding: 20px 0px;
}

.btn-index {
  background-color: #152d7c !important;
  color: white;
  padding: 10px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
}

.btn-index:hover {
  background-color: #152d7c !important;
  color: white;
}

/* Error */

.error-page {
  text-align: center;
  padding: 50px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-container {
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 6em;
  font-weight: bold;
  color: #e74c3c;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.error-message p {
  color: #7f8c8d;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.error-debug {
  margin-top: 30px;
  text-align: left;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
  border-left: 4px solid #e74c3c;
}

.error-debug pre {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 3px;
  overflow-x: auto;
  font-size: 0.9em;
}

/* about */
.about-page {
  background-color: white;
  padding: 24px;
}

.about-subtitle {
  padding: 10px 24px;
  color: black;
  text-align: left;
  margin-bottom: 0px;
}

/*Dashboard*/

/* Dashboard Container */
.dashboard-container {
  background: #f5f5f5;
  min-height: 100vh;
  padding: 20px;
  font-family: "Open Sans", sans-serif;
}

.dashboard-header {
  text-align: center;
  margin-top: 120px;
  margin-bottom: 22px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.header-text h1 {
  color: #152d7c;
  margin: 0 0 10px 0;
  font-size: 2.5em;
  font-weight: bold;
}

.header-text p {
  color: #152d7c;
  font-size: 1em;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.refresh-btn {
  background-color: #152d7c;
  color: white;
  padding: 14px 10px;
  width: 300px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
  margin-bottom: 9px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.refresh-btn span {
  text-align: center;
}

.refresh-btn:hover {
  background-color: #152d7c;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.refresh-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.refresh-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.refresh-btn i {
  font-size: 14px;
}

.last-updated {
  font-size: 1rem;
  color: #666;
  background: #f5f5f5;
  padding: 10px 10px;
  width: 300px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

/* Dashboard Sections */
.dashboard-section {
  margin-bottom: 30px;
}

.section-title {
  color: #152d7c;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: bold;
  border-bottom: 2px solid #152d7c;
  padding: 10px 10px 10px 10px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* KPI Grid for Licenses */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.kpi-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.kpi-icon {
  font-size: 2.5em;
  margin-right: 20px;
  width: 60px;
  text-align: center;
}

.kpi-content h3 {
  color: #152d7c;
  font-size: 1rem;
  margin: 0 0 5px 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.kpi-value {
  font-size: 2em;
  font-weight: 600;
  color: #333;
  margin: 5px 0;
}

.kpi-change {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  font-weight: 500;
}

.kpi-change.positive {
  color: #28a745;
}

.kpi-change.negative {
  color: #dc3545;
}

.change-arrow {
  margin-right: 5px;
  font-weight: bold;
}

/* Chart Containers */
.chart-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.chart-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
  color: #152d7c;
  margin: 0 0 20px 0;
  font-size: 1rem;
  font-weight: bold;
}

.chart-wrapper {
  height: 300px;
  position: relative;
}

/* layout column2.php */

.sort-link {
  text-decoration: none !important;
}
/* Apply Open Sans font to sidebar elements */
.mainContainer,
.side-bar,
.side-nav,
.side-nav li,
.side-nav a {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mainContainer {
  max-width: 100%;
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  position: relative;
}

.mainContainer .small-10.columns {
  border-top-left-radius: 20px;
  position: relative;
  z-index: 5;
  padding-top: 20px;
}

.mainContent {
  min-height: 100%;
  background-color: #f5f5f5;
}

.mainContainer .row .columns {
  padding: 0 !important;
}

.side-bar {
  background: transparent;
  padding: 20px 15px;
  min-height: 400px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.side-nav {
  list-style: none;
  margin-top: 0px !important;
  margin-left: 50px;
  /*background-color: #333333 !important;*/
  background-color: transparent !important;
  border: none !important;
  text-align: left !important;
}

.side-nav li {
  margin-bottom: 10px;
  border-bottom: none !important;
}

.side-nav a {
  display: block;
  padding: 8px 12px;
  color: black !important;
  text-decoration: none;
  border-radius: 0px;
  transition: background-color 0.2s;
}

.side-bar .side-nav li a {
  border-bottom: none !important;
  margin-bottom: 0px !important;
}

.side-nav a:hover {
  color: #081c5c !important;
  text-decoration: none;
}
/* Active state - same as hover */
.side-nav > li.active > a {
  /*background: #081c5c !important;*/
  color: #fff !important;
  text-decoration: none;
}


.side-subnav {
  list-style: none;
  margin-left: 18px;
  padding-left: 0;
  background: transparent;
}

.side-subnav li a {
  font-size: 15px;
  color: white !important;
  padding-left: 32px;
}

.sidebar-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
}

.settings-nav {
  margin-bottom: 24px; /* Optional: add some space from the bottom */
}

/* Sidebar menu styling */
.side-nav {
  background: #152d7c;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.side-nav > li {
  position: relative;
  margin: 0;
  padding: 0;
  text-align: center;
}

.side-nav > li > a {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: normal;
  font-size: 1rem;
  padding: 10px 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border-radius: 0px;
  margin: 4px 0;
}

.side-nav > li > a:hover,
.side-nav > li.active > a {
  background:transparent !important;
  color: #081c5c !important;
  text-decoration: none;
  font-weight: bold;
}

.side-nav > li > a > i {
  margin-right: 12px;
  font-size: 14px;
  text-align: center;
  
}

.side-nav > li > a > i:hover {
  color: #081c5c !important;
  font-weight: bold;
  transform: scale(1.1);
}
.side-nav > li > a > i:active,
.side-nav > li > a > i:focus {
  color: #081c5c !important;
   font-weight: bold;
   transform: scale(1.1);
}

/* Submenu styling (when you re-enable them) */
.side-subnav {
  max-height: 0;
  overflow: hidden;
  background: #1e3fa1;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav > li.open > .side-subnav {
  max-height: 500px;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-subnav li a {
  display: flex;
  align-items: center;
  color: #c7d0e8;
  font-size: 0.8rem;
  padding: 10px 10px;
  text-decoration: none;
  border-radius: 0 12px 12px 0;
  transition: background 0.2s, color 0.2s;
  margin: 2px 0;
}

.side-subnav li a:hover,
.side-subnav li.active > a {
  background: #081c5c !important;
  color: #fff !important;
}

.side-subnav li a .fa {
  margin-right: 10px;
  font-size: 14px;
}

/* Menu item class styling */
.menu-item > a {
  border-radius: 0px !important;
  padding: 16px 24px !important;
  margin: 4px 0 !important;
}

.menu-item > a:hover {
  background: #081c5c !important;
  color: #fff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .chart-container {
    grid-template-columns: 1fr;
  }

  .dashboard-header h1 {
    font-size: 2em;
  }

  .kpi-card {
    padding: 20px;
  }

  .kpi-icon {
    font-size: 2em;
    margin-right: 15px;
  }

  .kpi-value {
    font-size: 1.5em;
  }
}

.mainContainer .side-bar .side-nav {
  background-color: transparent;
  border: none;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

.password-input-wrapper .form-control {
  flex: 1;
  padding-right: 45px; /* Space for eye icon */
}

/* Password Toggle Button */

.password-toggle-btn {
  /*position: absolute;
    right: 100px; /* Adjust based on generate button width */
  background: none;
  border: none;
  color: black;
  cursor: pointer;
  z-index: 3;
  font-size: 16px;
  margin-bottom: 0px;
  padding: 8px;
}

.password-toggle-btn:hover {
  color: black;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.password-toggle-btn:focus {
  color: black;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

#generate-password-button {
  flex-shrink: 0;
  white-space: nowrap;
  margin-bottom: 0px;
  padding: 8px;
  background-color: transparent;
  color: black;
}

/* Password feedback styling */
.password-feedback {
  margin-top: 5px;
  font-size: 12px;
  min-height: 20px;
  line-height: 1.4;
}

.password-feedback span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.input-group {
  display: flex;
  width: 100%;
}

.input-group .form-control {
  flex: 1;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/** PRODUCTS */

.alert-container {
  padding: 24px;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

.action-buttons-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.form {
  width: 100%;
  padding: 0px !important;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Open Sans", sans-serif;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 24px 24px;
}

/* Flex Form Styles - Two inputs per row */
.form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.form-group {
  flex: 0 0 41.66667%;
  min-width: 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  text-align: left;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

.form-group input[readonly] {
  background-color: #f5f5f5;
  color: #666;
}

.form-group .errorMessage {
  color: #d9534f;
  font-size: 12px;
  margin-top: 5px;
}

/* Action buttons container */
.action-buttons-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.form-button-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Apply Open Sans font to all form elements */
.form,
.form-row,
.form-group,
.form-group label,
.form-group input,
.form-group select,
.form-group textarea,
.form-button {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.form-button {
  padding: 10px 70px;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #152d7c;
  color: #fff;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  display: inline-block;
  margin: 0;
  width: 300px;
  border: none;
}

.form-button:hover {
  background-color: black;
  border-color: black;
  color: #fff;
}

.form-button.alert {
  background-color: #dc3545;
  border-color: #dc3545;
}

.form-button.alert:hover {
  background-color: #c82333;
  border-color: #bd2130;
  color: #fff !important;
}

.form-button.warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #fff !important;
}

.form-button.warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #fff !important;
}

.form-inner-container {
  padding: 50px;
}

.form-title {
  font-size: 22px !important;
  color: #152d7c;
  font-weight: bold;
  text-align: left;
  padding: 10px 10px 10px 20px;
  margin: 0;
  background-color: #f5f5f5;
  border-bottom: 2px solid #152d7c;
}

.alert-container .alert-danger {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  border: 1px solid #f5c6cb !important;
  padding: 10px !important;
  border-radius: 4px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 1rem !important;
}

.create-container {
  padding: 20px;
  background: #fff;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Password Toggle Icon Styles - Enhanced with higher specificity */
.form-container .password-input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.form-container .password-field {
  width: 100%;
  padding-right: 40px !important; /* Make room for the icon - force override */
  box-sizing: border-box;
  position: relative;
}

.form-container .password-toggle-icon {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  z-index: 1000 !important; /* Higher z-index to ensure it's on top */
  padding: 5px;
  border-radius: 3px;
  transition: color 0.3s ease;
  pointer-events: auto; /* Ensure it's clickable */
}

.form-container .password-toggle-icon:hover {
  color: #333;
  background-color: #f5f5f5;
}

.form-container .password-toggle-icon:active {
  background-color: #e0e0e0;
}

/* Focus state for better UX */
.form-container .password-field:focus + .password-toggle-icon {
  color: #007cba;
}

/* Additional specificity for the change password form */
#change-password-form .password-input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

#change-password-form .password-field {
  width: 100%;
  padding-right: 40px !important;
  box-sizing: border-box;
}

#change-password-form .password-toggle-icon {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  z-index: 1000 !important;
  padding: 5px;
  border-radius: 3px;
  transition: color 0.3s ease;
  pointer-events: auto;
}

#change-password-form .password-toggle-icon:hover {
  color: #333;
  background-color: #f5f5f5;
}

#change-password-form .password-toggle-icon:active {
  background-color: #e0e0e0;
}

#change-password-form .password-field:focus + .password-toggle-icon {
  color: #007cba;
}

/* View Users Table */
.view-users-table-container {
  overflow-x: auto;
  padding: 24px;
  background-color: white;
  width: 100%;
}

.view-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98em;
}

.view-users-table th,
.view-users-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  font-weight: normal;
  text-align: left;
}

.view-users-table th {
  background: #152d7c;
  color: white;
  border: none;
  border-bottom: 1px solid #ccc;
  font-weight: normal;
  text-align: left;
}

.view-users-table tr:last-child td {
  border-bottom: none;
}

.view-no-users {
  color: #888;
  text-align: center;
  padding: 18px 0;
}

.create-container {
  padding: 20px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

.form {
  width: 100%;
  padding: 0px !important;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Open Sans", sans-serif;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 24px 24px;
}

.form-title {
  font-size: 22px !important;
  color: #152d7c;
  font-weight: bold;
  text-align: left;
  padding: 10px 10px 10px 20px;
  margin: 0;
  background-color: #f5f5f5;
  border-bottom: 2px solid #152d7c;
}

.form-header-note {
  width: 30%;
  text-align: left;
  margin-left: 10px;
}

/* Flex Form Styles - Two inputs per row */
.form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.form-group {
  flex: 0 0 41.66667%;
  min-width: 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  text-align: left;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

.form-group input[readonly] {
  background-color: #f5f5f5;
  color: #666;
}

.form-group .errorMessage {
  color: #d9534f;
  font-size: 12px;
  margin-top: 5px;
}

/* Buttons container */
.form-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  font-size: 1rem;
}

.form-buttons .button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

.form-buttons .success {
  background: #28a745;
  color: white;
}

.form-buttons .alert {
  background: #dc3545;
  color: white;
}

.form-buttons .button:hover {
  opacity: 0.8;
}

/* Action buttons container */
.action-buttons-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.form-button-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Apply Open Sans font to all form elements */
.form,
.form-row,
.form-group,
.form-group label,
.form-group input,
.form-group select,
.form-group textarea,
.form-button {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.form-group a {
  padding: 10px 125px;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #152d7c;
  color: #fff;
  width: 300px;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  margin: 0;
}

.form-button {
  padding: 10px 70px;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #152d7c;
  color: #fff;
  width: 300px;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  margin: 0;
}

.form-button:hover {
  background-color: rgb(22, 53, 154);
  border-color: black;
  color: #fff;
}

.form-button.alert {
  background-color: #dc3545;
  border-color: #dc3545;
}

.form-button.alert:hover {
  background-color: #c82333;
  border-color: #bd2130;
  color: #fff !important;
}

.form-button.warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #fff !important;
}

.form-button.warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #fff !important;
}

.form-group select[disabled] {
  background-color: #f5f5f5;
  color: #666;
}

.form-group select {
  background-color: white;
  color: #666;
  padding: 5px;
}

.form-inner-container {
  padding: 50px;
}

.expiredAt-field:disabled {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  cursor: not-allowed;
  border: 1px solid #ddd !important;
}

.expiredAt-field:not(:disabled) {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #007cba !important;
}

.expiredAt-field[type="date"] {
  padding: 8px;
  border-radius: 4px;
}

.form {
  width: 100%;
  padding: 0px !important;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  font-family: "Open Sans", sans-serif;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 24px 24px;
}

/* Flex Form Styles - Two inputs per row */
.form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.form-group {
  flex: 0 0 41.66667%;
  min-width: 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  font-family: "Open Sans", sans-serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

/* Action buttons container */
.action-buttons-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 25%;
}

.form-button-section {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-right: 20px;
}

.form-button {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  background-color: #152d7c;
  color: #fff;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  display: inline-block;
  margin: 0;
  min-width: 120px;
  width: 100%;
  border: none;
}

.form-button:hover {
  background-color: black;
  border-color: black;
  color: #fff;
}

.order-details-section,
.order-items-section {
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 5px;
}

.order-details-section h3,
.order-items-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.order-item-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.order-item-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align labels to the left */
}

.order-item-field label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  font-family: "Open Sans", sans-serif;
  text-align: left;
}

.order-item-field input[type="text"],
.order-item-field input[type="number"],
.order-item-field select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  height: 50px;
  margin: 0px;
}

.order-item-field input[readonly] {
  background-color: #f8f9fa;
}

/* Product Image Display Styles */
.product-image-field {
  flex: 0 0 120px;
  min-width: 120px;
}

.product-image-display {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: none;
  background-color: transparent;
  overflow: hidden;
}

.product-image-display img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.no-image-placeholder {
  color: #999;
  font-size: 12px;
  text-align: center;
  font-style: italic;
}

.button {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.button.success {
  background: #28a745;
  color: white;
}

.button.alert {
  background: #dc3545;
  color: white;
}

.button.black {
  background: #152d7c;
  color: white;
}

.button:hover {
  opacity: 0.8;
}

label {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  display: block;
  font-size: 1rem;
  text-align: left;
}

input,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

input[readonly] {
  background-color: #f8f9fa;
}

.order-details-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
}

select {
  /*margin: 0 0 1rem 0 !important;*/
  height: 50px;
}

/**margin: 0 0 1rem 0 !important; */

/* New styles for customer info display */
.customer-info-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.customer-info-card h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: black;
  font-size: 1rem;
}

.customer-info-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.customer-info-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.customer-info-item label {
  font-weight: bold;
  color: black;
  font-size: 1rem;
  margin-right: 10px;
  margin-bottom: 0px;
}

.customer-info-item span {
  color: black;
  font-size: 1rem;
  margin-bottom: 5px;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.modal-header h3 {
  margin: 0;
  color: #333;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  padding: 10px 0;
}

.modal-footer {
  padding: 10px 0;
  border-top: 1px solid #eee;
  text-align: right;
}

.modal-footer .button {
  margin-left: 10px;
}

/* New styles for status and source display */
.status-display {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  font-weight: 500;
}

.source-display {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  font-weight: 500;
}



.admin-filter-buttons-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 10px;
}
.admin-filter-buttons-container h2{
  font-size: 1.2rem;
  font-weight: bold;
  color: #152d7c;
  text-align: left;
  margin-left: 20px;
}

.admin-actions{
  display:flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 10px;
}

/* Global Search Styles */
.global-search-container {
    position: relative;
    margin: 0 20px;
    flex: 2 1 auto;
    min-width: 1000px;
    max-width: none;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    min-width: 300px;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

 .search-input-wrapper input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper i{
  position: absolute;
  left: 6px;
  color: #666;
  z-index: 2;
  pointer-events: none;
  font-size: 24px;
  bottom: 3px;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #666;
    z-index: 2;
    pointer-events: none;
}

.global-search-input {
    width: 100%;
    min-width: 300px;
    padding: 10px 15px 10px 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    height: 150px;
}

.global-search-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.global-search-input::placeholder {
    color: #999;
}

.global-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.global-search-results.active {
    display: block;
}

.global-search-results .search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.global-search-results .search-result-item:last-child {
    border-bottom: none;
}

.global-search-results .search-result-item:hover {
    background: #f5f5f5;
}

.global-search-results .search-result-item .result-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #152d7c;
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 14px;
}

.global-search-results .search-result-item .result-content {
    flex: 1;
}

.global-search-results .search-result-item .result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.global-search-results .search-result-item .result-subtitle {
    font-size: 12px;
    color: #666;
}

.global-search-results .search-result-item .result-type {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-left: 8px;
}

.global-search-results .no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.global-search-results .search-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Make header fixed */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0 auto;
    padding: 0 0px;
    max-height: 100px;
    height: 100px !important;
    width: 100%;
}

/* Add padding to body content to account for fixed header */
body {
    padding-top: 100px;
}