﻿body {
}
.mb-5 {
    margin-bottom: 5px;
}
.mt-5 {
    margin-top: 5px;
}
.ContentPanel {
    display: flex;
    flex-direction: row;
    direction: rtl;
    width: 100%;
    margin-top: 10em;
}

@media only screen and (max-width: 1036px) {
    .ContentPanel {
        flex-wrap: wrap;
    }

}

.ContentPanelFull {
    display: flex;
    flex-direction: row;
    direction: rtl;
    flex-wrap: wrap;
}
.PartialMenu {
    box-shadow: 0px -1px 6px 0px #00000038;
    margin: 1em;
    padding: 1em;
    /*flex: 1;*/
}
    .PartialMenu span {
        background-color: #382e2ed6;
        padding: 0.25em 0.60em;
        border-radius: 20%;
        margin: 0;
        position: absolute;
        left: 1em;
        color: #ffffff;
    }
    .PartialMenu figure {
        text-align: center;
    }
        .PartialMenu figure img {
            width: 12em;
            border: 7px solid #dedfff;
            border-radius: 1em;
        }

    .PartialMenu a {
        display: flex;
        align-items: center;
        font-size: 2em;
        color: #382e2e;
        position:relative;
        margin: 0.3em 0;
        padding: 0.2em 0.6em 0.2em 0.6em;
        border-bottom: 0.5px solid #00000030;
    }

        .PartialMenu a:hover {
            background-color: #dedfff91;
            color: #416262;
        }

    .PartialMenu li {
        margin: 0 1em;
    }

li, ul {
    list-style-type: none;
}

.content {
    box-shadow: 1px 2px 7px 0px #00000038;
    margin: 1em;
    padding: 1em;
    width: min-content;
    height: fit-content;
    border-radius: 0.5em;
}
.contentfull {
    box-shadow: -1px 1px 6px 0px #00000038;
    margin: 1em;
    padding: 1em;
    height: fit-content;
    border-radius: 0.5em;
}

.content header {
    border-bottom: 1px solid #00000030;
    margin: 0 0 1em 0;
}
    .content header h2 {
        width: max-content;
        direction: rtl;
    }

.IconPanel {
    box-shadow: 0px -1px 6px 0px #00000038;
    margin: 1em;
    padding: 1em;
    width: 100%;
    height: fit-content;
    display: flex;
}

    .IconPanel a {
        margin: 1em;
    }

    .IconPanel .IC1 {
        margin: 1em;
        background-color: #00ffdc;
        padding: 1em;
        color: black;
    }

        .IconPanel .IC1:hover {
            background-color: #e1e1e1;
        }

.mainPanel {
    width: 100%;
    flex: 7;
}
div input {
    border: 1px solid #c5bdbd;
    padding: 0.5em;
    border-radius: 0.5em;
    padding: 0.5em 2.5em 0.5em 0;
}
.content input[type="number"] {
    border: 1px solid #c5bdbd;
    padding: 0.5em;
    border-radius: 0.5em;
    padding: 0.5em 2.5em 0.5em 0;
}

    .content input[type="number"]:focus-visible {
        outline: none;
    }

 .btn {
    background-color: #e7f9ff;
}
.btnGreen {
    border: 0;
    padding: 1em;
    margin: 0.6em;
    font-size: 1em;
    background-color: #6ce354;
    cursor: pointer;
    color: white;
    border-radius: 0.3em;
}
     .btnGreen:hover {
        background-color: #0000001f;
        color: black;
    }
.success {
    background-color: #0de10d;
}
.Unsuccess {
    background-color: #e33d3d;
}
 .success p,.Unsuccess p{
    color:white;
}
.btnblue {
    border: 0;
    padding: 1em;
    margin: 0.6em;
    font-size: 1em;
    background-color: btnGreen;
    cursor: pointer;
    width: 100%;
}



     input[type="text"]:focus-visible {
        outline: none;
    }


     input[type="password"]:focus-visible {
        outline: none;
    }

input:focus-visible {
    outline: none;
}

input[type="email"] {
    border: 1px solid #ebe8e8;
    padding: 0.5em;
    padding: 0.5em 2.5em 0.5em 0;
}

     input[type="email"]:focus-visible {
        outline: none;
    }

.btngray {
    margin: 1em;
    background-color: #e1e1e1;
    padding: 1em;
    color: black;
    border: 0;
    cursor: pointer;
    font-size: medium;
}
.btnblue {
    margin: 1em;
    background-color: #dedfff;
    padding: 1em;
    color: black;
    border: 0;
    cursor: pointer;
    font-size: smaller;
    border-radius: 1em;
}

    .btngray:hover {
        margin: 1em;
        background-color: #ffe0e0;
        padding: 1em;
        color: black;
        border: 0;
        cursor: pointer;
    }

.imagecorsepanel {
    width: 31em;
    border: 11px solid #97939340;
}

.linner .form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 1em 0;
    padding: 1em;
    flex-wrap: wrap;
}
.ContentPanel .avatar {
    display: flex;
    padding: 1em;
    width: min-content;
    flex-direction: column;
}
.ContentPanel .avatarwhitoutborder {
    display: flex;
    align-items: center;
    padding: 1em;
    width: min-content;
}
.avatarwhitoutborder img {
    width: 30em;
}
.avatarwhitoutborder-m img {
    width: 20em!important;
}
.avatarwhitoutborder-s img {
    width: 10em !important;
}
.ContentPanel form {
    margin: 0 2em;
    height: inherit;
}
.labelRed {
    margin: 5em 0;
    background-color: #ed2932;
    color: white;
    padding: 0.3em;
}
.ContentPanelFull form {
    width: 100%;
}
.ContentPanel .form-row button {
    width: 100%;
}

.linner .form-input {
    margin: 1em;
    padding: 1em;
}
.ContentPanel .avatar img {
    width: 10em;
    border: 3px solid #dedfff;
    margin: 0 1em;
    border-radius: 1em;
}
.ContentPanel .imageDetail {
    margin: 0 1em;
}
.ContentPanel label {

    padding: 1em;
}
select {
    font-size: larger;
    border: 1px solid #ebe8e8;
    padding: 0.5em;
    border-radius: 0.5em;
    padding: 0.5em 2.5em 0.5em 0;
    width: 100%;
}
.m-1{
    margin:1em;
}
.form-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
}
   
    .inputPasswordformcol {
        font-size: 0.8em;
    }
#Wallet {
    width: max-content!important;
}
.walletShowP {
    text-align: center;
    background-color: #dedfff;
    padding: 0.5em 0;
    font-size: 1.1em;
    border-radius: 0.5em;
    margin:0.5em;
}
.field-validation-error {
    color: red;
    padding: 1em;
    display: inline;
    width: 100%;
}
#notiSpan1 {
    background-color: antiquewhite;
    width: fit-content;
    padding: 1em;
    border-radius: 0.3em;
}
#onvisit {
    background: #f8f1ff;
}
.ContentPanel .form-row-search {
    display: flex;
    align-items: center;
}
.form-panel {
    display: flex;
    flex-wrap: wrap;
}
    .form-panel div {
        display: flex;
        align-items: flex-start;
        margin: 0.5em 2em;
        flex-direction: column;
    }

.form-panel-row {
    display: flex !important;
    flex-direction: !important;
    align-items: !important;
}
.form-panel div label {
    /*width: 100%;
    flex: 2;*/
}
.pagination  {
    display: flex;
    justify-content: center;
}
    .pagination .page-item {
       /* margin: 0 0.5em;
        background-color: #e9e9e9;
        padding: 0.5em 1em;*/
    }
        .pagination .page-item:hover {
            background-color: #d9dddd;
            cursor: pointer;
        }
.page-item-active {
    background-color: #d9dddd;
    margin: 0 0.5em;
    padding: 0.5em 1em;
}
.form-row .form-group {
    display: flex;
    width: 100%;
    margin: 0.3em 0;
}
    .form-row .form-group div {
        width: 100%;
        display: flex;
    }
    .card-text {
        display: inline-flex;
        margin-top: 1em;
    }
.custom-control {
    display: inline-flex;
    margin-top: 1em;
}
.example-fileinput {
    display: block;
}
/*#yourTextBox {
    outline: 0;
    border: 0;
    border-bottom: 1px solid #383838;
}*/
.error-msg-box {
    background-color: #dedfff;
    padding: 1em;
    margin-top: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: fit-content;
}
.error-msg-box-red {
    background-color: red;
    padding: 1em;
    color: white;
    margin-top: 2em;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: fit-content;
}
.error-msg-box-red  p{
    font-size: x-large;
}
.error-msg-box p {
    font-size: x-large;
}
.dropdown-item-blue {
    background-color: #d4d5ff;
    padding: 0.5em;
    border-radius: 0.5em;
}
.dropdown-item-green {
    background-color: #00ff1f;
    padding: 0.5em;
    border-radius: 0.5em;
}
.dropdown-item-red {
    background-color: red;
    padding: 0.5em;
    color: white;
    border-radius: 0.5em;
}
.dropdown-item-yellow {
    background-color: #a9ff00;
    padding: 0.5em;
    color: black;
    border-radius: 0.5em;
}
.dropdown-menu .dropdown-menu-right {
    margin:1em;
}


.sliderswitch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .sliderswitch:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .sliderswitch {
    background-color: #2196F3;
}

input:focus + .sliderswitch {
    box-shadow: 0 0 1px #;
}

input:checked + .sliderswitch:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.sliderswitch.round {
    border-radius: 34px;
}

    .sliderswitch.round:before {
        border-radius: 50%;
    }

.btnInsertcomment {
    background-color: #ecf4fd;
    color: #000000;
    padding: 1em;
    width: 100%;
    text-align: center;
    border: 0;
    margin-top: 2em;
    border-radius: 0.9em;
}
#alerttext {
    visibility: hidden;
    background-color: #bdff65;
    text-align: center;
    padding: 1em;
    width: 100%;
    font-size: x-small;
}
.chattop {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    padding: 1em;
    justify-content: space-between;
}

    .chattop #disable {
        padding: 0.5em;
        margin: 0 2em 0 0;
        background-color: #ab75e1;
        border: 0px;
        color: white;
    }

        .chattop #disable:hover {
            background-color: #e30e0e;
        }

.chatroom .chattop img {
    width: 3em;
    border-radius: 10em;
    border: 0.9px solid #878181;
}

.chattop p {
    font-size: larger;
    margin: 1em 1em 1em 0;
}



.youchat {
    margin: 1em 0.5em 1em 0.5em;
}

.chatbody {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    height: 46em;
    display: block;
    background: url(/Img/More/article-pattern.png);
    display: block;
    background-color: #adffff8f;
    /* background-image: url(../../Img/Logo.png); */
    background-position: center;
    background-repeat: no-repeat;
}


    .chatbody .youchat {
        margin: 0.6em 0.5em 1em 0.5em;
        display: flex;
        justify-content: flex-start;
        flex-direction: row-reverse;
    }

    .chatbody img {
        width: 2em;
        border-radius: 10em;
        height: fit-content;
        border: 0.9px solid #878181;
    }

    .chatbody .youchat .chattext {
        display: flex;
        margin: 1em;
        background-color: aliceblue;
        padding: 1em;
        border-radius: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .chatbody .adminchat {
        margin: 1em 0.5em 1em 0.5em;
        display: flex;
        justify-content: flex-start;
        flex-direction: row;
    }

    .chatbody span {
        color: #9ca3a9;
    }

    .chatbody .adminchat .chattext {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 1em;
        background-color: #fff9ef;
        padding: 1em;
        border-radius: 14px;
    }


    @media only screen and (max-width: 943px) {
        .chatroom {
            display: flex;
            flex-direction: column-reverse;
            height: auto;
        }

        .navinfo img {
            width: 15em;
        }

        .navinfo {
            display: flex;
            flex-direction: column;
            padding: 5em;
            align-items: center;
        }
    }


    .chatbody .youchat .notification {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        margin: 1em;
        background-color: #eaeef1;
        padding: 1em;
    }

    .chatfooter {
        display: flex;
        flex-direction: row;
        background-color: white;
        flex-wrap: nowrap;
    }

        .chatfooter input[type="text"] {
            display: flex;
            font-size: large;
            border: 0;
            flex: 7;
        }

            .chatfooter input[type="text"]:focus-visible {
                outline: none;
            }

        .chatfooter input[type="submit"] {
            flex: 1;
            color: white;
            background-color: #fa7c1f;
            border: 2px;
            font-size: xx-large;
        }

            .chatfooter input[type="submit"]:hover {
                background-color: #adffff;
            }

    .chatbody p {
        margin: 1em;
    }

    .chat {
        width: 100%;
    }

    #chartformpanel {
        width: 100%;
    }

    .listroompanel {
        background-color: #005e54;
        padding: 0.2em 0.4em;
        color: white;
        margin: 0.2em;
        border-radius: 0.8em;
    }

    #roomlist {
        display: flex;
        flex-wrap: wrap;
        margin: 0.8em 0;
    }

    .subnav {
        padding: 1em;
        margin: 1em 2em;
    }

    .sub-subnav {
        background-color: #09f7a7;
        padding: 1em;
        margin: 0 4em;
    }

    .form-control {
        border: 1px solid #c5bdbd;
        padding: 0.5em;
        border-radius: 0.5em;
        padding: 0.5em 2.5em 0.5em 0;
        width: 100%;
    }

    .PartialMenu span {
        font-size: 0.5em;
    }

    input[type="file"] {
        margin: 1em;
        background-color: #00000012;
        padding: 1em;
        color: black;
        border: 0;
        cursor: pointer;
        font-size: medium;
        border-radius: 1em;
    }

    .d-flex {
        display: flex;
    }




    /* Time Input Styles */
    .time-input-container {
        display: flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        margin: 20px 0;
    }

    .time-input-wrapper {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .time-input-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: white;
        border-radius: 8px;
        padding: 15px;
        min-width: 100px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .time-input-group:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .time-input-group label {
            font-size: 12px;
            color: #6b7280;
            margin-bottom: 8px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

    .time-input {
        width: 70px;
        height: 50px;
        font-size: 24px;
        text-align: center;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        background: #f9fafb;
        color: #1f2937;
        font-weight: bold;
        transition: all 0.3s ease;
        font-family: 'Courier New', monospace;
    }

        .time-input:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .time-input:hover {
            border-color: #764ba2;
        }

    /* Number spinner buttons styling */
    .time-input-group input[type="number"]::-webkit-inner-spin-button,
    .time-input-group input[type="number"]::-webkit-outer-spin-button {
        height: 50px;
        opacity: 1;
        background: #667eea;
    }

    .time-separator {
        font-size: 32px;
        font-weight: bold;
        color: white;
        margin: 0 5px;
        animation: blink 2s infinite;
    }

    @keyframes blink {
        0%, 50%, 100% {
            opacity: 1;
        }

        25%, 75% {
            opacity: 0.3;
        }
    }

    .time-display-preview {
        display: flex;
        align-items: center;
        padding: 10px 20px;
        background: white;
        border-radius: 8px;
        margin-right: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .time-display-label {
        font-size: 14px;
        color: #6b7280;
        margin-left: 10px;
    }

    .time-display-value {
        font-size: 20px;
        font-weight: bold;
        color: #1f2937;
        font-family: 'Courier New', monospace;
    }

    /* Icon for time */
    .time-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 50%;
        color: #667eea;
        margin-left: 10px;
    }

        .time-icon svg {
            width: 24px;
            height: 24px;
        }

    /* Validation messages */
    .time-validation {
        color: #ef4444;
        font-size: 12px;
        margin-top: 5px;
        display: block;
    }

    /* Quick time buttons */
    .quick-time-buttons {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }

    .quick-time-btn {
        padding: 8px 16px;
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 6px;
        color: #6b7280;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .quick-time-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
            transform: translateY(-1px);
        }

    /* RTL Support */
    [dir="rtl"] .time-input-container {
        direction: ltr;
    }

    [dir="rtl"] .time-input-group label {
        direction: rtl;
    }

    [dir="rtl"] .time-display-label {
        margin-left: 0;
        margin-right: 10px;
    }

    [dir="rtl"] .time-icon {
        margin-left: 0;
        margin-right: 10px;
    }

    /* Mobile responsive */
    @media (max-width: 640px) {
        .time-input-container {
            padding: 15px;
        }

        .time-input-wrapper {
            justify-content: center;
        }

        .time-input-group {
            min-width: 80px;
            padding: 10px;
        }

        .time-input {
            width: 60px;
            height: 40px;
            font-size: 20px;
        }

        .time-separator {
            font-size: 24px;
        }

        .time-display-preview {
            margin-top: 15px;
            width: 100%;
            justify-content: center;
        }
    }








    /* Dashboard Statistics Cards */
    .dashboard-stats-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin: 30px 0;
        padding: 0 15px;
    }

    .stat-card {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
        }

        /* Card color themes */
        .stat-card.courses {
            --gradient-start: #667eea;
            --gradient-end: #764ba2;
        }

        .stat-card.users {
            --gradient-start: #f093fb;
            --gradient-end: #f5576c;
        }

        .stat-card.news {
            --gradient-start: #4facfe;
            --gradient-end: #00f2fe;
        }

        .stat-card.downloads {
            --gradient-start: #43e97b;
            --gradient-end: #38f9d7;
        }

        .stat-card.online {
            --gradient-start: #fa709a;
            --gradient-end: #fee140;
        }

    .stat-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        color: white;
    }

        .stat-icon svg {
            width: 28px;
            height: 28px;
        }

    .stat-content {
        text-align: right;
    }

    .stat-number {
        font-size: 32px;
        font-weight: bold;
        color: #1f2937;
        margin-bottom: 5px;
        display: flex;
        align-items: baseline;
        gap: 5px;
    }

        .stat-number small {
            font-size: 14px;
            color: #6b7280;
            font-weight: normal;
        }

    .stat-label {
        font-size: 14px;
        color: #6b7280;
    }

    .stat-change {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-top: 10px;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
    }

        .stat-change.positive {
            background: #d1fae5;
            color: #065f46;
        }

        .stat-change.negative {
            background: #fee2e2;
            color: #991b1b;
        }

        .stat-change svg {
            width: 14px;
            height: 14px;
        }

    /* Animation for numbers */
    @keyframes countUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .stat-number {
        animation: countUp 0.6s ease-out;
    }

    /* User Stats Section */
    .user-stats-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        padding: 25px;
        margin: 20px 0;
        color: white;
    }

    .user-stats-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .user-stats-title {
        font-size: 20px;
        font-weight: bold;
        font-family: 'Vazir', 'IRANSans', sans-serif;
    }

    .user-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .user-stat-item {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 15px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .user-stat-value {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .user-stat-label {
        font-size: 12px;
        opacity: 0.9;
    }

    /* Loading skeleton */
    .stat-skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 4px;
        height: 32px;
        width: 100px;
    }

    @keyframes loading {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .dashboard-stats-container {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .stat-number {
            font-size: 28px;
        }

        .user-stats-grid {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 480px) {
        .stat-card {
            padding: 15px;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
        }

            .stat-icon svg {
                width: 24px;
                height: 24px;
            }

        .user-stats-grid {
            grid-template-columns: 1fr;
        }
    }



    /* Log Viewer Styles */
    .log-viewer-container {
        background: #f8fafc;
        min-height: 100vh;
        padding: 20px;
    }

    /* Statistics Cards */
    .log-statistics {
        margin-bottom: 30px;
    }

    .stat-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

    .stat-card {
        background: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 15px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .stat-card.total {
            border-left: 4px solid #3b82f6;
        }

        .stat-card.error {
            border-left: 4px solid #ef4444;
        }

        .stat-card.warning {
            border-left: 4px solid #f59e0b;
        }

        .stat-card.info {
            border-left: 4px solid #10b981;
        }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
        font-weight: bold;
        color: #1f2937;
    }

    .stat-label {
        color: #6b7280;
        font-size: 0.9rem;
    }

    /* Filters */
    .log-filters {
        background: white;
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .filter-form .filter-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-bottom: 20px;
    }

    .filter-group {
        display: flex;
        flex-direction: column;
    }

        .filter-group label {
            margin-bottom: 5px;
            font-weight: 600;
            color: #374151;
            font-size: 0.9rem;
        }

        .filter-group .form-control {
            padding: 10px 12px;
            border: 2px solid #e5e7eb;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

            .filter-group .form-control:focus {
                outline: none;
                border-color: #3b82f6;
                box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            }

    .filter-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn {
        padding: 10px 16px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        text-decoration: none;
        align-items: center;
        gap: 5px;
        transition: all 0.3s ease;
    }

    .btn-primary {
        background: #3b82f6;
        color: white;
    }

    .btn-secondary {
        background: #6b7280;
        color: white;
    }

    .btn-success {
        background: #10b981;
        color: white;
    }

    .btn-info {
        background: #06b6d4;
        color: white;
    }

    .btn-warning {
        background: #f59e0b;
        color: white;
    }

    .btn-danger {
        background: #ef4444;
        color: white;
    }

    .btn-outline {
        background: transparent;
        border: 2px solid #e5e7eb;
        color: #374151;
    }

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* Results Info */
    .results-info {
        background: white;
        padding: 15px 20px;
        border-radius: 10px 10px 0 0;
        border-bottom: 1px solid #e5e7eb;
        font-weight: 500;
        color: #374151;
    }

    /* Logs Table */
    .logs-table-container {
        background: white;
        border-radius: 0 0 10px 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .logs-table {
        width: 100%;
        border-collapse: collapse;
    }

        .logs-table thead {
            background: #f8fafc;
        }

        .logs-table th {
            padding: 15px 12px;
            text-align: right;
            font-weight: 600;
            color: #374151;
            border-bottom: 2px solid #e5e7eb;
        }

            .logs-table th a {
                color: #374151;
                text-decoration: none;
                display: flex;
                align-items: center;
                gap: 5px;
            }

                .logs-table th a:hover {
                    color: #3b82f6;
                }

        .logs-table tbody tr {
            border-bottom: 1px solid #f3f4f6;
            transition: background-color 0.2s ease;
        }

            .logs-table tbody tr:hover {
                background: #f8fafc;
            }

        .logs-table td {
            padding: 12px;
            vertical-align: top;
        }

    .log-time {
        font-family: 'Courier New', monospace;
        color: #6b7280;
        white-space: nowrap;
    }

    .log-level {
        width: 120px;
    }

    .level-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
    }

    .log-error .level-badge {
        background: #fee2e2;
        color: #991b1b;
    }

    .log-warning .level-badge {
        background: #fef3c7;
        color: #92400e;
    }

    .log-info .level-badge {
        background: #d1fae5;
        color: #065f46;
    }

    .log-debug .level-badge {
        background: #e0e7ff;
        color: #3730a3;
    }

    .log-trace .level-badge {
        background: #f3f4f6;
        color: #374151;
    }

    .log-fatal .level-badge {
        background: #fce7f3;
        color: #86198f;
    }

    .log-message {
        position: relative;
        max-width: 400px;
    }

    .message-preview {
        word-break: break-word;
        line-height: 1.4;
    }

    .exception-indicator {
        position: absolute;
        top: 0;
        left: 0;
        background: #ef4444;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        transform: translate(-50%, -50%);
    }

    .log-user, .log-source {
        color: #6b7280;
        font-size: 13px;
    }

    .log-actions {
        width: 80px;
    }

    .btn-detail {
        background: #3b82f6;
        color: white;
        padding: 6px 10px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }

        .btn-detail:hover {
            background: #2563eb;
        }

    .no-logs {
        text-align: center;
        padding: 40px;
        color: #6b7280;
        font-style: italic;
    }

    /* Pagination */
    .pagination-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .pagination {
        display: flex;
        gap: 5px;
        align-items: center;
    }

    .page-link {
        padding: 8px 12px;
        color: #374151;
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

        .page-link:hover {
            background: #f3f4f6;
            border-color: #d1d5db;
        }

        .page-link.current {
            background: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }

    .page-size-selector {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #6b7280;
    }

        .page-size-selector select {
            padding: 5px 8px;
            border: 1px solid #e5e7eb;
            border-radius: 4px;
        }

    /* Log Details */
    .log-detail-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    .detail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

        .detail-header h2 {
            margin: 0;
            color: #1f2937;
        }

    .detail-actions {
        display: flex;
        gap: 10px;
    }

    .log-detail-card {
        background: white;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .detail-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .main-info {
        background: #f8fafc;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }

    .detail-item {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .detail-label {
        font-weight: 600;
        color: #374151;
        font-size: 0.9rem;
    }

    .detail-value {
        color: #1f2937;
        font-size: 1rem;
    }

    .detail-section {
        margin-bottom: 25px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }


    .message-content,
    .template-content,
    .exception-content,
    .properties-content {
        padding: 20px;
    }

        .template-content code {
            background: #f3f4f6;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
        }

    .error-section {
        border-color: #fca5a5;
    }

        .error-section .section-title {
            background: #fee2e2;
            color: #991b1b;
        }

    .exception-content pre {
        background: #f8f8f8;
        padding: 15px;
        border-radius: 6px;
        overflow-x: auto;
        font-family: 'Courier New', monospace;
        font-size: 12px;
        line-height: 1.4;
        white-space: pre-wrap;
        border: 1px solid #e5e7eb;
    }

    .properties-content pre {
        background: #1f2937;
        color: #f3f4f6;
        padding: 20px;
        border-radius: 6px;
        overflow-x: auto;
        font-family: 'Courier New', monospace;
        font-size: 13px;
        line-height: 1.5;
    }

        .properties-content pre.formatted {
            color: #10b981;
        }

    .toggle-exception,
    .format-json {
        background: #6b7280;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        margin-top: 10px;
        font-size: 13px;
    }

        .toggle-exception:hover,
        .format-json:hover {
            background: #4b5563;
        }

    .detail-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }

    .log-navigation {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    /* Modal */
    .modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        background: white;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        max-width: 500px;
        width: 90%;
        overflow: hidden;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
    }

        .modal-header h3 {
            margin: 0;
            color: #1f2937;
        }

    .close {
        font-size: 24px;
        cursor: pointer;
        color: white;
        background: none;
        border: none;
    }

        .close:hover {
            color: #374151;
        }

    .modal-body {
        padding: 25px;
    }

        .modal-body .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid #e5e7eb;
            border-radius: 6px;
            margin: 10px 0;
        }

        .modal-body .warning {
            color: #f59e0b;
            font-weight: 600;
            margin-top: 15px;
        }

    .modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 20px 25px;
        border-top: 1px solid #e5e7eb;
        background: #f8fafc;
    }

    /* Alerts */
    .alert {
        padding: 15px 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        border: 1px solid transparent;
    }

    .alert-success {
        background: #d1fae5;
        color: #065f46;
        border-color: #a7f3d0;
    }

    .alert-danger {
        background: #fee2e2;
        color: #991b1b;
        border-color: #fca5a5;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .log-viewer-container {
            padding: 10px;
        }

        .stat-grid {
            grid-template-columns: 1fr;
        }

        .filter-form .filter-row {
            grid-template-columns: 1fr;
        }

        .filter-actions {
            justify-content: center;
        }

        .logs-table-container {
            overflow-x: auto;
        }

        .logs-table {
            min-width: 800px;
        }

        .pagination-container {
            flex-direction: column;
            gap: 15px;
        }

        .detail-header {
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }

        .detail-actions {
            justify-content: center;
        }

        .log-navigation {
            flex-direction: column;
        }
    }

    @media (max-width: 480px) {
        .btn {
            padding: 8px 12px;
            font-size: 13px;
        }

        .logs-table th,
        .logs-table td {
            padding: 8px;
        }

        .level-badge {
            font-size: 11px;
            padding: 2px 6px;
        }
    }

    .help {
        color: #a5a9b1;
    }
    /* استایل‌های سفارشی برای SweetAlert2 */
    .swal2-custom-popup {
        font-family: 'Vazir', 'Arial', sans-serif !important;
        border-radius: 15px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .swal2-custom-button {
        background-color: #dc3545 !important;
        border-radius: 10px !important;
        padding: 10px 20px !important;
        font-size: 16px !important;
    }

    .swal2-title {
        font-size: 24px !important;
        color: #333 !important;
    }

    .swal2-content {
        font-size: 18px !important;
        color: #555 !important;
    }


    @keyframes blink {
        0%, 100% {
            color: red;
        }

        50% {
            color: #6b7280;
        }
    }

    .required-star {
        color: red;
        font-weight: bold;
        font-size: 1rem;
        position: relative;
        top: -2px;
        animation: blink 1s infinite;
    }

    .form-input {
        display: flex;
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }

    .btnInsert {
        background-color: #ecf4fd;
        color: #000000;
        padding: 1em;
        width: 100%;
        text-align: center;
        border: 0;
        margin-top: 2em;
        border-radius: 0.9em;
    }














    /* 🌿 طراحی کلی پنل فایل */
    .mainPanel {
        background: #ffffff;
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease-in-out;
    }

        .mainPanel header h2 {
            font-size: 1.4rem;
            color: #1e3a8a;
            padding-right: 10px;
            margin-bottom: 1rem;
            font-weight: 600;
        }

    .form-panel {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .form-input {
        flex: 1 1 45%;
        position: relative;
    }

        .form-input input[type="text"],
        .form-input input[type="number"],
        textarea,
        .custom-file-input {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1px solid #d1d5db;
            border-radius: 0.7rem;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            background: #f9fafb;
        }

            .form-input input:focus,
            textarea:focus {
                outline: none;
                border-color: #3b82f6;
                box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
                background: #ffffff;
            }

    textarea {
        resize: vertical;
    }

    /* ✅ برچسب و توضیحات */
    p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    /* 🖼️ تصویر انتخاب‌شده */
    .avatarwhitoutborder img {
        max-width: 180px;
        border-radius: 1rem;
        border: 2px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease;
    }

        .avatarwhitoutborder img:hover {
            transform: scale(1.05);
        }

    /* 💾 دکمه ثبت */
    .btnInsertcomment {
        background: linear-gradient(90deg, #2563eb, #3b82f6);
        color: #fff;
        border: none;
        padding: 0.8rem 2rem;
        border-radius: 0.7rem;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .btnInsertcomment:hover {
            background: linear-gradient(90deg, #1d4ed8, #2563eb);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

    /* 📁 استایل آپلود فایل */
    .custom-file-label {
        border-radius: 0.6rem;
        background-color: #f3f4f6;
        border: 1px solid #d1d5db;
        color: #4b5563;
    }

    .custom-file-input:focus ~ .custom-file-label {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

    /* 🔒 تیک پرداخت */
    .lock {
        accent-color: #2563eb;
        transform: scale(1.2);
        margin-left: 0.5rem;
    }

    /* 🌙 واکنش‌گرا */
    @media (max-width: 768px) {
        .form-input {
            flex: 1 1 100%;
        }

        .mainPanel {
            padding: 1.5rem;
        }
    }

