﻿.bg {
    background-color: white;
    padding: 10px;
}




.admin_holder {
    position: absolute;
    z-index: 100;
    top: 50%;
    width: 100%;
}








:root {
    --master: #994600;
    --slave: #000000; /* 00a65d;*/
    --gray: #363636;
    --border: #e8e5e5;
    --radius: 0px;
}

/* ==========================================
   PREMIUM BLUE CHECKBOX & RADIO
========================================== */

input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    margin: 6px 8px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    transition: all .22s ease;
}

/* Checkbox */
input[type="checkbox"] {
    border-radius: 7px;
}

/* Radio */
input[type="radio"] {
    border-radius: 50%;
}

    /* Hover */
    input[type="checkbox"]:hover,
    input[type="radio"]:hover {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgb(37 99 235 / 10%);
        transform: translateY(-1px);
    }

    /* Checked */
    input[type="checkbox"]:checked,
    input[type="radio"]:checked {
        background: linear-gradient(145deg, #3b82f6, #1d4ed8);
        border-color: #2563eb;
        box-shadow: 0 3px 8px rgb(37 99 235 / 25%);
    }

/* White checkmark */
input[type="checkbox"]::before {
    content: "";
    width: 7px;
    height: 13px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .18s ease;
}

input[type="checkbox"]:checked::before {
    transform: rotate(45deg) scale(1);
}

/* Radio center */
input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    transform: scale(0);
    transition: transform .18s ease;
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Keyboard focus */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 3px solid rgb(59 130 246 / 30%);
    outline-offset: 3px;
}

/* Optional label */
input[type="checkbox"] + label,
input[type="radio"] + label {
    cursor: pointer;
    vertical-align: middle;
    font-weight: 500;
    white-space: normal;
    line-height: 1.8;
}

/*-----------------------Buttons-------------------------*/
.lnkbutton .button {
    background: #4169e1;
    margin: 10px auto;
    width: 200px;
    height: 50px;
    line-height: 50px;
    overflow: hidden;
    text-align: center !important;
    transition: .3s;
    cursor: pointer;
    border-radius: 0px;
    box-shadow: 0px 1px 2px rgba(0,0,0,.2);
}

.size2x {
    width: 400px;
}

.size3x {
    width: 600px;
}


.lnkbutton .button p, .lnkbutton .button span {
    line-height: 50px;
    margin-bottom: 0;
    margin-top: 0;
}

.btn_master, .btn_slave {
    position: relative;
    float: right;
    background: #FFF44F;
    top: 0;
    left: -100%;
    margin-top: -50px;
    transition: .3s;
    width: 30%;
    text-align: center !important;
}

.btnText {
    color: white;
    transition: .3s;
}

.btn_slave {
    background: #4169e1;
}

.lnkbutton .button:has(> .btn_slave) {
    background: transparent;
    box-shadow: 0px 0px 0px 2px #4169e1 inset;
}

    .lnkbutton .button:has(> .btn_slave) .btnText {
        color: #4169e1;
    }

    .lnkbutton .button:has(> .btn_slave) .btnText2 {
        color: #ffffff;
    }

.btnText, .btnText2, .lnkbutton .button p {
    text-align: center !important;
}

    .btnText2 .fa {
        font-size: 26px !important;
        line-height: 50px;
    }

.btnText2 {
    margin-right: 0px;
    color: #4169e1;
}

.lnkbutton .button:hover .btn_slave, .lnkbutton .button:hover .btn_master { /*When hovering over .button change .btnTwo*/
    left: -70%;
}

.lnkbutton .button:hover .btnText { /*When hovering over .button change .btnText*/
    margin-left: 27%;
}

.lnkbutton .button:active { /*Clicked and held*/
    box-shadow: 0px 5px 6px rgba(0,0,0,0.3);
}

@media all and (max-width: 500px) {
    .lnkbutton .button {
        width: 100%;
    }

    .btn_master, .btn_slave {
    }

    .lnkbutton .lnkbutton {
        width: 100%;
    }
}



/*===================CMS Login buttons================*/



.btnMaster, .btnSlave {
    background-color: #4169e1 !important;
    border: 1px solid #4169e1;
    border-radius: 5px;
    min-width: 200px;
    text-align: center;
    float: none;
    -webkit-transition: all .3s ease-in;
    -moz-transition: all .3s ease-in;
    -ms-transition: all .3s ease-in;
    -o-transition: all .3s ease-in;
    transition: all .3s ease-in;
    cursor: pointer !important;
    padding: 3px;
}

.btnSlave {
    background-color: #ffffff !important;
    border: 1px solid #4169e1;
    min-width: 150px;
}

.btnMaster a, .btnMaster {
    color: #ffffff !important;
    text-decoration: none;
    display: inline-block !important;
}

.btnSlave a, .btnSlave {
    color: #4169e1 !important;
    text-decoration: none;
    display: inline-block !important;
}

.btnMaster:hover {
    background-color: #344ea5 !important;
    color: #ffffff !important;
}

.btnSlave:hover {
    background-color: #4169e1 !important;
    color: #ffffff !important;
}

@media all and (max-width: 500px) {
    .btnMaster, .btnSlave {
        margin: 1%;
        width: 94%;
        padding: 2%;
        min-width: auto;
    }
}






.required::after {
    color: red;
    font-size: 120%;
    font-weight: bold;
    content: ' *';
}

input[type='text'], input[type='number'], input[type='password'], textarea, .tagator_element, .select2-search__field {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    color: #000000;
    background-color: #ffffff;
    -webkit-transition: all .55s ease-in;
    -moz-transition: all .55s ease-in;
    -o-transition: all .55s ease-in;
    transition: all .55s ease-in;
    width: auto;
    outline: none;
    font-family: byekan;
    font-size: 21px;
}

    input[type='text']:focus, input[type='number']:focus, input[type='password']:focus, textarea:focus, .tagator_element:focus, .select2-search__field:focus {
        outline: none;
        border: 1px solid var(--master);
        background-color: #ffffff;
    }




.ddl {
    outline: none;
    border: 1px solid var(--border);
    background-color: #ffffff;
    border-radius: var(--radius);
    padding: 15px;
    max-width:600px;
    width: 100%;
    font-family: byekan;
    font-size: 21px !important;
    color: black !important;
}



    .ddl * {
        background-color: #ffffff;
        color: black !important;
    }

/*input[type=radio], input[type=checkbox] {
    display: none;
}


    input[type=radio] + label:before {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        vertical-align: middle;
        background-color: #ffffff;
        border: 1px solid var(--gray);
        border-radius: 50%;
        cursor: pointer;
        margin: 5px;
    }

    input[type=checkbox] + label:before {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        vertical-align: middle;
        background-color: #ffffff;
        border: 2px solid #e8e5e5;
        border-radius: 4px;
        cursor: pointer;
        margin: 10px;
    }

    input[type=checkbox] + label, input[type=radio] + label {
        white-space: nowrap;
        font-weight: bold;
    }

    input[type=radio]:checked + label:before {
        background-color: var(--master);
        text-shadow: 0px 0px 3px #000000;
    }

    input[type=checkbox]:checked + label:before {
        content: "\2714";*/ /* Tick */
        /*color: var(--master);
        background-color: #ffffff;
        border-color: var(--master);
        text-align: center;
        font-size: 100%;
        font-weight: bold;
        line-height: 18px;
    }*/




/*--------------------- alignment ---------------------*/
.left {
    text-align: left;
    font-weight: bold;
}

.right {
    text-align: right;
}

.leftLTR {
    text-align: left;
    direction: ltr;
}

.rightRTL {
    text-align: right !important;
    direction: rtl !important;
}






/*--------------------- groupbox ---------------------*/

.borderlinegroup {
    position: relative;
    border: 1px solid var(--border);
    background-color: #ffffff;
    z-index: 0 !important;
    padding: 20px !important;
    border-radius: var(--radius);
}

.headertitle {
    font-family: byekan;
    border-radius: var(--radius);
    border: 1px solid var(--border) !important;
    font-weight: 900;
    color: #000000;
    font-size: 20px;
    text-align: center;
    margin-left: 0px;
    margin-right: 0px;
    position: absolute;
    right: 15px;
}


.borderlinegroup i {
    font-style: normal;
    background: #fff;
    position: absolute;
    padding: 2px;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: -46px;
}


/*--------------------- textbox|drp|checkbox ---------------------*/
.field {
    padding-bottom: 8px; /* space between textbox*/
    display: flex;
    flex-direction: column-reverse;
    direction: rtl; /*------------------------- Language */
}

    .field span {
        padding-left: 15px;
        transition: all 0.2s ease-in;
        pointer-events: none;
        font-size: 100%;
        padding-right: 15px;
        transform: translate(5px,52px);
    }

.textover span {
    transform: translate(0px,48px); /* label over textbox position*/
    text-align: right; /*------------------------- Language */
    font-weight: bold;
}
/*------------------------- right Icon */
.textoverIconRight span {
    transform: translate(-59px,48px); /* label over textbox position*/
    text-align: right;
    font-weight: bold;
}

.textoverIconRight icon, .textUpperIconRight icon {
    position: absolute;
    right: 18px;
    font-size: 24px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 1px solid #ccc;
    color: var(--border);
    z-index: 1;
}

.textoverIconRight input, .textUpperIconRight input {
    padding-right: 68px !important;
}

.textoverIconRight select, .textUpperIconRight select, .select2-selection__rendered { /*------------------------- dropdown render text */
    cursor: pointer;
    padding-right: 65px !important;
    font-weight: bold;
}

.textUpperIconRight span {
    transform: translate(0px,0px); /* label over textbox position*/
    text-align: right;
    font-weight: bold;
}

.select2-selection__placeholder { /*------------------------- dropdown placeholder */
    font-weight: bold;
}

/*------------------------- left Icon */
.textoverIconLeft span {
    transform: translate(59px,48px); /* label over textbox position*/
    text-align: left; /*------------------------- Language */
    font-weight: bold;
}

.textoverIconLeft icon, .textUpperIconLeft icon {
    position: absolute;
    left: 18px;
    font-size: 24px;
    margin-bottom: 20px;
    padding-right: 15px;
    border-right: 1px solid #ccc;
    color: var(--border);
    z-index: 1;
}

.textoverIconLeft input, .textUpperIconLeft input {
    padding-left: 65px
}

.textoverIconLeft select, .textUpperIconLeft select { /*------------------------- dropdown Icon */
    cursor: pointer;
    padding-left: 65px !important;
    font-weight: bold;
}

.textUpperIconLeft span {
    transform: translate(0px,0px); /* label over textbox position*/
    text-align: left;
    font-weight: bold;
}

.textupper span {
    padding-top: 5px; /*25px*/
    padding-bottom: 0px;
    transform: translate(0px,0px); /* label over dropdown position*/
    text-align: right; /*------------------------- Language */
    font-weight: bold;
}

.fieldContainer {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}


.field input:focus + span, .field textarea:focus + span, .field .tagator_element:focus + span {
    color: var(--master); /* label color when focus */
}



/* Placeholder color */
::-webkit-input-placeholder {
    color: transparent !important;
    transition: inherit;
}

:-moz-placeholder {
    color: transparent !important;
    transition: inherit;
}

::-moz-placeholder {
    color: transparent !important;
    transition: inherit;
}

:-ms-input-placeholder {
    color: #cccccc !important;
    transition: inherit;
}

input:focus::-webkit-input-placeholder {
    color: #cccccc !important;
}

input:focus:-moz-placeholder {
    color: #cccccc !important;
}

input:focus::-moz-placeholder {
    color: #cccccc !important;
}

textarea::-webkit-input-placeholder {
    color: #cccccc !important;
}

textarea:-moz-placeholder {
    color: #cccccc !important;
}

textarea::-moz-placeholder {
    color: #cccccc !important;
}

textarea:-ms-input-placeholder {
    color: #cccccc !important;
}



/* Move up label when typing or when textbox has value*/
.field input:not(:placeholder-shown) + span,
.field input:focus + span {
    transform: translate(0px, 0px) scale(1);
    cursor: pointer;
}






/* News Categories Grid */
.newsGrid {
    width: 100%;
    border: 1px solid #e8e5e5;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    color: #27224D;
    direction: rtl;
}

    /* Header */
    .newsGrid th {
        background: #27224D;
        color: #fff;
        padding: 16px 12px;
        text-align: right;
        font-size: 13px;
        font-weight: bold;
        border: none;
        white-space: nowrap;
    }

    /* Cells */
    .newsGrid td {
        padding: 12px;
        border: none;
        border-bottom: 1px solid #eeeaf0;
        vertical-align: middle;
        text-align: right;
    }

    /* Alternating rows */
    .newsGrid tr:nth-child(even) td {
        background: #faf9fc;
    }

    .newsGrid tr:hover td {
        background: #f0eef8;
        transition: background .2s ease;
    }

    /* Delete button */
     .btn_del {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 8px !important;
        background: #fff0f0 !important;
        color: #d93636 !important;
        font-size: 16px !important;
        line-height: 1 !important;
        cursor: pointer;
        transition: all .2s ease;
    }

         .btn_del:hover {
            background: #d93636 !important;
            color: #fff !important;
        }

    /* Edit button */
    .newsGrid .gridEdit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 8px 13px;
        border: 1px solid #27224D;
        border-radius: 7px;
        background: #fff;
        color: #27224D !important;
        text-decoration: none !important;
        font-size: 12px;
        transition: all .2s ease;
    }

        .newsGrid .gridEdit:hover {
            background: #27224D;
            color: #fff !important;
        }

    /* Pager */
    .newsGrid tr:last-child td {
        border-bottom: none;
    }

    .newsGrid .gridPager td {
        padding: 14px;
        background: #fff;
    }

    .newsGrid .gridPager a,
    .newsGrid .gridPager span {
        display: inline-block;
        margin: 0 3px;
        padding: 7px 11px;
        border: 1px solid #e5e1ed;
        border-radius: 6px;
        text-decoration: none;
        color: #27224D;
    }

    .newsGrid .gridPager span {
        background: #27224D;
        border-color: #27224D;
        color: #fff;
    }
