body {
    background-color: #d6ebff;
    font-family: Vazir, sans-serif;
    position: relative;
}

.tile {
    border-radius: 5px;
    color: #fff;
    text-align: center;
    padding: 35px 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 10px 0px 20px rgba(52, 152, 219, 0.3);
}

    .tile:hover {
        transform: rotate(-3deg) scale(1.05);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
        animation: tilt 0.6s ease-in-out;
    }

@keyframes tilt {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-3deg) scale(1.05);
    }

    50% {
        transform: rotate(3deg) scale(1.05);
    }

    75% {
        transform: rotate(-2deg) scale(1.05);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.tile i {
    font-size: 42px;
    margin-bottom: 10px;
}

.tile h5 {
    font-size: 1.1rem;
    margin-top: 10px;
}

.header {
    text-align: center;
    margin: 60px 0 40px;
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px 0;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
}


/* رنگ‌ها */

.bg-purple {
    background-color: #6f42c1;
    border: 2px solid #5a36a3;
    position: relative;
    overflow: hidden;
}

.bg-teal {
    background-color: #20c997;
    border: 2px solid #1aa57c;
    position: relative;
    overflow: hidden;
}

.bg-orange {
    background-color: #fd7e14;
    border: 2px solid #d06710;
    position: relative;
    overflow: hidden;
}

.bg-pink {
    background-color: #d63384;
    border: 2px solid #b12a6d;
    position: relative;
    overflow: hidden;
}

.bg-indigo {
    background-color: #6610f2;
    border: 2px solid #520dc7;
    position: relative;
    overflow: hidden;
}

.bg-cyan {
    background-color: #0dcaf0;
    border: 2px solid #0aa3c4;
    position: relative;
    overflow: hidden;
}

.bg-green {
    background-color: #198754;
    border: 2px solid #146b43;
    position: relative;
    overflow: hidden;
}

.bg-red {
    background-color: #dc3545;
    border: 2px solid #b02b37;
    position: relative;
    overflow: hidden;
}

.bg-yellow {
    background-color: #ffc107;
    border: 2px solid #d6a306;
    color: #212529;
    position: relative;
    overflow: hidden;
}

.bg-blue {
    background-color: #0d6efd;
    border: 2px solid #0b5bd3;
    position: relative;
    overflow: hidden;
}

.bg-gray {
    background-color: #6c757d;
    border: 2px solid #575e64;
    position: relative;
    overflow: hidden;
}

.bg-lime {
    background-color: #a3cf62;
    border: 2px solid #87ad52;
    color: #212529;
    position: relative;
    overflow: hidden;
}


    .bg-teal::after, .bg-lime::after, .bg-gray::after, .bg-blue::after, .bg-yellow::after, .bg-red::after, .bg-green::after, .bg-cyan::after, .bg-indigo::after, .bg-orange::after, .bg-purple::after, .bg-pink::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/client/img/persian-bg.png');
        background-position: right bottom;
        background-size: 100%;
        background-repeat: no-repeat;
        opacity: 0.1; /* میزان شفافیت */
        pointer-events: none;
    }
/* استایل کاشی غیرفعال */

.tile.disabled {
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
    cursor: disabled;
}

    .tile.disabled:hover {
        animation: none;
        transform: none;
    }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #73c12c !important;
    border-radius: 5px;
    padding: 15px 25px;
    margin: 40px auto 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .page-header .title {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        font-size: 1.2rem;
        font-family: Kalameh;
    }

.header .title,
.footer .copyright {
    font-family: Kalameh;
}

.page-header .title i {
    font-size: 1.5rem;
}

.page-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

    .page-header .logo i {
        font-size: 1.4rem;
    }

.page-header .back-btn {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease;
}

    .page-header .back-btn:hover {
        background-color: #d1ced5;
    }

.content-box {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px 0;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
}

.is-inactive {
    opacity: 0.6;
    filter: blur(1px) grayscale(100%) contrast(0.5);
    pointer-events: none;
    cursor: not-allowed;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.text-justify {
    text-align: justify;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-area {
    height: 200px;
    max-height: 200px;
    width: 100%;
    min-height: 200px;
}

.ltr {
    direction: ltr;
}

.rtl {
    direction: rtl;
}

.json-content {
    height: 300px;
    min-height: 300px;
    overflow: auto;
    background: #f8f9fa;
    font-family: monospace;
    text-align: left;
}

#jsonOutput details {
    margin: 0;
    padding-left: 10px;
}

#jsonOutput summary {
    cursor: pointer;
    color: #0d6efd;
    font-weight: 500;
}

.json-key {
    color: #d63384;
}

.json-string {
    color: #198754;
}

.json-number {
    color: #0d6efd;
}

.json-boolean {
    color: #fd7e14;
}

.json-null {
    color: #6c757d;
}

.hidden {
    display: none;
}

.select-files {
    width: 100%;
    height: 200px;
    border: 2px dashed #999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

    .select-files:hover {
        border-color: rgba(59,130,246,1) !important;
        background-color: rgb(239 246 255 / 1);
    }

.content-box .position-relative {
    position: relative;
}

    .content-box .position-relative .captcha-img {
        position: absolute;
        left: 15px;
        top: 1px;
        z-index: 1;
        cursor: pointer;
    }


#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-box {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.spinner {
    width: 60px;
    height: 60px;
    animation: rotate 1s linear infinite;
}

.path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

#loading-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.content-alert {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 5px;
    padding: 40px;
    color: white;
}

.btn {
    border-radius: 5px !important;
}
