:root {
  --primary-color: #1a2225;
  --primary-color-hover: #14263a;
  --secondary-color: #119ac2;
  --secondary-color-hover: #16809f;
  --tertiary-color: #0c9122;
  --tertiary-color-hover: #0e711e;
}

body {
  font-family: Roboto, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #333;
}

.box {
  text-align: left;
  border: 1px solid #ddd;
  padding: 40px;
  width: fit-content;
  min-width: 400px;
  border-radius: 8px;
  display: block;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
}

.text-red {
  color: red;
  font-weight: bold;
}

.w100 {
  width: 100% !important;
  max-width: 100% !important;
}

.align-left {
  text-align: left;
}

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

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

.flex {
  display: flex;
  width: fit-content;
  gap: 20px;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}

.homepage {
  width: 100%;
  height: calc(100vh - 86px);
  text-align: center;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  height: 100%;
  color: #444;
}

button {
  width: 90%;
  height: 40px;
  max-width: 200px;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
  padding: 3px;
  cursor: pointer;
  border: none;
  color: white;
  background-color: var(--secondary-color);
  margin: 0 auto;
}

.button-mini {
  width: fit-content;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
  padding: 6px 18px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  color: white;
  background-color: var(--secondary-color);
  margin: 0 auto;
}

.button-mini:hover {
  background-color: var(--secondary-color-hover);
}

.button-mid {
  padding: 6px 30px !important;
}

.login-button {
  width: 96% !important;
  max-width: 96%;
  height: 36px;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
  padding: 2px;
  cursor: pointer;
  border: none;
  color: white;
  background-color: var(--secondary-color);
  margin: 0 auto;
  margin-top: 20px;
}

.demo-data {
  border-top: 1px dashed #ccc;
  margin-top: 20px;
  padding-top: 20px;
  color: #444;
  line-height: 24px;
}

.demo-data p {
  font-weight: bold;
  padding: 0;
  margin: 0;
  margin-bottom: 5px;
  color: #444;
}

.homepage .line {
  margin-top: 20px;
  width: 100%;
  height: 20px;
  border-top: 1px solid #ddd;
}

.homepage button:hover {
  background-color: var(--secondary-color-hover);
}

.homepage-container {
  border: 1px solid #ddd;
  width: 90%;
  line-height: 30px;
  max-width: 600px;
  padding: 20px;
  margin: 0 auto;
  margin-top: 100px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
}

header {
  background-color: #fff;
  color: #333;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

header span {
  font-weight: bold;
}

main {
  min-height: calc(100vh - 86px);
  display: flex;
  justify-content: start;
}

.dbLogo {
  width: 100px;
  margin-left: 6px;
}

.dbLogo-login {
  width: 150px;
}

.githubLogo {
  width: 90px;
  margin-right: 10px;
}

header nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

header nav ul li {
  display: inline;
  margin: 0 15px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.container {
  padding: 20px;
}

footer {
  text-align: center;
  padding: 6px;
  background-color: var(--primary-color);
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

.sidebar {
  width: 30%;
  max-width: 250px;
  background-color: var(--primary-color);
  color: white;
  position: relative;
  flex-grow: 1;
}

.sidebar-container {
  background-image: url("../images/pattern2.png");
  background-size: cover;
  height: 100%;
}

.sidebar-header {
  background: #000;
  height: 110px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #555;
}

.sidebar-img {
  width: 24%;
  margin-left: 5px;
}

.sidebar-img img {
  width: 100%;
  border-radius: 50%;
  border: 3px solid white;
}

.sidebar-name {
  width: 75%;
  font-size: 14px;
}

.sidebar-email {
  font-style: italic;
}

.sidebar a {
  color: white;
}

.sidebar ul {
  padding: 0;
}

.sidebar li {
  list-style: none;
  height: 38px;
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.sidebar li:hover {
  background: #000;
}

.sidebar i {
  width: 50px;
  text-align: center;
}

.phpLogo {
  width: 300px;
  margin-top: 20px;
}

.login-form {
  margin: 0 auto;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
  background: white;
  height: 370px;
  margin-top: 100px;
  text-align: center;
  border: 1px solid #ddd;
}

input {
  width: 90%;
  margin: 0 auto;
  border: 1px solid #ddd;
  background: #f1f1f1;
  padding: 10px;
  margin-bottom: 10px;
}

.input-form {
  width: 94%;
}

.login-form label {
  font-size: 13px;
  text-align: left;
  margin: 0 auto;
  width: 96%;
  padding: 6px 2px;
  clear: both;
  display: flex;
  justify-content: start;
  color: #777;
}

.page {
  width: 100%;
  min-height: 300px;
  padding-left: 0%;
  background: #fff;
}

.page-header {
  width: 100%;
  height: 70px;
  border: none;
  color: white;
  background-color: var(--secondary-color);
  margin: 0;
}

.page-header-container {
  background-image: url("../images/pattern.png");
  background-size: cover;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-subheader {
  width: 100%;
  height: 70px;
  background: #f1f1f1;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 30px;
}

.page-wrapper {
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: start;
}

.page-header h1 {
  font-weight: normal;
  font-size: 18px;
}

.page-body {
  width: calc(100% - 50px);
  padding: 25px;
}

.top-table {
  font-size: 13px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  padding: 0 18px;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1px;
  background: white;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.table-wrapper {
  min-height: calc(100vh - 520px);
}

.table-wrapper-leads {
  min-height: calc(100vh - 320px);
}

td {
  padding: 12px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
  color: #444;
}

thead {
  background-color: var(--primary-color);
  text-align: left;
  font-weight: bold;
  font-size: 14px;
  padding: 12px;
  color: white;
}

thead tr {
  background-image: url("../images/pattern.png");
  background-size: cover;
  width: 100%;
}

th {
  padding: 6px 12px;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  text-decoration: none;
  color: white;
  background-color: var(--secondary-color);
  border-radius: 4px;
}

.pagination a.active {
  background-color: var(--secondary-color-hover);
  font-weight: bold;
}

.pagination a:hover {
  background-color: var(--secondary-color-hover);
}

.pagination .disabled {
  background-color: #ccc;
}

.form {
  text-align: left;
  border: 1px solid #ddd;
  padding: 40px;
  width: fit-content;
  min-width: 400px;
  border-radius: 8px;
  display: block;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
}

.form2 {
  min-width: 800px;
}

.form-modal {
  text-align: left;
  border: 1px solid #ddd;
  padding: 26px;
  width: calc(100% - 56px);
  border-radius: 8px;
  display: block;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
}

form select {
  width: 100%;
  margin: 0 auto;
  border: 1px solid #ddd;
  background: #f1f1f1;
  padding: 10px;
  margin-bottom: 10px;
}

form textarea {
  width: 100%;
  height: 120px;
  margin: 0 auto;
  border: 1px solid #ddd;
  background: #f1f1f1;

  margin-bottom: 10px;
}

form .row {
  display: flex;
  gap: 20px;
}

form .col {
  width: 400px;
}

form label {
  margin-top: 12px;
  margin-bottom: 8px;
}

form h2 {
  font-weight: bold;
  padding-top: 0;
  margin-top: 0;
  font-size: 20px;
}

label {
  color: #333;
  clear: both;
  margin-bottom: 12px;
  font-size: 14px;
  display: block;
}

.button {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.add-button {
  width: fit-content;
  margin-left: 0;
  margin-bottom: 12px;
}

.input-submit {
  background-color: var(--secondary-color);
  color: white;
  width: 100%;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.base-button {
  width: 36px;
  height: 36px;
  color: white;
  border-radius: 4px;
  font-size: 14px;
}

.edit-button {
  background-color: var(--secondary-color);
}

.edit-button:hover {
  background-color: var(--secondary-color-hover);
}

.delete-button {
  background-color: #e61134;
  cursor: pointer;
}

.delete-button:hover {
  background-color: #bc0f2b;
}

.view-button {
  background: var(--tertiary-color);
}

.view-button:hover {
  background: var(--tertiary-color-hover);
}

.detail-button {
  background: var(--tertiary-color);
  width: 90px;
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.detail-button:hover {
  background: var(--tertiary-color-hover);
}

.buttons-container {
  display: flex;
  justify-content: start;
  gap: 4px;
  align-items: center;
}

.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
}
.modal-actions {
  margin-top: 10px;
}
.modal-actions button {
  padding: 10px;
  margin: 5px;
}
.modal-detail {
  text-align: left;
}
.modal-delete {
  padding-top: 40px;
  padding-bottom: 40px;
}
.danger {
  background: red;
  color: white;
}
.danger:hover {
  background: #b4301a;
  color: white;
}
.search-form {
  display: flex;
  align-items: center;
  justify-content: start;
  color: #444;
  font-size: 13px;
  gap: 8px;
  height: 34px;
}

.search-form input {
  background: white;
  padding: 5px;
  margin: 0;
  width: 140px;
}

.search-button {
  margin-right: 24px;
  padding: 0px 12px;
  height: 26px;
  width: 60px;
  border-radius: 4px;
}

.search-button:hover {
  background: var(--secondary-color-hover);
}

.tabs-container {
  font-family: Arial, sans-serif;
}

.tabs {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  border-top: 1px solid #ddd;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
}

.tab {
  padding: 14px 28px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab:hover {
  background: #e1e1e1;
}

.tab.active {
  background-color: var(--secondary-color);
  color: white;
}

.tab-content {
  padding: 20px 0;
  display: none;
  border-top: 1px solid #ccc;
}

.tab-content p {
  font-size: 15px;
  color: #555;
}

.tab-content h2 {
  font-size: 20px;
  color: #555;
  border-bottom: 1px solid #ddd;
  padding-bottom: 14px;
}

#content-detail {
  display: block;
}

.detail-row {
  display: flex;
  font-size: 15px;
}

.detail-row div:first-of-type {
  width: 110px;
  font-weight: bold;
  height: 40px;
}

.close {
  color: white;
  border-radius: 50%;
  font-weight: bold;
  width: 30px;
  height: 30px;
  padding-top: 1px;
  cursor: pointer;
  background: #222;
  font-size: 24px;
}

.close:hover {
  background: #444;
}

.notes {
  width: calc(100% - 40px);
  height: 150px;
  overflow-y: scroll;
  background-color: #f1f1f1;
  scrollbar-width: thin;
  font-size: 13px;
  padding: 10px;
}

.lead-box {
  height: 40px;
  border-left: 1px solid #ddd;
  border-bottom: 0;
  padding: 0 12px;
  font-size: 12px;
  line-height: 20px;
}

.dashboard-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard {
  display: flex;
  padding: 20px;
  padding-bottom: 0;
  gap: 20px;
  width: calc(100% - 60px);
}

.dashboard-box1 {
  border: 1px solid #ddd;
  width: 50%;
  height: 500px;
  background: white;
  color: #444;
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
  line-height: 27px;
}

.dashboard-box1 .line {
  margin-top: 20px;
  width: 100%;
  height: 1px;
  border-top: 1px solid #ddd;
}

.dashboard-box1 h3 {
  margin: 10px;
}

.dashboard-box2 {
  border: 1px solid #ddd;
  width: 25%;
  height: 100px;
  background: white;
  color: #444;
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: center;
  text-align: left;
  flex-direction: row;
  justify-content: start;
  padding-left: 40px;
  overflow-y: auto;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
  line-height: 27px;
  font-size: 32px;
}

.dashboard-box2 p {
  font-size: 17px;
  font-weight: bold;
  margin: 0;
  padding: 0;
  padding-bottom: 5px;
}

.dashboard-icon-container {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  font-size: 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-icon1 {
  background-color: #119ac2;
}

.dashboard-icon2 {
  background-color: #71bb37;
}

.dashboard-icon3 {
  background-color: #ac892c;
}

.dashboard-icon4 {
  background-color: #444;
}

.dashboard-box3 {
  border: 1px solid #ddd;
  width: 50%;
  height: 500px;
  background: white;
  color: #444;
  text-align: left;
  overflow-y: auto;
  box-shadow: 0px 2px 4px 0px rgb(0, 0, 0, 0.2);
  line-height: 27px;
}

.dashboard-box-int {
  padding: 20px;
}

.demo-mode {
  color: red;
  font-size: 24px;
}

.alert {
  width: 110px;
}

.activeBtn {
  width: 60px;
  cursor: pointer;
}

.badge {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  width: 80px;
  color: white;
  font-weight: bold;
  text-align: center;
  display: inline-block;
}

.badge-green {
  background-color: var(--tertiary-color);
}

.badge-red {
  background-color: red;
}

.badge-orange {
  background-color: #e88821;
}

.badge-lead {
  background-color: #1095bc;
}

.badge-lead2 {
  background-color: #117b9a;
}

.lang-switcher {
  position: relative;
  display: inline-block;
  margin-right: 12px;
}

.lang-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3em;
  color: #333;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.lang-button:hover {
  background-color: #f0f0f0;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: -10px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 90px;
  z-index: 1000;
}

.lang-dropdown a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.lang-dropdown a:hover {
  background-color: #f8f8f8;
}

.lang-switcher:hover .lang-dropdown {
  display: block;
}
