* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: #090909;
  color: #f5f5f5;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app {
  min-height: 100vh;
  display: flex;
}


/* SIDEBAR */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;

  width: 230px;

  background: #0d0d0d;
  border-right: 1px solid #202020;

  display: flex;
  flex-direction: column;

  padding: 24px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  height: 48px;

  padding: 0 8px;

  font-weight: 700;
  font-size: 15px;
  letter-spacing: 3px;
}

.brand-mark {
  width: 30px;
  height: 30px;

  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: #050505;

  font-weight: 800;
  letter-spacing: 0;
}

nav {
  margin-top: 36px;

  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  height: 43px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 13px;

  border-radius: 8px;

  color: #777;
  text-decoration: none;

  font-size: 13px;
  font-weight: 500;

  transition: 0.15s;
}

.nav-item:hover {
  background: #151515;
  color: #ccc;
}

.nav-item.active {
  background: #191919;
  color: #fff;
}

.nav-icon {
  width: 18px;
  text-align: center;
  color: #888;
}

.nav-item.active .nav-icon {
  color: #fff;
}

.sidebar-bottom {
  margin-top: auto;

  border-top: 1px solid #202020;

  padding: 20px 8px 0;

  display: flex;
  align-items: center;
  gap: 11px;
}

.user-avatar {
  width: 32px;
  height: 32px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #202020;

  font-size: 12px;
  font-weight: 700;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
}

.user-role {
  margin-top: 3px;
  color: #666;
  font-size: 10px;
}


/* MAIN */

.main {
  width: calc(100% - 230px);
  margin-left: 230px;
  min-height: 100vh;
}

.topbar {
  height: 86px;

  padding: 0 32px;

  border-bottom: 1px solid #202020;

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

  background: #0b0b0b;
}

.topbar h1 {
  margin: 0;

  font-size: 20px;
  font-weight: 600;
}

.topbar p {
  margin: 5px 0 0;

  color: #666;
  font-size: 11px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 22px;

  font-size: 11px;
  color: #888;
}

.live {
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #5dd889;
  box-shadow: 0 0 8px rgba(93,216,137,.45);
}

.admin {
  padding-left: 22px;
  border-left: 1px solid #262626;
}


/* CONTENT */

.content {
  padding: 28px 32px 60px;
}


/* FILTERS */

.filters {
  min-height: 82px;

  display: flex;
  align-items: flex-end;
  gap: 12px;

  padding: 15px;

  background: #0e0e0e;

  border: 1px solid #202020;
  border-radius: 10px;
}

.filter {
  width: 190px;
}

.filter label {
  display: block;

  margin: 0 0 8px 2px;

  color: #6f6f6f;

  font-size: 9px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: .7px;
}

.filter input,
.filter select {
  width: 100%;
  height: 37px;

  padding: 0 11px;

  border: 1px solid #282828;
  border-radius: 7px;

  outline: none;

  background: #141414;
  color: #d7d7d7;

  font-size: 11px;
}

.filter input:focus,
.filter select:focus {
  border-color: #444;
}

.reset-btn {
  height: 37px;

  padding: 0 18px;

  border: 1px solid #2a2a2a;
  border-radius: 7px;

  background: #181818;
  color: #aaa;

  font-size: 11px;

  cursor: pointer;
}

.reset-btn:hover {
  background: #202020;
  color: white;
}


/* STATS */

.stats {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 12px;

  margin-top: 16px;
}

.stat-card {
  height: 94px;

  padding: 19px;

  background: #0e0e0e;

  border: 1px solid #202020;
  border-radius: 10px;
}

.stat-label {
  display: block;

  margin-bottom: 10px;

  color: #666;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: .7px;
}

.stat-card strong {
  font-size: 25px;
  font-weight: 500;

  letter-spacing: -.5px;
}


/* TABLE */

.table-card {
  margin-top: 16px;

  background: #0e0e0e;

  border: 1px solid #202020;
  border-radius: 10px;

  overflow: hidden;
}

.table-header {
  height: 73px;

  padding: 0 19px;

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

  border-bottom: 1px solid #202020;
}

.table-header h2 {
  margin: 0;

  font-size: 13px;
  font-weight: 600;
}

.table-header p {
  margin: 5px 0 0;

  color: #666;
  font-size: 10px;
}

.table-status {
  color: #5e5e5e;
  font-size: 9px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;

  border-collapse: collapse;
  table-layout: fixed;
}

thead {
  background: #111;
}

th {
  height: 39px;

  padding: 0 14px;

  text-align: left;

  color: #555;

  font-size: 8px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: .7px;
}

td {
  height: 53px;

  padding: 0 14px;

  border-top: 1px solid #191919;

  color: #a9a9a9;

  font-size: 10px;
}

tbody tr {
  transition: background .12s;
}

tbody tr:hover {
  background: #131313;
}

th:nth-child(1),
td:nth-child(1) {
  width: 55px;
  color: #555;
}

th:nth-child(2),
td:nth-child(2) {
  width: 100px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 170px;
}

th:nth-child(5),
td:nth-child(5) {
  width: 90px;
}

th:nth-child(6),
td:nth-child(6) {
  width: 130px;
}

th:nth-child(7),
td:nth-child(7) {
  width: 100px;
}


/* BADGES */

.country-badge {
  display: inline-flex;
  align-items: center;

  padding: 5px 8px;

  border: 1px solid #282828;
  border-radius: 5px;

  background: #151515;

  color: #bbb;

  font-size: 9px;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;

  min-height: 23px;

  padding: 0 9px;

  border-radius: 5px;

  border: 1px solid #292929;

  background: #171717;

  color: #aaa;

  font-size: 9px;
  font-weight: 500;
}

.status-deposit {
  color: #75d99a;
  border-color: rgba(117,217,154,.20);
  background: rgba(117,217,154,.06);
}

.status-callback {
  color: #d2b86f;
  border-color: rgba(210,184,111,.20);
  background: rgba(210,184,111,.06);
}

.status-no-answer {
  color: #858585;
}

.status-low-potential {
  color: #9d89d9;
  border-color: rgba(157,137,217,.18);
  background: rgba(157,137,217,.05);
}

.status-wrong-number,
.status-wrong-info,
.status-not-interested {
  color: #cf7777;
  border-color: rgba(207,119,119,.18);
  background: rgba(207,119,119,.05);
}

.status-reassign,
.status-initial-call {
  color: #73a8d8;
  border-color: rgba(115,168,216,.18);
  background: rgba(115,168,216,.05);
}

.ftd-yes {
  color: #70d696;
  font-weight: 600;
}

.ftd-no {
  color: #555;
}


/* EMPTY */

.empty-state {
  display: none;

  padding: 60px;

  text-align: center;

  color: #555;

  font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

  .sidebar {
    width: 190px;
  }

  .main {
    width: calc(100% - 190px);
    margin-left: 190px;
  }

  .filters {
    flex-wrap: wrap;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* STATUS TABLE COLUMN SIZING */

table {
  table-layout: auto;
}

th:nth-child(1),
td:nth-child(1) {
  width: 55px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 90px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 190px;
  max-width: 190px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 180px;
}

th:nth-child(5),
td:nth-child(5) {
  width: 90px;
}

th:nth-child(6),
td:nth-child(6) {
  width: 130px;
}

th:nth-child(7),
td:nth-child(7) {
  width: 110px;
}

th,
td {
  white-space: nowrap;
}


/* CLEAN CRM SELECTS */

.filter select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: #141414;
  background-image:
    linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 15px,
    calc(100% - 11px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;

  color: #d7d7d7;

  border: 1px solid #282828;
  border-radius: 7px;

  padding: 0 36px 0 12px;

  cursor: pointer;

  box-shadow: none;
  outline: none;
}

.filter select:hover {
  background-color: #181818;
  border-color: #333;
}

.filter select:focus {
  background-color: #181818;
  border-color: #404040;
  box-shadow: 0 0 0 1px #252525;
}

.filter select option {
  background: #141414;
  color: #d7d7d7;
}

/* DATE */

.filter input[type="date"] {
  color-scheme: dark;

  background: #141414;
  border: 1px solid #282828;

  color: #d7d7d7;

  box-shadow: none;
  outline: none;
}

.filter input[type="date"]:hover {
  background: #181818;
  border-color: #333;
}

