/*
Theme Name: Twenty Twenty-four Child
Theme URI: http://example.com/twenty-twenty-four-child/
Description: Twenty Twenty-four Child Theme
Author: Your Name
Author URI: https://wordpress.org
Version: 1.1.0
*/

/* Add your custom styles here */
@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/SourceSans3-Regular.woff2") format("woff2"),
    url("./fonts/SourceSans3-Regular.woff") format("woff"),
    url("./fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/SourceSans3-Medium.woff2") format("woff2"),
    url("./fonts/SourceSans3-Medium.woff") format("woff"),
    url("./fonts/SourceSans3-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/SourceSans3-SemiBold.woff2") format("woff2"),
    url("./fonts/SourceSans3-SemiBold.woff") format("woff"),
    url("./fonts/SourceSans3-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/SourceSans3-Bold.woff2") format("woff2"),
    url("./fonts/SourceSans3-Bold.woff") format("woff"),
    url("./fonts/SourceSans3-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --left-sidebar: 280px;
  --content-color: #0f0f0f;
  --bg-light-dark: #1a1a1a;
  --border-color: #292929;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--content-color);
  background-color: var(--wp--preset--color--white);
  font-family: "Source Sans 3";
}
.container {
  max-width: 1440px;
  padding: 0 15px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-sidebar {
  background-color: var(--bg-light-dark);
  height: 100vh;
  left: 0;
  max-width: var(--left-sidebar);
  padding-top: 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.dashboard-sidebar .sidebar-menu-items {
  display: flex;
  flex-direction: column;
}

.dashboard-sidebar ul {
  list-style: none;
}
.sidebar-menu-items ul > li > a {
  display: flex;
  align-items: center;
  color: var(--wp--preset--color--white);
  background-color: var(--bg-light-dark);
  border-bottom: 1px solid var(--border-color);
  font-size: 18px;
  gap: 10px;
  line-height: 1.2;
  padding: 15px;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out;
}

.sidebar-menu-items ul > li > a.active,
.sidebar-menu-items ul > li > a:hover {
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
}

.sidebar-menu-items ul > li > a.logout:hover {
  background-color: rgba(255, 66, 66, 0.729);
}

.backoffice-dashboard {
  padding: 75px 15px 60px;
}

.sidebar-toggle .toggle-btn {
  background: transparent;
  box-shadow: none;
  border: none;
}
.sidebar-logo {
  text-align: center;
  margin: 20px 0 15px;
}
img.dashboard-logo {
  width: 40px;
  object-fit: contain;
}
.dashboard-main-head {
  font-size: 32px;
  font-weight: 700;
  line-height: 44px;
  margin-bottom: 30px;
}
.dashboard-sidebar .toggle-btn.close-icon {
  display: none;
}
.bo-head .dashboard-main-head {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.cards-grid-layout {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
}
.dashboard-cards a {
  text-decoration: unset;
  background-color: var(--content-color);
  border: 1px solid var(--border-color);
  color: var(--wp--preset--color--white);
  border-radius: 20px;
  cursor: pointer;
  padding: 40px 30px;
  transition: background-color 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dashboard-cards a:hover {
  background-color: var(--bg-light-dark);
}
.dashboard-cards .card-title {
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
  margin-bottom: 30px;
}
.card-numbers {
  font-size: 40px;
  line-height: normal;
  font-weight: 600;
}
.dashboard-entry-table {
  margin-top: 50px;
  width: 100% !important;
}
.backoffice-dashboard .dt-scroll-head {
  display: none;
}
.backoffice-dashboard .dt-container .dt-layout-row:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 20px;
  gap: 15px;
  justify-content: space-between;
  line-height: normal;
}
.backoffice-dashboard
  .dt-container
  .dt-layout-row:first-child
  .dt-length
  select {
  margin-right: 20px;
  outline: none;
  padding-left: 5px;
  width: 70px;
  font-size: 20px;
  line-height: normal;
  border: none;
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
}
.backoffice-dashboard .dt-container .dt-layout-row:first-child .dt-search {
  align-items: center;
  display: flex;
  gap: 10px;
}
.backoffice-dashboard
  .dt-container
  .dt-layout-row:first-child
  .dt-search
  .dt-input {
  border: 1px solid var(--border-color);
  border-radius: 40px;
  font-size: 16px;
  height: 35px;
  width: 100%;
  max-width: 280px;
  padding: 10px;
  outline: none;
}
table {
  border-collapse: collapse;
  caption-side: bottom;
}
table.dashboard-entry-table thead tr th {
  border-top: 1px solid var(--border-color);
  padding: 14px 5px;
  text-transform: capitalize;
  white-space: nowrap;
  text-align: left;
}
table.dashboard-entry-table tr td,
table.dashboard-entry-table tr th {
  border-bottom: 1px solid var(--border-color);
}
table.dashboard-entry-table thead tr th:first-child,
table.dashboard-entry-table tbody tr td:first-child {
  padding-left: 5px;
  padding-right: 5px;
}
table.dashboard-entry-table tbody tr td {
  padding: 5px;
}
.paging_full_numbers {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 30px;
}
.paging_full_numbers .dt-paging-button {
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--content-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-size: 16px;
  line-height: 17px;
  margin: 2px;
  padding: 2px;
  width: 30px;
  cursor: pointer;
}
.paging_full_numbers .dt-paging-button.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.paging_full_numbers .dt-paging-button.first,
.paging_full_numbers .dt-paging-button.last,
.paging_full_numbers .dt-paging-button.next,
.paging_full_numbers .dt-paging-button.previous {
  font-size: 24px;
  line-height: 30px;
  padding-bottom: 5px;
}

.paging_full_numbers .dt-paging-button.current,
.paging_full_numbers .dt-paging-button:hover {
  background-color: var(--content-color);
  color: var(--wp--preset--color--white);
  font-weight: 700;
}
.dt-info {
  font-size: 18px;
  line-height: 22px;
  text-align: center;
}

/* login form css */
.bo-wrapper.not-logged-in {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--content-color);
  color: var(--wp--preset--color--white);
}

.backoffice-login-form {
  background: var(--bg-light-dark);
  border-radius: 10px;
  margin: 0 auto;
  max-width: 600px;
  padding: 30px;
}
.login-form-title {
  font-size: 38px;
  line-height: 46px;
  margin-bottom: 40px;
  text-align: center;
}
.backoffice-login-form .form-field {
  margin-bottom: 30px;
}
.backoffice-login-form .input-label {
  display: block;
  font-size: 18px;
  line-height: 22px;
  margin-bottom: 8px;
}
.backoffice-login-form .input-label span {
  color: #e93b3b;
}

.backoffice-login-form .form-field input {
  outline: none;
  padding: 5px 10px;
  width: 100%;
  height: 45px;
  font-size: 20px;
  color: var(--content-color);
}
.btn-primary {
  font-size: 18px;
  font-weight: 600;
  color: var(--content-color);
  line-height: normal;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 10px;
  text-transform: uppercase;
  background-color: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--white);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 20px;
}
.btn-primary:hover {
  background-color: var(--content-color);
  color: var(--wp--preset--color--white);
}
.error-message {
  color: #e93b3b;
  margin-top: 10px;
}
.form-loader {
  display: block;
  margin: 0 auto 30px;
  width: 50px;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.filter-short-by {
  font-size: 20px;
  line-height: normal;
  font-weight: 500;
  margin-right: 16px;
}
.dashboard-filter-tabs select {
  border: 1px solid var(--border-color);
  border-radius: 40px;
  font-size: 18px;
  font-family: inherit;
  padding: 5px 25px 5px 15px;
  outline: none;
  color: var(--content-color);
  background: url(./icons/chevron-down.svg) no-repeat center right 10px;
  background-size: 12px;
  background-color: transparent;
  appearance: none;
}
.db-filter-topbar {
  justify-content: space-between;
  margin-bottom: 30px;
  row-gap: 25px;
}
.add-task-button {
  background-color: var(--content-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--wp--preset--color--white);
  font-size: 16px;
  line-height: normal;
  font-weight: 600;
  padding: 10px 25px 9px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.add-task-button:hover {
  background-color: var(--wp--preset--color--white);
  color: var(--content-color);
}
.add-task-button a {
  text-decoration: none;
  color: inherit;
}

.task-add-form label {
  display: inline-block;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  margin-bottom: 10px;
}
.task-add-form > div {
  margin-bottom: 25px;
}
.test-fieldset {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  color: var(--content-color);
  border: 1px solid #dddddd;
  padding: 5px 15px;
  height: 45px;
  outline: none;
  background-color: transparent;
}
.task-add-form textarea {
  resize: vertical;
  height: auto;
  padding: 15px 15px;
}
.task-add-form select {
  padding-right: 20px;
  background: url(./icons/chevron-down.svg) no-repeat center right 10px;
  background-size: 12px;
  appearance: none;
}
.task-add-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--content-color);
}
.form-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.form-checkbox label {
  margin-bottom: 0px !important;
}

@media (max-width: 849px) {
  .dashboard-sidebar {
    max-width: 100%;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    top: 0px;
    z-index: 999999;
  }
  .sidebar-logo {
    margin: 0;
  }
  .sidebar-logo .dashboard-logo {
    width: auto;
    max-height: 60px;
    object-fit: cover;
  }
  .dashboard-sidebar .sidebar-menu-items {
    position: fixed;
    left: 100%;
    right: 0;
    top: 85px;
    height: 100vh;
    transition: all 0.3s ease;
    background-color: var(--bg-light-dark);
    z-index: 10;
  }
  .sidebar-menu-items.expand {
    left: 0;
  }
  .cards-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .board-main-head {
    font-size: 28px;
    line-height: 38px;
  }
  .dashboard-cards .card-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .task-add-form label {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 6px;
  }
  .test-fieldset {
    height: 40px;
  }
}

@media (max-width: 576px) {
  .dashboard-cards {
    padding: 30px 20px;
  }
  .card-numbers {
    font-size: 34px;
  }
  .backoffice-dashboard .dt-container .dt-layout-row:first-child {
    font-size: 18px;
  }
  .backoffice-dashboard .dt-container .dt-layout-row:first-child .dt-end {
    flex-grow: 1;
  }
  .backoffice-dashboard
    .dt-container
    .dt-layout-row:first-child
    .dt-search
    .dt-input {
    max-width: unset;
    width: 100%;
  }
  .backoffice-login-form {
    padding: 15px 20px;
  }
  .login-form-title {
    font-size: 28px;
    line-height: 32px;
    margin-bottom: 20px;
  }
  .backoffice-login-form .form-field input {
    height: 35px;
    font-size: 16px;
  }
  .backoffice-login-form .form-field {
    margin-bottom: 15px;
  }
  .btn-primary {
    width: 100%;
    font-size: 16px;
    padding: 12px 10px 10px;
  }
  .form-loader {
    margin: 0 auto 15px;
    width: 30px;
  }

  .filter-short-by {
    font-size: 18px;
  }
  .dashboard-filter-tabs select {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cards-grid-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .flex-row {
    flex-direction: column;
    align-items: unset;
  }
}

@media (min-width: 850px) {
  .dashboard-sidebar .sidebar-menu-items {
    height: calc(100% - 130px);
  }
  .dashboard-sidebar .sb-footer {
    margin-top: auto;
    padding: 10px 0 0;
  }
  .dashboard-sidebar .sidebar-nav-list {
    padding: 20px 0;
  }
  .sidebar-menu-items a.logout {
    border-bottom: none;
  }
  .backoffice-dashboard {
    margin-left: auto;
    max-width: calc(100% - var(--left-sidebar));
    /* min-height: 100vh; */
    padding: 40px 40px 60px;
  }
  .dashboard-sidebar .sidebar-toggle {
    display: none;
  }
  .task-add-form {
    padding-top: 20px;
  }
}
