:root {
    /* ================= COLORS ================= */

    /* Background */
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --bg-hover: #3b465a;
    --bg-secondary: #0e182f;
    --bg-20-white: #ffffff33;
    --bg-10-white: #ffffff1a;
    --bg-green-sensitivity: #34d399;
    --bg-blue-sensitivity: #60a5fa;
    --bg-violet-sensitivity: #8b5cf6;
    --bg-btn-violet: #774aff;
    --bg-nuteral: #ffffff33;
    --bg-medium: #334155;
    --bg-badge-danger: #fb3737;
    --bg-green-dark: #01524e;
    --bg-danger-dark: #5b2838;
    --bg-light-gray: #f7f8fc1a;
    --bg-light-blue: #3b82f6;
    /*table outer card */
    --bg-outer-card: #162340;
    /* Borders */
    --border-dark: #1e293b;
    --border-light: #475569;
    --border-medium: #334155;
    --border-strong: #64748b;
    --border-white: #fff;
    --border-40-white: #ffffff66;
    --border-6-white: #ffffff0f;
    --border-gray: #dfe1e6;
    --border-10-natural-gray: #e6e6e61a;
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-green: #007e57;
    --text-theme-black: #0e1525;
    --text-70-white: #ffffffb2;
    --text-insight: #f1f5f9;
    /* ================= BRAND ================= */

    --color-primary: #ef4444;
    /* red */
    --color-success: #10b981;
    /* green */
    --color-warning: #f59e0b;
    --color-success-100: #d1fae5;
    --color-success-600: #059669;

    /* ================= BUTTONS ================= */

    --btn-primary-bg: linear-gradient(180deg, #ff3b3b, #c40000);
    --btn-logout-bg: #991b1b66;
    --btn-secondary-bg: #00b662;
    --btn-neutral-bg: #ffffff33;

    /* ================= FORM ================= */

    --input-bg: #334155;
    --input-border: #ffffff66;
    --input-placeholder: #94a3b8;
    --input-focus: #10b981;
    --input-checked: #007e57;
    --input-border-white: #fff;
    /* ================= FONT ================= */

    --font-sm: 14px;
    --font-md: 16px;
    --font-lg: 18px;
    --font-xl: 20px;

    /* weight */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extra-bold: 800;
    --z-black: 900;

    --history-panel-bg: #18233a;
    --history-panel-border: rgba(148, 163, 184, 0.16);
    --history-muted-soft: #a9b4c5;
    --history-green: #00c9a7;
    --history-teal-bg: rgba(0, 201, 167, 0.13);
    --history-blue-bg: rgba(59, 130, 246, 0.23);
    --history-pink: #ff5db1;
    --history-pink-bg: rgba(255, 93, 177, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* im-fell-fonts */
.im-fell-french-canon-regular {
    font-family: "IM Fell French Canon", serif;
    font-weight: var(--fw-regular);
    font-style: normal;
}

.im-fell-french-canon-regular-italic {
    font-family: "IM Fell French Canon", serif;
    font-weight: var(--fw-regular);
    font-style: italic;
}

/* inter-fonts */
.inter {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: var(--fw-regular);
    font-style: normal;
}

/* inter-display-fonts */
.inter-display {
    font-family: "Inter var";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(font-files/InterVariable.woff2?v=4.1) format("woff2");
}

body {
    font-family: "Inter";
    font-weight: var(--fw-regular);
    color: var(--text-primary);
    background-color: var(--bg-main);
    /*var(--primary-white)*/
}

a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
ul,
li {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-weight: var(--fw-regular);
}

ul,
li {
    list-style: none;
}

a,
a:active,
a:hover,
a:focus {
    text-decoration: none;
}

.form-error {
    color: var(--color-primary) !important;
    font-size: var(--font-sm);
}

/*reusable btn class  */
.btn-primary-custom {
    background-color: var(--btn-primary-bg);
    color: var(--text-primary);
    border-radius: 6px;
}

.btn-success-custom {
    background-color: var(--btn-secondary-bg);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
}

.btn-neutral-custom {
    background-color: var(--btn-neutral-bg);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
}

/* reusable form elements */

/* form grp label desgin */
.form-group label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* reusable input */
.input-style {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 10px;
    border-radius: 8px;
    font-size: var(--font-sm);
    color: var(--text-primary);
}

.input-style:focus {
    outline: none;
    /* remove default browser outline */
    border-color: var(--input-focus);
    /* box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); soft green glow */
}

.form-group .input-style::placeholder {
    font-size: var(--font-sm);
    color: var(--input-placeholder);
}

.form-group small {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}
.sub-text {
    font-size: 10px;
    color: var(--text-primary);
}
/*file upload feild*/

/* custom upload img */
/* FILE UPLOAD */
.file-upload {
    width: 100%;
    cursor: pointer;
}

.file-upload-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--bg-medium);
    border: 1px dashed var(--input-border-white);
    border-radius: 8px;

    padding: 10px 12px;
    color: var(--text-secondary);

    transition: 0.3s ease;
}

.file-upload-box:hover {
    border-color: var(--input-focus);
    background: #3b465a;
}

/* LEFT SIDE */
.upload-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 16px;
}

.upload-text {
    font-size: 13px;
}

/* FILE NAME */
.file-name {
    font-size: 12px;
    color: var(--input-placeholder);
}
.icon-margin {
    margin-top: 30px;
}

/* reusable date feild code */
.date-input-wrapper {
    position: relative;
}

.date-input-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 10px; /* space for icon */
}

/* Icon styling */
.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Hide default browser icon (optional) */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}
/* end reusable  date field*/

/* scrollbar-improve-start */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px var(--bg-main);
    border-radius: 2px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--bg-20-white);
    border-radius: 2px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-20-white);
}
/* scrollbar-improve-end */

/* custom-dropdown-start */
.custom-dropdown-toggle {
    background: var(--bg-20-white);
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 20px;
    font-weight: var(--fw-regular);
    position: relative;
    transition: all 0.7s ease-in-out;
}
.custom-dropdown-toggle::after {
    position: absolute;
    right: 10px;
}
.custom-dropdown-options {
    background: #0f172a;
}
.custom-dropdown-options li {
    color: var(--text-primary);
    padding-block: 6px;
    padding-inline: 5px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    transition: all 0.7s ease-in-out;
}
.custom-dropdown-options li:hover {
    background: var(--bg-10-white);
}
/* custom-dropdown-end */

/* toggle-switch-start */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    transition: all 0.7s ease-in-out;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    background-color: var(--bg-main);
    border-radius: 34px;
    border: 0.5px solid var(--border-gray);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s;
    transition: all 0.7s ease-in-out;
}
.slider:hover {
    border-color: var(--color-success);
    transition: all 0.7s ease-in-out;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-primary);
    border-radius: 50%;
    transition: 0.3s;
    transition: all 0.7s ease-in-out;
}
.switch input:checked + .slider {
    background-color: var(--color-success);
}
.switch input:checked + .slider:before {
    transform: translateX(20px);
}
/* toggle-switch-end */

/* calendar-click-anywhere-open-calendar-start */
input[type="date"],
input[type="month"] {
    position: relative;
    transition: all 0.7s ease-in-out;
}
/* This targets the native calendar icon in Chrome/Edge/Safari */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
    cursor: pointer;
}
/* calendar-click-anywhere-open-calendar-end */

/* add-btn-start */
.add-btn {
    padding: 12px;
    border-radius: 8px;
    border: 0.5px solid var(--color-success);
    background-color: var(--bg-green-dark);
    font-size: var(--font-sm);
    font-weight: var(--fw-medium);
    line-height: 100%;
    color: var(--bg-green-sensitivity);
    transition: all 0.7s ease-in-out;
}
.add-btn:is(:hover, :focus, :focus-within, :active) {
    background-color: var(--color-success);
    color: var(--text-primary);
}
/* add-btn-end */

/* remove-btn-start */
.remove-btn {
    background-color: var(--bg-danger-dark);
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.remove-btn:hover {
    background-color: var(--color-primary);
    color: var(--text-primary);
}
/* remove-btn-end */

/* violet-btn */
.bg-btn-violet {
    background-color: var(--bg-btn-violet);
    color: var(--text-primary);
}

/* html-select-customize-start */
.html-select {
    background-color: var(--bg-10-white);
    color: var(--text-primary);
    border: 1px solid var(--bg-20-white);
    border-radius: 6px;
    /* spacing */
    padding: 8px 34px 8px 12px;
    /* arrow position improve */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* custom arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7.5l4.5 4.5 4.5-4.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;

    /* min-width: 70px; */
    cursor: pointer;
    outline: none;
}
.html-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}
/* html-select-customize-end */

/* pagination-start */
.pagination-wrapper {
    display: flex;
    justify-content: right;
    margin-top: 25px;
}
.custom-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-outer-card);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--border-medium);
}
/* Buttons */
.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(226, 232, 240, 0.08);
    transition: 0.2s ease;
}

/* Hover */
.page-btn:hover {
    background: var(--bg-medium);
    transform: translateY(-1px);
}

/* Active */
.page-btn.active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

/* Disabled */
.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Dots */
.page-dots {
    padding: 0 8px;
    color: var(--text-muted);
}
/* pagination-end */
