/*!
Theme Name: Sting
Theme URI: https://www.notion.so/luuk-arends/Sting-v1-0-1-2ae58397e72b8002af4ac6f01e333a49?source=copy_link
Author: Luuk Arends
Author URI: https://luukarends.nl
Description: Sting is a lightweight, flexible WordPress theme that cuts through the noise. Custom-built for speed and adaptability, every line of code serves a purpose. Clean, precise, and ready to shape around your vision.
Version: 1.0.1
Tested up to: 8.3
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sting
*/

/* Root */

:root {
  --orange: #ff4f1e;
  --lightorange: #ffede9;
  --green: #024742;
  --lightgreen: #e6edec;
  --red: #f63f5e;
  --lightred: #feecef;
  --lightgrey: #f5f5f5;
  --lightbeige: #faf9f5;
  --black: #000000;
  --white: #ffffff;
}

/* Fonts */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-v4-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-v4-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-v4-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Body */

body {
  font-family:
    "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--green);
}

/* Anchor */

a {
  color: var(--orange);
  text-decoration: none;
  transition: all ease 0.6s;
}

/* Layout */

.dashboard-layout {
  display: flex;
}

/* Headings */

.title {
  font-size: 1.75rem;
}

/* Table */

tbody,
td,
tfoot,
th,
thead,
tr {
  font-weight: 400;
  font-size: 0.925rem;
}

.table > :not(caption) > * > * {
  color: var(--green);
}

/* Columns */

.columns-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.columns-2 {
  grid-template-columns: 1fr 1fr;
}

.columns-1-3 {
  grid-template-columns: 1fr 3fr;
}

.columns-3-1 {
  grid-template-columns: 3fr 1fr;
}

/* Buttons */

.btn {
  background-color: var(--lightgrey);
  border-color: var(--lightgrey);
  color: var(--black);
}

.btn-primary {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* Backgrounds */

.bg-lightbeige {
  background-color: var(--lightbeige);
}

/* Login */

.login {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 540px;
}

.login-wrapper .logo {
  margin-bottom: 1.5rem;
}

.login-wrapper a {
  font-size: 0.85rem;
}

.form-grid {
  gap: 1rem;
}

.form-grid .btn {
  align-self: start;
}

/* Navbar */

.nav-left {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1.5rem;
  min-width: 250px;
  height: 100%;
  min-height: 100vh;
  border-right: 1px solid var(--lightgrey);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dropdown-select {
  width: 100%;
}

.btn-select,
.dropdown-select .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  width: 100%;
}

.btn-select .favicon,
.dropdown-select .dropdown-item .favicon {
  border-radius: 0.5rem;
  width: 25px;
  height: 25px;
}

.nav-item {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  transition: all ease 0.6s;
}

.nav-item .bi {
  font-size: 1.05rem;
  transition: all ease 0.6s;
}

.nav-item:hover .bi,
.nav-item.active .bi {
  color: var(--orange);
}

.nav-user {
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  border-radius: 50%;
}

.user-email {
  opacity: 0.5;
  font-size: 0.75rem;
}

/* Content */

.dashboard-content {
  width: 100%;
  padding: 3rem;
}

.content-header {
  margin-bottom: 1.5rem;
}

.modal-dialog {
  max-width: 768px;
}

/* Widgets */

.content-widgets {
  display: grid;
  gap: 1rem;
}

.widget {
  padding: 1.5rem;
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
}

.widget-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.icon-red {
  color: var(--red);
  background-color: var(--lightred);
}

.icon-green {
  color: var(--green);
  background-color: var(--lightgreen);
}

.icon-orange {
  color: var(--orange);
  background-color: var(--lightorange);
}

.widget-number {
  font-size: 2rem;
  font-weight: 600;
}

.widget-compare {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
}

.widget-compare .bi {
  font-size: 1.25rem;
}

.compare-negative {
  color: var(--red);
}

.compare-positive {
  color: var(--green);
}

.widget canvas {
  width: 100%;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.widget-header a {
  font-size: 0.925rem;
}

.widget-has-header .widget-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.widget-descr {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
}

.widget-body {
  display: grid;
  gap: 1rem;
}

.source-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.source-rank {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lightgrey);
  border-radius: 0.375rem;
}

.source-count {
  font-size: 0.85rem;
  margin-left: auto;
}

/* Filter */

.content-filter {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr 2fr 1fr;
  gap: 1rem;
  align-items: center;
}

.filter-date,
.filter-value {
  display: flex;
  align-items: center;
}

/* Forms */

.form-settings {
  display: grid;
  gap: 1rem;
}

.form-settings label {
  font-size: 0.925rem;
}

.form-item_2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-item_3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.form-item_4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
}

.form-settings input[type="color"] {
  height: 25px;
  width: 25px;
  border-radius: 50%;
  padding: 0;
}

.form-text {
  color: var(--orange);
}

/* Entries */

.is-abandoned td {
  background-color: var(--lightred);
}

.status-badge,
.type-badge {
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: #ffffff;
}

.status-abandoned {
  background-color: var(--red);
}

.status-reminded {
  background-color: #ffbc60;
}

.status-recovered {
  background-color: #00765d;
}

.type-cart {
  background-color: #ac90c8;
}

.type-form {
  background-color: #2f7294;
}

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

.table .dropdown-menu {
  font-size: 0.925rem;
}

/* Utilities */

.w-40px {
  width: 40px;
}
.w-80px {
  width: 80px;
}

.custom-progress-bar {
  height: 5px;
}

.custom-progress-fill {
  background-color: #e84c2b;
}

.grid-span-all {
  grid-column: 1 / -1;
}

.cursor-pointer {
  cursor: pointer;
}

.form-label {
  margin-bottom: 0.25rem;
}

.form-settings .form-control {
  background-color: #fcfcfc;
}
