:root {
  --primary-color: #25d366;
  --dark-color: #21aa61;
  --light-bgr: #d8fdd3;
  --background-color: #f8f9fa;
  --background-color-yellow: #fcf5ec;
  --dark-background-color: #008267;
  --text-color: #212529;
  --light-gray: #f1f3f5;
  --medium-gray: #e9ecef;
  --wa-dark-green: #075e54;
  --wa-green: #128c7e;
  --wa-background: #dcf8c6;
  --wa-second-background: #ece5dd;
  --white: #ffffff;
  --red: #e96161;
  --blue: #34b7f1;
  --hover-gray: #f1f1f1;
  --border: #cedcca;
  --topbar-height: 50px;
  /* Temel Renk Paleti */
  --color-bg: #e8f5e9; /* Zemin */
  --color-topbar: #075e54; /* Header */
  --color-card: #ffffff; /* Fieldset/Card */
  --color-button: #25d366; /* Primary button */
  --color-button-hover: #1ebe5a; /* Hover */
  --color-input-bg: #f7f7f7; /* Input alanı */
  --color-input-border: #c7c7c7; /* Input ve card border */
  --color-legend: #075e54; /* Fieldset başlığı */
  --color-text: #1c1c1c; /* Gövde font rengi */
  --color-focus: #25d366; /* Input odak border rengi */

  /* Genel Boyutlandırmalar */
  --radius-input: 10px; /* input ve card köşe yuvarlama */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.12);
  /* backdrop-filter: blur(6px); */
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  background: var(--wa-second-background);
  background: #e6e9f2;
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  /* overflow: hidden; */
  margin: 0;
  padding: 8px;
  /* overflow: auto; */
}

input[type='checkbox'] {
  accent-color: var(--dark-color);
}

input[type='radio'] {
  accent-color: var(--dark-color);
}

input[type='range'] {
  accent-color: var(--dark-color);
}

input,
select,
textarea {
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-input);
  padding: 8px 12px;
  color: var(--color-text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-focus);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

table {
  border-spacing: 0px;
  border: none;
  /* background: white; */
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  /* line-height: 1.4em; */
}

th,
td {
  /* Dikey çizgileri gösteren kenarlıkları kaldırır */
  border: none;

  /* Yatay çizgileri oluşturmak için sadece alta kenarlık ekler */
  /* border-bottom: 1px solid #c3bfbf; */ /* Renk ve kalınlığı isteğinize göre değiştirebilirsiniz */
  padding: 1px 3px; /* İçerik için biraz boşluk bırakalım */
}

td:last-child {
  text-align: right;
}
.lined td {
  border-bottom: 1px solid #ccc; /* İstediğiniz renk ve kalınlık */
  padding: 2px; /* Hücre içindeki boşluk (isteğe bağlı) */
}
.lined thead tr:first-child th,
.lined tr:first-child td {
  /* En üstteki satırların üst kenarlığını kaldır */
  border-top: none;
}
.lined tr:last-child td {
  border-bottom: none;
  /* text-align: right; */
}

/* Opsiyonel: Tablonun en alt çizgisini kaldırmak için */
/* tr:last-child td {
  border-bottom: none;
} */

tr.ai {
  background: #e9fdc2;
}

.admin-container {
  display: none;
  height: 100%;
  overflow: auto;
  padding: 10px 10px 70px 10px;
}
.groupbyTel-container {
  max-height: 200px;
  overflow: auto;
  background: #ffffff;
  display: table-caption;
  padding: 10px;
  border-radius: 8px;
  margin: 15px 0;
  /* text-align: right; */
}
.telno {
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}
.fullpage-container {
  display: none;
  position: absolute;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--light-bgr);
  background: var(--wa-background);
  background: #e8f5e9;
  /* background: var(--wa-second-background); */
  padding: 10px 10px 100px 10px;
  min-height: 100vh;
  /* height: 100%; */
  overflow: auto;
  /* overflow: hidden; */
}
.closebutton {
  position: absolute;
  top: 10px;
  right: 7px;
  font-size: 1.8em;
  color: #df5151;
  cursor: pointer;
  /* filter: drop-shadow(0px 0px 2px black); */
  z-index: 2;
}

.summary-container {
  /* background: #ffffff; */
  /* padding: 10px 14px; */
  border-radius: 8px;
  /* display: inline-block; */
  margin-bottom: 15px;
  /* min-width: 85px; */
  /* clear: both; */
  font-size: 0.85em;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-flow: wrap;
  color: #5f5f5f;
}

.messages-container {
  /* background: #daf6a2; */
  /* background: white; */
  padding: 10px;
  border-radius: 8px;
}

.refreshbutton {
  cursor: pointer;
  font-size: 2em;
  padding: 10px;
  position: fixed;
  top: 50px;
  right: 0px;
  /* background: red; */
  height: 50px;
  width: 50px;
}

.summary-container > div {
  /* display: flex; */
  /* justify-content: space-between; */
  /* float: left; */
  /* margin: 5px 4px; */
  padding: 10px;
  /* display: inline-block; */
  background: white;
  border-radius: 6px;
  min-width: 12%;
}

.fullpage-container .content {
  padding: 40px 10px 50px 10px;
}

html {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button {
  border-radius: 8px;
  border: none;
  padding: 10px 20px;
  background: var(--blue);
  background: var(--dark-color);
  color: white;
  cursor: pointer;
  text-wrap-mode: nowrap;
  /* display: block; */
  margin: 5px;
  font-size: 1em;
  background-color: var(--color-button);
  color: white;
  border: none;
  border-radius: var(--radius-input);
  padding: 10px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  letter-spacing: 1px;
}
button:hover {
  background-color: var(--color-button-hover);
  background-color: #1ebe5a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.chart-container {
  max-height: 260px;
  /* margin: 0 0px 0 0px; */
  /* float: right; */
  margin: 15px 0 25px 0;
}

.retention {
  padding: 15px 10px 15px 10px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  margin-top: 15px;
  position: relative;
  /* float: right; */
  display: table-caption;
  display: inline-block;
  color: #5f5f5f;
}

.retention .title {
  position: absolute;
  top: -15px;
}

span#retentionResult {
  font-weight: bold;
  font-size: 1.1em;
}

.value {
  font-size: 1.65em;
  color: black;
  /* text-align: right; */
  font-weight: bold;
}

#dailyUsersLast,
#dailyNewUsersLast {
  color: lightslategrey;
}

.search-wrapper {
  position: relative;
  display: table;
  margin-left: 15px;
  padding: 20px 0 15px 0;
}
.search-wrapper i {
  position: absolute;
  right: 0;
  line-height: 150%;
  color: gray;
  padding: 8px;
  font-size: 1.3em;
  cursor: pointer;
}
input {
  padding: 10px 14px;
  margin: 5px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  /* border: none; */
  /* display: block; */
  width: 100%;
  max-width: 350px;
  /* background: white; */
}

#retentionResult {
  font-weight: bold;
}

.whatsappSimulation-container {
  padding: 10px;
}

textarea#text,
textarea#caption {
  margin: 5px 0;
  border-radius: 10px;
  border: 1px solid lightgray;
  padding: 8px;
  width: 100%;
  max-width: 350px;
  display: block;
}

.login-container {
  display: flex;
  justify-content: center;
  z-index: 5;
}

.login-wrapper {
  /* text-align: center; */
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 0;
}

button#loginButton {
  margin-top: 20px;
}

select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  /* border: none; */
  /* width: 100%; */
  max-width: 166px;
  margin: 5px 0;
}

button i {
  margin-right: 3px;
}

fieldset {
  border-radius: 10px;
  line-height: 1.8em;
  margin: 40px 3px;
  background: hsl(148.89deg 65.85% 91.96%);
  background: hsl(148 67% 92% / 1);
  box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.2);
  border: 1px solid lightgrey;
  border: none;
  background: var(--color-card);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-card);
  padding: 15px 10px 10px;
  width: auto;
}

legend {
  padding: 3px 10px 0;
  border-radius: 11px;
  border-top: 1px solid var(--color-input-border);
  color: var(--color-legend);
  font-weight: 500;
  background-color: white;
  font-size: medium;
  border-bottom: 1px solid #dadada;
  padding-bottom: 4px;
  /* letter-spacing: 0.2px; */
  margin-inline: 5px;
}
.login-wrapper input {
  max-width: 150px;
}

input#mediaUrl {
  min-width: 340px;
  margin-bottom: 10px;
}

/* Switch Container */

.switch {
  --switch-width: 120px;
  --switch-height: 34px;
  --switch-padding: 4px;
  --circle-diameter: 26px;
  position: relative;
  display: inline-block;
  width: var(--switch-width);
  height: var(--switch-height);
  margin: 15px 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: var(--switch-height);
  opacity: 0.7;
}

.slider:before {
  position: absolute;
  content: '';
  height: var(--circle-diameter);
  width: var(--circle-diameter);
  left: var(--switch-padding);
  bottom: var(--switch-padding);
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  z-index: 2;
}

.slider:after {
  position: absolute;
  content: 'Block';
  color: #666;
  font-size: 14px;
  font-family: Arial, sans-serif;
  left: 50%;
  top: 50%;
  /* left: 53px; */
  transform: translate(-50%, -50%);
  transition: 0.4s;
  white-space: nowrap;
}

input:checked + .slider {
  background-color: #ff4444;
  opacity: 1;
}

input:checked + .slider:before {
  transform: translateX(
    calc(
      var(--switch-width) - var(--circle-diameter) - 2 * var(--switch-padding)
    )
  );
}

input:checked + .slider:after {
  content: 'Blocked';
  color: white;
}

.slider:hover {
  opacity: 0.9;
}
/* Switch Container - end */

fieldset table {
  border: none;
  background: none;
}

fieldset input {
  width: 100%;
  max-width: 300px;
  min-width: 45px;
}
fieldset input[type='radio'],
fieldset input[type='checkbox'] {
  width: auto;
  max-width: 300px;
}

textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 5px 10px;
  line-height: 1.5em;
}

.logout-button {
  cursor: pointer;
  /* font-size: 2em; */
  /* padding: 10px 5px; */
  /* position: fixed; */
  top: 0px;
  right: 0px;
  /* background: yellow; */
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#customers-page button {
  float: right;
  margin-right: 30px;
}

a {
  text-decoration: none;
  /* color: green; */
  color: inherit;
}

.arrowLink {
  color: green;
  cursor: pointer;
}

.login-info {
  text-align: right;
  /* padding: 5px 5px 10px 5px; */
  /* background: var(--dark-background-color); */
  color: var(--primary-color);
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: flex-end;
  /* height: 100%; */
}

#app-container {
  height: 100%;
  /* height: auto; */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}

.menu-content > div {
  height: 100%;
  /* overflow: visible; */
  overflow: auto;
}

.customers-table-container {
  height: 330px;
  margin-top: 15px;
}

/* STATES */

.screen-container {
  display: none;
}

[data-role=''] .login-info {
  display: none;
}

[data-role=''] .login-container {
  display: block;
}

[data-role='admin'] .admin-container,
[data-role='admin'] .admin {
  display: block;
}

[data-role='sale'] .sale-container,
[data-role='sale'] .sale {
  display: block;
}

/* owner or staff */
[data-role='owner'] .customer-owner-container,
[data-role='owner'] .owner {
  display: block;
}
[data-role='staff'] .customer-staff-container,
[data-role='staff'] .staff {
  display: block;
}

.topbar {
  height: var(--topbar-height);
  /* background: var(--dark-color); */
  display: flex;
  justify-content: space-between;
  font-size: 1.3em;
  align-items: center;
  background-color: var(--color-topbar);
  color: #fff;
  /* backdrop-filter: blur(6px); */
}

.topbar .right {
  color: black;
  font-size: 1.1rem;
}

.menu a.active {
  font-weight: bold;
  font-size: 1.1em;
  /* text-decoration: underline; */
}

.customers-table-container th,
.customers-table-container td {
  font-size: 1.1rem;
  padding: 8px 6px;
  border-bottom: 1px solid #c7c7c7;
}

.customers-table-container th {
  text-transform: capitalize;
}

.edit-button {
  cursor: pointer;
}

.icon-button {
  color: #21aa61;
  /* background: green; */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  cursor: pointer;
}
.add-item {
  color: #21aa61;
  font-size: 1.9em;
}
.remove-item {
  color: var(--red);
}

#update-staff-form input {
  font-weight: bold;
  font-size: 14px;
}

.menu-content {
  height: 100%;
  overflow: auto;
  /* background: red; */
  padding-bottom: 50px;
}

.login-wrapper fieldset {
  padding: 10px 25px;
}

.menu {
  background: var(--wa-background);
  background: var(--primary-color);
  clear: both;
  margin: -10px -10px 0 -10px;
  color: white;
  padding: 13px 30px;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
}

.flex-row {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e4e4e4;
}

fieldset h3 {
  margin-bottom: 0.3em;
  color: green;
}
