﻿:root {
    --color-blue: #144e8c;
    --color-red: #cc0000;
    --color-green: #6FAF4F;
    --font-main: peyda-Medium;
    --font-caption: peyda-Bold;
}


@font-face {
    font-family: "peyda-Medium";
    src: url("fonts/PeydaWeb-Medium.woff") format("woff");
    unicode-range: U+0-2f, U+40-10FFFF;
}

@font-face {
    font-family: 'peyda-Medium';
    src: url("fonts/iran-yekan-500.woff") format("woff");
    unicode-range: U+30-39;
}


@font-face {
    font-family: "peyda-Bold";
    src: url("fonts/PeydaWeb-Bold.woff") format("woff");
    unicode-range: U+0-2f, U+40-10FFFF;
}

@font-face {
    font-family: 'peyda-Bold';
    src: url("fonts/iran-yekan-700.woff") format("woff");
    unicode-range: U+30-39;
}



@font-face {
    font-family: "peyda-digi";
    src: url("fonts/PeydaWeb-Bold.woff") format("woff");
}


* {
    box-sizing: border-box;
}

body {
    direction: rtl;
    font-family: var(--font-main);
    padding: 0px;
    margin: 0px;
    background-color: #eee;
}

img {
    max-width: 100%;
}

.center {
    text-align: center !important;
}


.default-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


.login-box {
    width: 300px;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0px 0px 10px #ddd;
}

.message-error {
    color: var(--color-red);
}


.message-error-box {
    color: var(--color-red);
    border: 2px solid var(--color-red);
    padding: 10px;
    margin: 15px 0px;
    border-radius: 5px;
}


input[type=text] {
    width: 100%;
    padding: 5px;
    font-family: var(--font-main);
    outline: none;
}


input[type=text] {
    width: 100%;
    padding: 15px;
    font-family: var(--font-main);
    outline: none;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

    input[type=text]:focus {
        border: 1px solid #454545;
    }

input[type=button],
input[type=submit] {
    width: 100%;
    padding: 15px;
    font-family: var(--font-main);
    text-align: center;
    color: #fff;
    background-color: var(--color-blue);
    border-radius: 5px;
    border: none;
}


.menu-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 15px;
    padding: 10px;
    display: flex;
    align-items: center;
}

    .menu-box img {
        width: 32px;
        border-radius: 5px;
    }

    .menu-box .user {
        margin-right: 10px;
        font-size: 1.1rem;
        font-weight: bold;
    }



.main {
    display: flex;
    align-items: stretch;
    margin:15px;
    margin-top:0px;
}

    .main .list {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        width:65%;
        
        direction:ltr;
    }

    .main .list .item{
        border-bottom:1px dotted #ddd;
        padding:10px;
        display:flex;
        justify-content:space-between;
        align-items:center;

    }

        .main .list .item a {
            color: #1d1d1d;
            text-decoration: none;
            font-family: peyda-digi;
        }

        .main .list .item a:hover {
            color: var(--color-red);
        }

        .main .list .item .name {
            
        }

        .main .list .item .info span {
            font-size:0.7rem;
            display:inline-block;
            margin-right:10px;
            color:#888;
        }


        .btn,
.btn-delete {
    background-color: #FF5A5A;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    margin-left:5px;
}
.btn {
    background-color: #6FAF4F;
}

    .btn-delete:hover {
        background-color: #EB4C4C;
    }

.btn:hover {
    background-color: #5B7E3C;
}





.main .upload {
    width: calc(35% - 15px);
    margin-right: 15px;
}


@media(max-width:600px) {
     .main{
         flex-direction:column;
    }

        .main .list {
            width: 100%;
            margin-bottom:10px;
        }

        .main .upload {
            width: 100%;
            margin-right: 0px;
        }


        .main .list .item {
            flex-direction:column;
        }

            .main .list .item .name {
                width:100%;
            }
}



.box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom:15px;
}


    .caption
    {
        border-bottom:2px solid var(--color-blue);
        padding:10px;
        margin-bottom:10px;
        font-family:var(--font-caption);
        direction:rtl;
    }

        .caption .fa-solid
        {
            margin-left:10px;
        }


#spnListData {
    font-family: peyda-digi;
    margin-right:10px;
}

#divToster {
    color:#fff;
    position: fixed;
    bottom: 15px;
    left: 15px;
    padding: 10px;
    border-radius: 5px;
    transform: translateX(calc(-100% - 15px));
    transition-duration: 0.5s;
    box-shadow: 0px 0px 10px #ddd;
}


#divShow {
    position: fixed;
    top:0px; left:0px; right:0px; bottom:0px;
    background-color:rgba(0,0,0,0.5);
    z-index:1000;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:50px;
    transform:translateY(100%);
    transition-duration:0.5s;
    color:#fff;
}

#divShow img
{
    max-width:90vw;
    max-height:90vh;
}

    #divShow video {
        background-color:#000;
        max-width: 90vw;
        max-height: 90vh;
    }


#divBar,
#divDownloadBar {
    font-family: peyda-digi;
    direction: ltr;
    margin-bottom: 10px;
}




.pBar {
    background: linear-gradient(to right, var(--color-green) 0%, white 0%);
    border-radius: 10px;
    line-height: 22px;
    height: 20px;
    border: 1px solid var(--color-green);
    direction: ltr;
    text-align: center;
    margin-bottom: 10px;
}


.btn-cancel
{
    color:var(--color-red);
    float:right;
}