﻿
body {
    background: #1a1e2c;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-container {
    max-width: 500px;
    width: 100%;
    background: #242837;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

    .qr-container h2 {
        color: #e1e5f0;
        font-size: 24px;
        font-weight: 500;
        margin-bottom: 25px;
        text-align: center;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        color: #9aa4bf;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 8px;
        display: block;
    }

.form-control {
    background: #2d323f;
    border: 1px solid #363b48;
    border-radius: 10px;
    padding: 12px 16px;
    color: #e1e5f0;
    font-size: 15px;
    transition: all 0.2s;
}

    .form-control:focus {
        background: #2d323f;
        border-color: #4f9eff;
        box-shadow: 0 0 0 3px rgba(79, 158, 255, 0.2);
        color: #e1e5f0;
        outline: none;
    }

    .form-control::placeholder {
        color: #5d6478;
        opacity: 1;
    }

.btn-primary {
    background: #4f9eff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-primary:hover {
        background: #3d8eef;
    }

    .btn-primary:disabled {
        background: #3d4b61;
        cursor: not-allowed;
        opacity: 0.7;
    }

.img-thumbnail {
    background: #2d323f;
    border: 1px solid #363b48;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    max-width: 100%;
    height: auto;
}

.text-danger {
    color: #ff6b6b !important;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.loading-spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
}

    .loading-spinner.active {
        display: block;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #363b48;
    border-top: 3px solid #4f9eff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.qr-image-wrapper {
    text-align: center;
    margin-top: 15px;
}

.btn-download {
    background: #3d4b61;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: #e1e5f0;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: background 0.2s;
}

    .btn-download:hover {
        background: #4a5a74;
    }

.hidden {
    display: none !important;
}

.qr-image-wrapper img {
    max-width: 250px;
    margin: 0 auto;
}


/* استایل اختصاصی برای لینک Zhenic */
.zhenic-footer-link {
    position: fixed;
    bottom: 15px;
    left: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px; /* همان سایز اول */
    font-family: Arial, sans-serif;
    z-index: 9999;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    text-decoration: none; /* خط زیر لینک رو برمیداریم */
    cursor: pointer;
    pointer-events: auto; /* مهم: اجازه کلیک می‌دهد */
}

    .zhenic-footer-link:hover {
        opacity: 1;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none; /* باز هم بدون خط زیر */
    }


   /* فونت وزیر*/

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

/* اعمال فونت به کل سایت */
* {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

body {
    direction: rtl;
}

.zhenic-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px;
}

.zhenic-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zhenic-title h1 {
    margin: 0;
    font-size: 24px;
    color: #4f9eff;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

/* اگر h2 داخل qr-container هم هست */
.qr-container h2 {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

 /*برای اینپوت‌ها و دکمه‌ها*/ 
input, button, .form-control, .btn-primary, .btn-download {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

