@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Covered+By+Your+Grace&display=swap");

:root {
    --primaryBg: #1a1a1a;
    @import url('file:///D:\01-Projects\EversoftCRM\CRMAdminPortal\assets\css\style.css');
    --primary: #1e90ff;
    --primaryHover: #63b3ff;
    --secondary: #f5f5f5;
    --accent: #4f46e5;
    --borderGray: #4f4f4f;
    --dark: #333333;
}

body .h-screen > aside#sidebar {
    width: 250px;
}

body .h-screen > main {
    width: calc(100% - 250px);
}

body,
body * {
    font-family: "Inter", sans-serif;
}

    body input {
        font-size: 15px;
    }

        body input::placeholder {
            font-size: 15px;
        }

[data-theme="dark"] {
    background-color: var(--primaryBg);
    color: #fff;
}

/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

input:-webkit-autofill {
    background-color: var(--dark) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--dark) inset !important;
    -webkit-text-fill-color: white !important; /* optional */
}

input:autofill {
    background-color: var(--dark);
}

.editable-field {
    max-width: 300px;
    border-bottom: 1px solid transparent;
}

    .editable-field:hover {
        border-color: #d1d5db;
    }

    .editable-field.editing {
        border-color: transparent;
    }

/* Custom checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    outline: none;
}

    input[type="checkbox"]:checked {
        background-color: #1e90ff;
        border-color: #1e90ff;
    }

        input[type="checkbox"]:checked::after {
            content: "✓";
            position: absolute;
            color: white;
            font-size: 12px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

    input[type="checkbox"]:hover {
        border-color: #1e90ff;
    }

.peer:checked ~ .peer-circle {
    background-color: var(--primary) !important;
}

    .peer:checked ~ .peer-circle > div {
        transform: translate(1.25rem, var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    }

.hover-card,
.active-card {
    border: 2px solid transparent !important;
}

    .hover-card:hover,
    .active-card {
        border-color: var(--primary) !important;
    }
/* active-btn */
.active-btn,
.tab-active {
    background-color: var(--primary) !important;
    color: white !important;
}

/* Progress bar  */
.progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    max-width: 100%;
    column-gap: 12px;
}

.progress-step {
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    height: 3px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
    position: relative;
    z-index: 3;
}

    .progress-step::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        border-radius: 2px;
        height: 3px;
        width: 0%;
        z-index: 2;
        transition: 0.4s ease;
        background-color: var(--primary);
    }

    .progress-step.active::after {
        width: 55%;
        transition: 0.4s ease;
    }

    .progress-step span {
        font-size: 14px;
        font-weight: 600;
    }

    .progress-step.completed {
        background-color: var(--primary);
    }

/* intl-tel-input-div */
.intl-tel-input-div .iti {
    width: 100%;
}

.intl-tel-input-div
.iti--allow-dropdown
.iti__country-container:not(:has(+ input[disabled])):not( :has(+ input[readonly]) )
.iti__selected-country-primary:hover,
.intl-tel-input-div
.iti--allow-dropdown
.iti__country-container:not(:has(+ input[disabled])):not( :has(+ input[readonly]) )
.iti__selected-country:has(+ .iti__dropdown-content:hover)
.iti__selected-country-primary {
    background: none;
}

.intl-tel-input-div .iti__selected-country-primary {
    border-right: 1px solid #d1d5db;
}

.intl-tel-input-div .iti__arrow {
    border: none;
    margin-left: 4px;
    padding: 0px;
    width: 12px;
    height: 22px;
}

    .intl-tel-input-div .iti__arrow::after {
        content: "\ea4e";
        font-family: "remixicon";
    }

.intl-tel-input-div .iti__selected-dial-code {
    font-size: 15px;
}

.intl-tel-input-div .iti__dropdown-content {
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.intl-tel-input-div .iti__search-input {
    height: 34px;
    padding: 0 8px;
    font-size: 14px;
    outline: none;
}

    .intl-tel-input-div .iti__search-input::placeholder {
        font-size: 14px;
    }

.intl-tel-input-div .iti__country.iti__highlight {
    background-color: #f3f4f6;
}

/* Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.custom-date::-webkit-calendar-picker-indicator {
    filter: brightness(1) invert(1);
    cursor: pointer;
}

/*  */
.submenu {
    display: none;
}

    .submenu:not(.hidden) {
        display: block;
    }

.submenu-arrow {
    transition: transform 0.2s;
}

.rotate-180 {
    transform: rotate(180deg);
}

input[type="color" i]::-webkit-color-swatch-wrapper {
    padding: 0px;
}

input[type="color" i]::-webkit-color-swatch {
    border: 0px;
}

.ui-modal-form {
    height: calc(100vh - 167px);
}