﻿
/* ======================== FONTS ========================  */

/* LIGHT */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* REGULAR */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* MEDIUM */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* BOLD */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
    background-color: #f0f2f5;
}


/* ======================== COLORS ========================  */


.bg-admin {
    background-color: #f3f4f6;
}

.bg-web {
    background-color: #f5f7f9;
}


/* ======================== OTHER ========================  */

/* --  RESPONSIVE SIDEBAR -- */

@media (min-width: 992px) {
    .sidebar-area {
        width: 280px;
    }

    .main-area {
        margin-right: 280px;
    }
}

/* --  RESPONSIVE SIDEBAR  -- */

.avatar-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
}


/* -- DARK MODE CODE EDITOR -- */

.code-editor,
textarea.code-editor {
    background-color: #0f172a;
    color: #e5e7eb;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 12px 14px;
    resize: vertical;
    outline: none;
    caret-color: #38bdf8;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
    transition: border-color .2s, box-shadow .2s;
}

    .code-editor:focus,
    textarea.code-editor:focus {
        border-color: #38bdf8;
        box-shadow: 0 0 0 2px rgba(56,189,248,.25);
    }

    .code-editor::-webkit-scrollbar {
        width: 8px;
    }

    .code-editor::-webkit-scrollbar-track {
        background: #020617;
    }

    .code-editor::-webkit-scrollbar-thumb {
        background: #334155;
        border-radius: 4px;
    }

        .code-editor::-webkit-scrollbar-thumb:hover {
            background: #475569;
        }

    .code-editor::selection {
        background: rgba(56,189,248,.35);
    }

    .code-editor:disabled {
        background-color: #020617;
        color: #64748b;
    }


/* -- HERE SECTION FLOATING ANIMATIONS -- */


@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-item-1 {
    animation: float 4s ease-in-out infinite;
}

.floating-item-2 {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* -- CARD HOVER EFFECTS -- */

.card-hover:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* -- HERO SEARCH INPUT -- */

.hero-search:focus {
    box-shadow: none;
}


html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}

@media (max-width: 576px) {
    .g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
}
