﻿html {
    font-size: 14px;
    direction: rtl;
}

@font-face {
    font-family: 'mg-bold';
    src: url('../fonts/mg-bold.ttf') format('truetype');
}

@font-face {
    font-family: 'mg-light';
    src: url('../fonts/mg-light.ttf') format('truetype');
}

@font-face {
    font-family: 'mg-regular';
    src: url('../fonts/mg-regular.ttf') format('truetype');
}

:root {
    --text-color: #333;
    --link-color: #1c8132;
    --link-hover: #61c761;
    --navbar-bg: #ffffff;
    --navbar-logo: #25873B;
    --input-bg: #fff;
    --input-inner-bg: #e0e0e0;
    --input-inner-inner-bg: #C9C9C9;
    --input-border: #ccc;
    --btn-bg: linear-gradient(90deg, #F28D2C, #f3a65f);
    --btn-danger-bg: linear-gradient(90deg, #F0371A, #FF624A);
    --table-bg: #e0e0e0;
    --border: #b3b3b3;
    --inner-green: #61FF85;
    --w: 56px;
    --h: 32px;
    --knob: 26px;
    --gap: 3px;
    --bg-off: #e6e6e6;
    --bg-on-1: #0a84ff;
    --bg-on-2: #00c2ff;
    --shadow: 0 6px 14px rgba(10,10,10,0.12);
}

body {
    font-family: mg-regular, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    position: relative;
}

.font-lg {
    font-family: mg-bold, sans-serif;
}

.page-subject {
    margin: 0;
    font-size: 50px;
    transition: all 1s ease;
}

/* --- دو لایه پس‌زمینه --- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: opacity 1s ease;
    background: linear-gradient(135deg, #57C270, #FFB975);
}

    .bg-layer.dark {
        background: linear-gradient(135deg, #001d07, #271400);
        opacity: 0;
    }

    .bg-layer.active {
        opacity: 1;
    }

input,
button {
    font-family: unset;
}


/* --- ناوبار --- */
.navbar {
    width: 100%;
    background: var(--navbar-bg);
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.5s ease;
}

    .navbar div button {
        float: right;
    }

    .navbar .logo {
        font-size: 18px;
        font-weight: bold;
        color: var(--navbar-logo);
        margin: 0 5px;
    }

    .navbar > ul {
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
        gap: 20px;
    }

    .navbar ul {
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 20px;
    }

    .navbar > ul > li {
        position: relative;
        cursor: pointer;
        align-content: center;
    }

    .navbar ul li a {
        text-decoration: none;
        color: var(--text-color);
        transition: color 0.3s ease;
    }

a {
    color: var(--link-color);
    transition: color 0.3s ease;
    padding: 10px;
    text-decoration: none;
    cursor: pointer;
}

.navbar ul li:hover > a {
    color: var(--navbar-logo);
}


/* --- زیرمنو دسکتاپ --- */
.navbar ul li ul {
    position: absolute;
    top: 28px;
    right: 0;
    background: var(--navbar-bg);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

    .navbar ul li:hover > ul,
    .navbar ul li ul:hover {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar ul li ul li {
        padding: 0px 16px;
        padding-left: 80px;
        white-space: nowrap;
        transition: all 0.3s ease;
        transition: background 0.3s ease;
        background: var(--input-bg);
        border-right: 5px solid var(--input-bg);
    }

        .navbar ul li ul li:hover {
            border-right: 5px solid var(--navbar-logo);
            background: linear-gradient(to right, var(--input-bg) 0%,
            /* از 0% تا 50% سفید */
            var(--input-bg) 50%, var(--inner-green) 100%
            /* از 50% تا 100% گرادینت سبز به سفید */
            );
        }

        .navbar ul li ul li a {
            color: var(--text-color);
            display: block;
        }

/* --- موبایل --- */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    transition: all 0.5s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -110%;
    width: 260px;
    height: 100%;
    background: var(--navbar-bg);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    padding: 20px;
    z-index: 2000;
}

    .mobile-menu * {
        position: relative;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
    }

    .mobile-menu li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        position: relative;
    }

        .mobile-menu li a {
            color: var(--text-color);
            text-decoration: none;
            transition: color 0.3s;
            white-space: break-spaces;
        }

        .mobile-menu li:hover > a {
            color: var(--navbar-logo);
        }

        /* زیرمنوی موبایل */
        .mobile-menu li ul {
            display: none;
            padding-right: 15px;
            background: var(--input-inner-bg);
            transition: all 0.5s ease;
            border-radius: 10px;
        }

        .mobile-menu li.open > ul {
            display: block;
        }

.submenu-toggle {
    position: relative;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

    .submenu-toggle i {
        float: left;
    }

.desktop-toggle {
    display: block;
}

.mobile-toggle {
    display: none;
}

@media (max-width: 1852px) {
    .navbar ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
    .mobile-toggle {
        display: none;
    }

    .navbar {
        padding: 12px 0;
    }
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    background: var(--input-bg);
    padding: 30px;
    border-radius: 12px;
    width: 340px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    color: var(--text-color);
    animation: fadeSlideIn 0.8s ease forwards;
    transition: all 0.5s ease;
}

    .login-box img {
        width: 200px;
    }

    .login-box h2 {
        margin-bottom: 60px;
    }

.input-group div {
    display: flex;
}

.input-group input, .input-group select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.5s ease;
    text-align: right;
    margin: 5px;
}

.input-group label {
    margin: 15px 0;
}

.input-group .input-error {
    margin: 5px;
}

.input-group select {
    padding: 10px;
    height: 43px;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.5s ease;
    font-family: mg-light, sans-serif;
}


.input-error {
    color: darkred;
    text-align: right;
}

.btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}


.btn-default {
    background: var(--btn-bg);
    color: #fff;
}

    .btn-default:hover {
        transform: scale(1.05);
    }

.btn-danger {
    background: var(--btn-danger-bg);
}

    .btn-danger:hover {
        transform: scale(1.05);
    }

.btn-secondary {
    background: var(--input-inner-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        transform: scale(1.05);
    }

.btn-link {
    color: var(--link-color);
    font-weight: bold;
    background: none;
}

    .btn-link:hover {
        color: var(--link-hover);
    }

.btn-outline {
    border: 1px solid var(--text-color);
    background: var(--input-bg);
    color: var(--text-color);
}

    .btn-outline:hover {
        transform: scale(1.05);
    }

.btn-sm {
    padding: 0 5px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.5s ease;
    margin-left: 10px;
}


.content-box {
    background: var(--input-bg);
    padding: 30px;
    border-radius: 12px;
    width: 1500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    color: var(--text-color);
    animation: fadeSlideIn 0.8s ease forwards;
    transition: all 0.5s ease;
    margin: auto;
    margin-top: 50px;
}


.dashboard-section {
    width: 50%;
    float: right;
    margin-bottom: 30px;
}

    .dashboard-section a {
        float: right;
    }

    .dashboard-section > div {
        margin: 10px;
    }

    .dashboard-section h3 {
        text-align: right;
        transition: all 0.5s ease;
        font-size: 22px;
        padding-right: 30px;
    }

    .dashboard-section table {
        padding: 10px;
        margin-top: 20px;
        width: 100%;
        background-color: var(--table-bg);
        border-radius: 10px;
        transition: all 0.5s ease;
    }

        .dashboard-section table td {
            padding: 10px;
        }

        .dashboard-section table thead th {
            border-bottom: 1px solid var(--border);
            border-left: 1px solid var(--border);
            padding: 10px;
            transition: all 0.5s ease;
        }

        .dashboard-section table tbody tr td {
        }


.col-xl-1 {
    width: 8.333%;
}

.col-xl-2 {
    width: 16.666%;
}

.col-xl-3 {
    width: 25%;
}

.col-xl-4 {
    width: 33.333%;
}

.col-xl-5 {
    width: 41.666%;
}

.col-xl-6 {
    width: 50%;
}

.col-xl-7 {
    width: 58.333%;
}

.col-xl-8 {
    width: 66.666%;
}

.col-xl-9 {
    width: 75%;
}

.col-xl-10 {
    width: 83.333%;
}

.col-xl-11 {
    width: 91.666%;
}

.col-xl-12 {
    width: 100%;
}

.col-1 {
    width: 8.333%;
}

.col-2 {
    width: 16.666%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.333%;
}

.col-5 {
    width: 41.666%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.333%;
}

.col-8 {
    width: 66.666%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.333%;
}

.col-11 {
    width: 91.666%;
}

.col-12 {
    width: 100%;
}



@media (max-width: 1600px) {
    .content-box {
        width: 1000px;
    }

    .dashboard-section {
        width: 100%;
    }

    .col-lg-1 {
        width: 8.333%;
    }

    .col-lg-2 {
        width: 16.666%;
    }

    .col-lg-3 {
        width: 25%;
    }

    .col-lg-4 {
        width: 33.333%;
    }

    .col-lg-5 {
        width: 41.666%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-7 {
        width: 58.333%;
    }

    .col-lg-8 {
        width: 66.666%;
    }

    .col-lg-9 {
        width: 75%;
    }

    .col-lg-10 {
        width: 83.333%;
    }

    .col-lg-11 {
        width: 91.666%;
    }

    .col-lg-12 {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .content-box {
        width: 800px;
    }

    .col-md-1 {
        width: 8.333%;
    }

    .col-md-2 {
        width: 16.666%;
    }

    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333%;
    }

    .col-md-5 {
        width: 41.666%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-7 {
        width: 58.333%;
    }

    .col-md-8 {
        width: 66.666%;
    }

    .col-md-9 {
        width: 75%;
    }

    .col-md-10 {
        width: 83.333%;
    }

    .col-md-11 {
        width: 91.666%;
    }

    .col-md-12 {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .content-box {
        width: 500px;
    }

    .col-sm-1 {
        width: 8.333%;
    }

    .col-sm-2 {
        width: 16.666%;
    }

    .col-sm-3 {
        width: 25%;
    }

    .col-sm-4 {
        width: 33.333%;
    }

    .col-sm-5 {
        width: 41.666%;
    }

    .col-sm-6 {
        width: 50%;
    }

    .col-sm-7 {
        width: 58.333%;
    }

    .col-sm-8 {
        width: 66.666%;
    }

    .col-sm-9 {
        width: 75%;
    }

    .col-sm-10 {
        width: 83.333%;
    }

    .col-sm-11 {
        width: 91.666%;
    }

    .col-sm-12 {
        width: 100%;
    }
}

@media (max-width: 570px) {
    .content-box {
        width: 85%;
        padding: 20px 0;
    }

    .content > div {
        width: 100%;
    }

        .content > div > div {
            width: 100%;
        }

            .content > div > div > .content-box {
                width: 100%;
            }

    .content > div {
        width: 100%;
    }

    .col-xs-1 {
        width: 8.333%;
    }

    .col-xs-2 {
        width: 16.666%;
    }

    .col-xs-3 {
        width: 25%;
    }

    .col-xs-4 {
        width: 33.333%;
    }

    .col-xs-5 {
        width: 41.666%;
    }

    .col-xs-6 {
        width: 50%;
    }

    .col-xs-7 {
        width: 58.333%;
    }

    .col-xs-8 {
        width: 66.666%;
    }

    .col-xs-9 {
        width: 75%;
    }

    .col-xs-10 {
        width: 83.333%;
    }

    .col-xs-11 {
        width: 91.666%;
    }

    .col-xs-12 {
        width: 100%;
    }


    .mobile-toggle {
        display: block;
    }
    .desktop-toggle {
        display: none;
    }
    .mobile-menu {
        width: 90%;
    }
}

.navigation-bar {
    margin-bottom: 0px;
}

.list-search-box form * {
    float: right;
}

.list-search-box form div {
    display: flex;
}

.list-search-box form .search-id {
    width: 15%;
}

.list-search-box form .search-name {
    width: 70%;
}

.list-search-box form input {
    width: 100%;
}


.list-search-box form div input,
.list-search-box form button {
    height: 40px;
}

.list-search-box form .search-button {
    width: 15%;
}

    .list-search-box form .search-button button {
        width: 100%;
    }

.list-search-box form button i {
    margin: auto;
    display: contents;
}

.list-search-box form div * {
    margin: 5px;
}

span {
    transition: color 1s ease;
}

.list-table {
    width: 100%;
}

    .list-table thead {
        margin-bottom: 50px;
    }

    .list-table th {
        padding: 20px;
        border-radius: 20px;
        margin: 100px;
        font-size: 18px;
    }

    .list-table input {
        padding: 10px;
        border-radius: 6px;
        border: 1px solid var(--input-border);
        background: var(--input-bg);
        color: var(--text-color);
        font-size: 14px;
        box-sizing: border-box;
        transition: all 0.5s ease;
        text-align: right;
        margin: 5px;
    }

    .list-table .btn-link {
        margin: 0 10px;
    }

    .list-table tbody tr td {
        background-color: var(--input-inner-bg);
        transition: all 0.5s ease;
        padding: 10px;
    }

        .list-table tbody tr td.ff {
            border-top-right-radius: 10px;
        }

        .list-table tbody tr td.fl {
            border-top-left-radius: 10px;
        }

        .list-table tbody tr td.lf {
            border-bottom-right-radius: 10px;
        }

        .list-table tbody tr td.ll {
            border-bottom-left-radius: 10px;
        }

.scroll {
    overflow-x: auto;
    overflow-y: auto;
    white-space: nowrap;
}

.file-btn {
    cursor: pointer;
}

    .file-btn:hover {
        background-color: var(--input-inner-bg);
    }

.footer {
    background: var(--navbar-bg);
    color: var(--text-color);
    padding: 20px 40px;
    margin-top: 40px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo h2 {
    margin: 0;
    color: var(--navbar-logo);
}

.footer-links a {
    margin: 0 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-links a:hover {
        color: var(--navbar-logo);
    }

.footer-social a {
    margin: 0 20px;
    font-size: 20px;
    color: var(--text-color);
    transition: color 0.3s;
    padding: 5px;
    float: left;
}

.footer-social p {
    margin: 0;
    padding: 0 10px;
    float: left;
    direction: ltr;
}

.footer-social i {
    float: left;
}

.footer-social a:hover {
    color: var(--navbar-logo);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    border-top: 1px solid var(--card-border);
    padding-top: 10px;
}

.input-error {
    float: right;
    color: red;
}

.arcaptcha {
    padding: 5px;
}

#arc-checkbox {
    width: 100%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* نیمه‌شفاف تا خیلی تاریک نشه */
    backdrop-filter: blur(6px); /* این خط باعث تاری پس‌زمینه میشه */
    -webkit-backdrop-filter: blur(6px); /* برای پشتیبانی در Safari */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

/* خود مودال */
.modal {
    position: fixed; /* همیشه نسبت به صفحه ثابت */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--input-bg);
    color: var(--text-color);
    padding: 20px;
    max-width: 90%;
    max-height: 60vh;
    border-radius: 12px;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 40px -10px black;
}

    .modal.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    .modal table {
        text-align: center;
    }

.modal-sm {
    width: 400px;
}

.modal-md {
    width: 600px;
}

.modal-lg {
    width: 900px;
}

.close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.5s ease;
}

.modal-footer {
    text-align: left;
    margin-top: 20px;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
}

.modal h3 {
    font-size: 25px;
    font-family: mg-bold, sans-serif;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #3498db;
    color: #fff;
}

.page-count-select {
}

    .page-count-select select {
        margin-top: 20px;
        background: var(--input-bg);
        color: var(--text-color);
        font-family: mg-light;
        font-size: 20px;
        border-radius: 10px;
        width: 100%;
        height: 40px;
        transition: all 0.5s ease;
    }

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

    /* متن tooltip */
    .tooltip .tooltip-text {
        position: absolute;
        bottom: 125%; /* بالای دکمه */
        left: 50%;
        transform: translateX(-50%) translateY(10px); /* کمی پایین‌تر در حالت پنهان */

        background-color: var(--input-inner-bg);
        color: var(--text-color);
        text-align: center;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 14px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none; /* کلیک‌پذیر نباشه */
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

        /* فلش کوچک */
        .tooltip .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%; /* پایین tooltip */
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: var(--input-inner-bg) transparent transparent transparent;
        }

    /* نمایش هنگام hover */
    .tooltip:hover .tooltip-text {
        opacity: 1;
        transform: translateX(-50%) translateY(0); /* به بالا بیاد */
    }

.pages-numbers center > div > div {
    padding: 0;
    background-color: var(--input-inner-bg);
    margin: 2px;
    border-radius: 5px;
}

.pages-numbers center > div > div {
    padding: 0;
    background-color: var(--input-inner-bg);
    margin: 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: var(--text-color);
}

    .pages-numbers center > div > div:hover {
        background-color: var(--input-inner-inner-bg);
    }

    .pages-numbers center > div > div > * {
        display: block;
        padding: 5px;
        font-size: 15px;
        color: var(--text-color);
    }

        .pages-numbers center > div > div > *.active {
            background-color: var(--input-inner-inner-bg);
        }

dl dt {
    font-weight: bold;
    float: right;
    margin: 15px 0;
}

dl dd {
    float: right;
    margin: 0;
    margin: 15px 0px;
    text-align: right;
}

dl a {
    float: right;
}

.details-row {
    display: inline-block;
}

    .details-row > div > * {
        float: right;
        padding: 10px;
    }

.users-table {
    min-width: 800px;
}

.create-form form > div {
    float: right;
}

    .create-form form > div > div {
        padding: 10px;
    }

.create-form .buttons > * {
    float: right;
}

.float-right {
    float: right
}

.float-left {
    float: left
}

.result-success {
    margin: auto;
    display: inline-block;
    font-size: 13px;
    color: #24ed2e;
    background-color: #002202;
    border: 1px solid green;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 10px green;
}

.result-failed {
    display: inline-block;
    font-size: 13px;
    color: #edb8b8;
    background-color: #220000;
    border: 1px solid red;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 10px red;
}

.result-warning {
    display: inline-block;
    font-size: 13px;
    color: #f8d2a2;
    background-color: #241400;
    border: 1px solid orange;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0 10px orange;
}

.spinner-border {
    border: 6px solid #f3f3f3; /* رنگ پس‌زمینه */
    border-top: 6px solid #3498db; /* رنگ اصلی */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 50px auto; /* وسط چین */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.details-table {
    height: 500px;
    width: 100%;
    border: 1px solid gray;
    border-radius: 5px;
    overflow-x: auto;
    overflow-y: auto;
    white-space: nowrap;
}

    .details-table table {
        width: 100%;
        text-align: center
    }

        .details-table table thead {
            position: sticky;
            top: 0;
            background-color: var(--input-bg)
        }

        .details-table table th, .details-table table td {
            padding: 5px;
        }


.search-modal form > .input-group {
    display: flex;
}

    .search-modal form > .input-group > input {
        float: left;
        border-radius: 0;
        margin: 0;
        margin-bottom: 20px;
        flex: 1;
    }

    .search-modal form > .input-group > select {
        float: left;
        margin: 0;
        margin-bottom: 20px;
        border-left: none;
        border-radius: 0;
        flex: 1;
    }

.h-content-box {
    background: var(--input-bg);
    padding: 30px;
    border-radius: 12px;
    width: 85vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    color: var(--text-color);
    animation: fadeSlideIn 0.8s ease forwards;
    transition: all 0.5s ease;
    margin-top: 50px;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.a4 {
    background-color: white;
    box-shadow: 0 0 10px -5px black;
    height: 5px;
    position: relative;
}

    .a4 div {
        position: absolute;
        background-color: darkcyan;
        width: 10%;
        height: 10%;
        float: right;
        top: 0;
        right: 0;
    }

.category {
    width: 100%;
}

    .category .item {
        float: right;
        display: flex;
    }

        .category .item a {
            background: var(--input-inner-bg);
            display: block;
            padding: 5px;
            text-align: center;
            width: 100%;
            margin: 5px;
        }

        .category .item.active a {
            background: var(--inner-green);
        }

    .category .return-button {
        display: block;
        width: 100%;
    }

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px
}


label.toggle {
    --offset: calc(var(--w) - var(--knob) - var(--gap));
    position: relative;
    width: var(--w);
    height: var(--h);
    border-radius: 999px;
    background: linear-gradient(90deg,var(--bg-off),#f7f7f7);
    cursor: pointer;
    transition: all 260ms cubic-bezier(.2,.9,.3,1);
    box-shadow: var(--shadow);
    padding: var(--gap);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

    label.toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: var(--gap);
        transform: translateY(-50%);
        width: var(--knob);
        height: var(--knob);
        border-radius: 50%;
        background: white;
        box-shadow: 0 6px 12px rgba(0,0,0,0.12);
        transition: transform 320ms cubic-bezier(.2,.9,.3,1);
    }

    label.toggle.glow {
        background: linear-gradient(90deg,var(--bg-on-1),var(--bg-on-2));
        box-shadow: 0 8px 20px rgba(10,120,255,0.14);
    }

        label.toggle.glow::after {
            transform: translateY(-50%) translateX(var(--offset));
            box-shadow: 0 10px 20px rgba(10,120,255,0.14);
        }


input[type="checkbox"].sr-only {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}


label.text-label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
}
