body { direction: rtl; background:#f7f7f7; color:#222; }
.container {max-width:900px; margin:30px auto;background:#fff; padding:20px; border-radius:8px; box-shadow:0 4px 18px rgba(0,0,0,0.08);}
.container-admin {max-width:90%; margin:30px auto;background:#fff; padding:20px; border-radius:8px; box-shadow:0 4px 18px rgba(0,0,0,0.08);}
.container-login {max-width:400px; margin:30px auto;background:#fff; padding:20px; border-radius:8px; box-shadow:0 4px 18px rgba(0,0,0,0.08);}
h1 {text-align:center; font-size:26px; margin-bottom:10px;}
label {display:block; margin:10px 0; font-size:14px;}
input[type=text], select, option, input[type=file], textarea{font-family:'Vazir'; width:100%;padding:8px;border:1px solid #ddd;border-radius:4px;box-sizing:border-box;font-size:14px;}
input[type=number]{font-family:'Vazir'; padding:8px; border:1px solid #ddd; border-radius:4px; box-sizing:border-box; font-size:14px;}
button {background:#0b6;color:#fff; border:none;padding:10px 16px; border-radius:6px; cursor:pointer;font-size:16px; font-family:'Vazir', Tahoma, Arial, sans-serif;}
.required {color:#d00;}
.alert {background:#fff7c0; padding:10px; border:1px solid #fde08a; border-radius:6px; margin-bottom:10px;}
.warning {background:#f57a7a; padding:10px; border:1px solid #b52b2b; border-radius:6px; margin-bottom:10px;}
.info-box {background:#eef9ff; border:1px solid #bfe7ff; padding:10px; border-radius:6px; margin-bottom:12px; color:#055;}
.users-table img {width:80px; height:auto; border-radius:4px;}
a {text-decoration: none;}

.spacer {
    height: 20px;   /* مقدار فاصله عمودی */
    width: 100%;
}



/* ----- منوی مدیریت بالای داشبورد ----- */
.admin-nav {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.admin-nav a {
    font-family: 'Vazir', Tahoma, Arial;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333;
    transition: 0.2s;
}

.admin-nav a:hover {
    background: #e1e1e1;
}

.admin-nav a.logout {
    background: #d9534f;
    color: #fff;
}

.admin-nav a.logout:hover {
    background: #c9302c;
}


/* ----- فوتر کلیه صفحات ----- */
.admin-footer {
    text-align: center;
    padding: 15px 0;
    background-color: #f5f5f5;
    font-size: 14px;
    border-top: 1px solid #ddd;
    position: relative; /* برای حالت عادی */
    bottom: 0;
    width: 100%;
}
.admin-footer a {
    text-decoration: none;
    color: #007bff;
}
.admin-footer a:hover {
    text-decoration: underline;
}

.admin-nav a.active {
    background: #0b6 !important;
    color: white !important;
    font-weight: bold;
}

.admin-nav a.active:hover {
    background: #0a5 !important;
}


.check-input {
    padding-left: 30px;          /* فاصله برای تیک سمت چپ */
    background-position: 5px center;
    background-repeat: no-repeat;
    background-size: 24px;
}

.check-input.valid {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="green"><path d="M9 16.2l-3.5-3.5L4 14.2 9 19l12-12-1.5-1.5z"/></svg>');
}

/* ضربدر قرمز */
.check-input.invalid {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='red'><path d='M19 6.4l-1.4-1.4L12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6z'/></svg>");
}


.title-img {
    display: block;
    margin: 0 auto;
}


/* برای مرورگرهای WebKit (Chrome, Edge, Safari) */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select option {
        font-family: 'Vazir' !important;
    }
}

/* ======= نسخه موبایل و تبلت ======= */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-nav a {
        font-size: 18px;
        padding: 12px;
        justify-content: center;
    }
}



.dashboard-stats-box{
    background:#fff;
    border:1px solid #e3e3e3;
    border-radius:12px;
    padding:16px 20px;
    margin-bottom:20px;
    box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.stats-list{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.stats-list li{
    display:flex;
    align-items:center;
    gap:12px;
    flex:1 1 220px;
    background:#f9fafb;
    border-radius:10px;
    padding:12px 14px;
}

.stat-text{
    display:flex;
    flex-direction:column;
}

.stat-text strong{
    font-size:18px;
    color:#222;
}

.stat-text span{
    font-size:13px;
    color:#666;
}

.stat-icon{
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eef2ff;
}

.stat-icon::before{
    content:'';
    width:18px;
    height:18px;
    background-size:contain;
    background-repeat:no-repeat;
}

/* کاربران */
.stat-icon.users::before{
    content: "";
    width: 24px;
    height: 24px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234f46e5'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4 0-8 2-8 6v2h16v-2c0-4-4-6-8-6z'/%3E%3C/svg%3E");
}

/* تکمیل‌شده */
.stat-icon.completed::before{
    content:"";
    width:24px;
    height:24px;
    display:inline-block;
    background-repeat:no-repeat;
    background-size:contain;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23059669'%3E%3Cpath d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E");
}

/* تکمیل‌نشده - ضربدر */
.stat-icon.incomplete::before{
    content:"";
    width:24px;
    height:24px;
    display:inline-block;
    background-repeat:no-repeat;
    background-size:contain;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23dc2626' d='M18.3 5.71 12 12l6.3 6.29-1.41 1.42L10.59 13.4 4.29 19.7 2.88 18.3 9.17 12 2.88 5.7 4.29 4.29l6.3 6.3 6.29-6.3z'/%3E%3C/svg%3E");
}




/* حجم پوشه */
.stat-icon.storage::before{
    content:"";
    width:24px;
    height:24px;
    display:inline-block;
    background-repeat:no-repeat;
    background-size:contain;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b45309'%3E%3Cpath d='M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
}

