/*@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700&display=swap');*/

:root {
    --primary: #2563eb;
    --secondary: #60A5FA;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --background: #F8FAFC;
    --card: #FFFFFF;
    --text: #1E293B;
    --border: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #475569;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/font/Vazirmatn-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/font/Vazirmatn-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/font/Vazirmatn-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("/font/Inter_18pt-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "Inter";
    src: url("/font/Inter_18pt-Light.ttf") format("truetype");
    font-weight: 300;
}

* {
    font-family: "Vazirmatn", "Inter";
    font-size: 1rem;
    user-select: none;
    margin: 0;
    box-sizing: border-box;
    outline:none;
    caret-color:var(--primary);
}

body {
    background: var(--background);
    color: var(--text);
    overflow: auto;
}

body::-webkit-scrollbar {
    display: none;
}

#header{
    list-style:none;
    display:flex;
    flex-direction:row;
}

.signin-signup-header-button {
    border-radius: 10px;
    border:none;
    outline: none;
    background-color: var(--secondary);
    color: white;
    transition:200ms ease;
}

    .signin-signup-header-button:hover{
        transform:scale(1.1);
    }

    .signin-signup-header-button:active{
        transform:scale(0.9);
    }

    #header label {
        transition: 200ms;
    }

    #header label:hover {
        transform: scale(1.1);
    }

#nav {
    background-color: var(--primary);
    height: 3.5em;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 1000; /* Added to keep nav above content */
}

#nav label {
    margin-right: 10px;
    color: white;
}

#nav ul {
    list-style: none;
    display: none;
}

#nav a {
    display: flex;
    text-decoration: none;
    color: #ffffff !important;
    padding: 1em;
    transition: 150ms ease;
}

#nav a:hover {
    transform: translateY(-5px);
}

#nav a:active {
    background-color: var(--tertiary-active);
}

#openB {
    display: none;
    color: white !important;
    border: none;
    background: transparent;
}

#overlay {
    background-color: rgba(0, 0, 0, 0.2);
    position: fixed;
    z-index: 11;
    inset: 0;
    display: none;
}

#sidebarN {
    background-color: var(--background);
    width: 100px;
    flex-direction: column;
    border: 1px solid var(--border);
    min-height: calc(100vh - 3.5em);
    position: fixed;
    top: 3.5em;
    right: 0;
    width: 300px;
    text-align: center;
    list-style: circle;
    z-index: 999;
    right: -400px;
}

#container {
    display: flex;
}

main {
    padding: 1rem;
    margin-top: 3.5em;
    height: calc(100vh - 3.5em);
    overflow-y: auto;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start ;
    view-transition-name:page-content;
    transition: 400ms ease;
}

::view-transition-group(page-content){
    animation-duration:500ms;
    animation-timing-function:ease;
}

::view-transition-old(page-content) {
    animation-name: out;
}

::view-transition-new(page-content) {
    animation-name: in;
}

#sidebarN li:hover {
    transform: translateY(3px);
}

#sidebarN li {
    padding: .5em;
    cursor: pointer;
    transition: 200ms ease;
}

#sidebarN label {
    cursor: pointer;
}

main::-webkit-scrollbar {
    display: none;
}

@view-transition{
    navigation:auto;
}

@media screen and (max-width: 700px) {
    #header{
        display:none;
    }
    #nav {
        position: fixed;
        top: 0;
/*        align-content: start;
        justify-content: start;*/
    }
    #openB {
        display: inline-block;
    }
    #nav ul {
        width: 100%;
        flex-direction: column;
    }
    #sidebarN {
        transition: 200ms ease;
        right: -300px;
        background-color: var(--background);
        width: 100px;
    }
    #sidebarN.show {
        right: 0;
    }
    #sidebarC {
        z-index: 10;
    }
    main {
        margin-right: 0;
    }
    #overlay{
        z-index:9;
    }
}

.logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#loading {
    outline: none;
    margin: auto;
    border: none;
    background-color: transparent;
    z-index:20;
}

    #loading svg {
        fill: white !important;
        animation-name: loading;
        animation-duration: 1000ms;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
    }

@keyframes loading {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes in {
    from{
        translate:-100vw;
        opacity:0;
    }
}

@keyframes out {
    to {
        translate:-100vw;
        opacity:0;
    }
    }

#overlay.show {
    display: block;
}
    #overlay.show ~ #contianer #sidebarN {
        border-color: transparent;
    }

#modal {
    margin: auto;
    border: 1px solid var(--border);
    box-shadow: 3px 3px 3px rgba(0,0,0,0.2);
    border-radius: 25px;
    width: 800px;
    outline: none;
    height: 600px;
    padding: 0;
    transition: opacity 500ms ease, display 500ms ease allow-discrete, scale 500ms ease allow-discrete;
    opacity: 0;
    scale: 0.8;
}

    #modal[open] {
        opacity: 1;
        scale: 1;

        @starting-style {
            opacity: 0;
            scale: 0.8;
        }
    }

    #modal[open]::backdrop {
        opacity: 1;

        @starting-style {
            opacity: 0;
        }
    }

    #modal::backdrop {
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(2px);
        transition: opacity 500ms ease, display 500ms ease allow-discrete, scale 500ms ease allow-discrete;
        opacity: 0;
    }

    #modalH{
        border-bottom:1px solid rgba(0,0,0,0.2);
        width:100%;
        height:60px;
        position:relative;
    }

[data-theme="availabelChange"]{
    height:25vh !important;
}

#modalClose {
    background: none;
    outline: none;
    border: none;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

    #modalClose svg {
        transition: 200ms ease;
    }

    #modalClose.hide,
    #modalTitle.hide {
        display: none;
    }

#modalTitle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    text-align: center;
    font-weight: 600;
    margin-bottom: 32px;
    font-size: 25px;
    color: var(--text);
}

#modalM{
    top:0;
    left:0;
    width:100%;
    padding:15px;
}

#modalClose:hover svg {
    transform: scale(1.3);
    fill: var(--danger);
}