/* Prepare fonts */
@font-face {
    font-family: "poppins-regular";
    src:
        url("../fonts/Poppins-Regular.woff2") format("woff2"),
        url("../fonts/Poppins-Regular.woff") format("woff");
}

@font-face {
    font-family: "poppins-bold";
    src:
        url("../fonts/Poppins-Bold.woff2") format("woff2"),
        url("../fonts/Poppins-Bold.woff") format("woff");
}

@font-face {
    font-family: "poppins-semibold";
    src:
        url("../fonts/Poppins-SemiBold.woff2") format("woff2"),
        url("../fonts/Poppins-SemiBold.woff") format("woff");
}

@font-face {
    font-family: "poppins-medium";
    src:
        url("../fonts/Poppins-Medium.woff2") format("woff2"),
        url("../fonts/Poppins-Medium.woff") format("woff");
}

/* Prepare variables */
:root {
    /* Fonts */
    --font-primary-regular: "poppins-regular";
    --font-primary-bold: "poppins-bold";
    --font-primary-semibold: "poppins-semibold";
    --font-primary-medium: "poppins-medium";

    /* Colors  */
    --primary-color: #fc5a15;
    --primary-hover: #cd450b;
    --border-color: #cbced4;

    --light-orange: #ff7a45;
    --white: #fff;
    --gray: #717182;
    --blue: #155dfc;
    --red: #ff0000;
    --gray-bg: #f5f5f570;

    /* 
  --foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --border: rgba(0, 0, 0, 0.1);
  --input-background: #f3f3f5; -- this one
  --switch-background: #cbced4;
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --sidebar-foreground: #1a1a1a;
  --sidebar-accent: #f5f5f5; -- this one
  --sidebar-border: #e5e5e5; */
}

/* CSS reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin-block-end: 0;
}

ul,
ol {
    list-style: none;
}

body {
    font-family: var(--font-primary-regular);
    min-height: 100vh;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

textarea:not([rows]) {
    min-height: 10em;
}

:target {
    scroll-margin-block: 5ex;
}

/* Common CSS */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.bold-font {
    font-family: var(--font-primary-bold);
}

.semibold-font {
    font-family: var(--font-primary-semibold);
}

.medium-font {
    font-family: var(--font-primary-medium);
}

.h-100dvh {
    height: 100dvh;
}

.h-fit-available {
    height: -webkit-fill-available;
}

.grey-text {
    color: var(--gray);
}

.red-text {
    color: var(--red);
}

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

.img_overlay {
    position: relative;
    overflow: hidden;
}

.img_overlay:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background: var(--primary-color);
    background: transparent;
    background: #fc5a150d;
    z-index: 2;
}

.password-toggle-btn {
    position: absolute;
    right: 5px;
    top: 54%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6c757d;
}
    
.field input {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 13px 10px;
    width: 100%;
}

.field label {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
    padding: 0 4px;
    transition:
        top 0.18s ease,
        font-size 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 13px;
    background-color: var(--white);
    color: var(--black);
}

/* Special Css */
.auth-wrapper {
    max-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
}

.auth-wrapper .auth-wrapper_content {
    height: 100dvh;
    overflow-y: scroll;
    width: 100%;
    gap: 55px;
}

.sidebar {
    max-width: 290px;
    width: 100%;
}

.sidebar .sidebar-content {
    height: 70%;
    overflow-y: scroll;
}

.sidebar-nav .nav-link.active {
    background: var(--primary-color);
    border-radius: 8px;
    color: var(--white);
}

.image_profile_sidebar {
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    max-width: 60px;
}

.image_profile_sidebar .initials-avatar {
    background: var(--blue);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    align-content: center;
    text-align: center;
    font-size: 1.2rem;
    font-family: var(--font-primary-medium);
    color: var(--white);
}

.content-side {
    max-height: 100dvh;
    overflow-y: scroll;
}

.table-container {
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    margin-top: 2em;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal__content {
    border-radius: 20px;
    border: 1px solid rgba(66, 75, 84, 0.1);
    background: #fafafa;
    padding: 40px;
    width: 90%;
    max-width: 820px;
    max-height: 90vh;
    animation: slideUp 0.3s ease;
    position: relative;
    overflow-y: scroll;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    transition: background-color 0.3s;
    padding: 0;
    z-index: 2;
}

.custom-pagination {
    margin: 20px auto;
}

.custom-pagination .pagination-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    justify-content: center;
}

.input-container .remove-btn{
    position: absolute;
    inset: 0 12px 0 auto;
}

/* .backoffice-wrapper{

} */

/* .sidebar{
  position: relative;
    max-height: 100vh;
    height: 100vh;
    width: 300px;
    transition: width 0.3s ease;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--light-orange) 0%, var(--primary-color) 60%);
}

.sidebar .toggle_nav{
  position: absolute;
  top: 25px;
  right: -30px;
  background: var(--white);
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

.sidebar:not(.collapsed) .toggle_nav img {
    transform: rotate(180deg);
}


.sidebar-scroll{
      display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-nav{
  overflow: scroll;
    max-height: 380px;
} */

/* Hover effects */
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-color);
}

/* Focus styles */
.field input:focus-visible {
    border-color: transparent;
    outline: 1px solid var(--primary-color);
}

/* Scroll style */
::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar {
    width: 5px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Table Filters ───────────────────────────────────────────────── */

.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input {
    width: 100%;
    height: 30px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 0 28px 0 10px;
    font-size: 12px;
    font-family: var(--font-primary-regular);
    background: #fff;
    color: #424b54;
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: var(--primary-color);
}

.filter-icon {
    position: absolute;
    right: 9px;
    color: #aaa;
    pointer-events: none;
    flex-shrink: 0;
}

.filter-select {
    width: 100%;
    height: 30px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 0 10px;
    font-size: 12px;
    font-family: var(--font-primary-regular);
    background: #fff;
    color: #424b54;
    outline: none;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.2s;
}

.filter-select:focus {
    border-color: var(--primary-color);
}

/* ── Custom Pagination ───────────────────────────────────────────── */

.custom-pagination {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.pagination-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: 14px;
    font-family: var(--font-primary-medium);
    color: #424b54;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
    text-decoration: none;
}

.pagination-link:hover {
    background-color: rgba(var(--primary-color-rgb, 252, 90, 21), 0.1);
    color: var(--primary-color);
}

.pagination-item.active .pagination-link {
    background-color: var(--primary-color);
    color: #fff;
    font-family: var(--font-primary-bold);
    pointer-events: none;
}

.pagination-item.disabled .pagination-link {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.pagination-link.prev-next {
    color: var(--primary-color);
    min-width: 32px;
}

.pagination-link.dots {
    cursor: default;
    letter-spacing: 1px;
}


.toggle {
	 cursor: pointer;
	 display: inline-block;
}
 .toggle-switch {
	 display: inline-block;
	 background: #ccc;
	 border-radius: 16px;
	 width: 58px;
	 height: 32px;
	 position: relative;
	 vertical-align: middle;
	 transition: background 0.25s;
}
 .toggle-switch:before, .toggle-switch:after {
	 content: "";
}
 .toggle-switch:before {
	 display: block;
	 background: linear-gradient(to bottom, #fff 0%, #eee 100%);
	 border-radius: 50%;
	 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
	 width: 24px;
	 height: 24px;
	 position: absolute;
	 top: 4px;
	 left: 4px;
	 transition: left 0.25s;
}
 .toggle:hover .toggle-switch:before {
	 background: linear-gradient(to bottom, #fff 0%, #fff 100%);
	 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
 .toggle-checkbox:checked + .toggle-switch {
	 background: var(--primary-color);
}
 .toggle-checkbox:checked + .toggle-switch:before {
	 left: 30px;
}
 .toggle-checkbox {
	 position: absolute;
	 visibility: hidden;
}
 .toggle-label {
	 margin-left: 5px;
	 position: relative;
	 top: 2px;
}
 

/* ── Media queries ───────────────────────────────────────────────── */
@media (min-width: 768px) {
    .auth-wrapper .img-fluid {
        max-height: 100dvh;
    }
}
