﻿/* تعریف فونت و متغیرهای رنگی برای طراحی مدرن */
/*@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700&display=swap');*/
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 400;
    src: url("../Assets/WebFonts/IRANSansWeb_Regular.woff2") format("woff2");
}

:root {
    --bg-color: #f4f7f6;
    --text-color: #2d3748;
    --card-bg: #ffffff;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-smooth: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'IRANSans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 5%, var(--color-rgb-99-102-241-12), transparent 26%), radial-gradient(circle at 92% 90%, var(--color-rgb-14-165-233-13), transparent 24%), var(--bg-color);
}

#adminForm {
    width: 100%;
    min-width: 0;
}

.dashboard-panel {
    display: block;
    width: 100%;
    min-width: 0;
}

.dashboard-shell {
    width: 100%;
    max-width: 1400px;
    min-width: 0;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.page-decoration {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
    opacity: .75;
}

.decoration-one {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--color-rgb-102-126-234-15), var(--color-rgb-118-75-162-04));
    top: -100px;
    right: -55px;
}

.decoration-two {
    width: 190px;
    height: 190px;
    background: linear-gradient(135deg, var(--color-rgb-14-165-233-13), var(--color-rgb-16-185-129-03));
    bottom: -65px;
    left: -45px;
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-frame {
    width: 78px;
    height: 78px;
    background: var(--color-hex-fff);
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 12px 25px var(--color-rgb-79-70-229-13);
    transform: rotate(-3deg);
}

    .logo-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 14px;
    }

.eyebrow {
    color: var(--color-hex-6366f1);
    font-size: .74rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.landing-header h1 {
    color: var(--color-hex-1e293b);
    font-size: 2rem;
    margin: 0 0 4px;
    font-weight: 800;
}

.landing-header p {
    color: var(--color-hex-718096);
    font-size: .84rem;
    margin: 0;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--color-rgb-255-255-255-7);
    border: 1px solid var(--color-rgb-255-255-255-9);
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--color-rgb-15-23-42-05);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--color-hex-22c55e);
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--color-rgb-34-197-94-12);
}

.header-status strong, .header-status small {
    display: block;
}

.header-status strong {
    color: var(--color-hex-334155);
    font-size: .78rem;
}

.header-status small {
    color: var(--color-hex-94a3b8);
    font-size: .66rem;
    margin-top: 3px;
}

.status-icon {
    color: var(--color-hex-6366f1);
    font-style: normal;
    font-size: 1.25rem;
    margin-right: 7px;
}

.welcome-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    margin-bottom: 22px;
    border-radius: 22px;
    color: var(--color-hex-fff);
    overflow: hidden;
    position: relative;
    background: linear-gradient(115deg,var(--color-hex-4338ca) 0%,var(--color-hex-6366f1) 50%,var(--color-hex-0ea5e9) 100%);
    box-shadow: 0 15px 30px var(--color-rgb-79-70-229-22);
}

    .welcome-strip:after {
        content: '';
        position: absolute;
        width: 210px;
        height: 210px;
        border: 30px solid var(--color-rgb-255-255-255-1);
        border-radius: 50%;
        left: -65px;
        top: -95px;
    }

    .welcome-strip > div {
        position: relative;
        z-index: 1;
    }

.welcome-kicker {
    font-size: .7rem;
    opacity: .78;
}

.welcome-strip h2 {
    margin: 5px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.quick-stats {
    display: flex;
    gap: 20px;
    font-size: .73rem;
    opacity: .9;
}

    .quick-stats b {
        font-size: 1.05rem;
        margin-left: 4px;
    }

/* هدر صفحه */
.header {
    text-align: center;
    margin-bottom: 40px;
}

    .header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--color-hex-1a202c);
        margin-bottom: 10px;
    }

    .header p {
        color: var(--color-hex-718096);
        font-size: 1.1rem;
    }

/* کانتینر اصلی کارت‌ها با CSS Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    width: 100%;
    min-width: 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* استایل کلی کارت‌ها به عنوان لینک */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-smooth);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    position: relative;
}

    /* افکت زمان قرار گرفتن موس روی کارت */
    .card-link:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
    }

/* بخش تصویر کارت */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

    .card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.card-link:hover .card-image-wrapper img {
    transform: scale(1.1);
}

/* لایه رنگی روی تصویر برای خوانایی بهتر متن در صورت نیاز */
.card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, var(--color-rgb-0-0-0-0-4));
}

/* محتوای متنی کارت */
.card-content {
    padding: 25px;
    position: relative;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-hex-1a202c);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.card-link:hover .card-title {
    color: var(--color-hex-4a5568);
}

.card-description {
    font-size: 0.65rem;
    color: var(--color-hex-718096);
    line-height: 1.6;
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--color-hex-94a3b8);
    font-size: .68rem;
    padding: 18px 4px 0;
}

    .landing-footer i {
        color: var(--color-hex-22c55e);
        font-style: normal;
        margin-left: 5px;
    }

/* شخصی‌سازی برای صفحه‌های خیلی بزرگ */
@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 700px) {
    body {
        padding: 20px 14px 16px;
    }

    .landing-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .logo-frame {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .landing-header h1 {
        font-size: 1.55rem;
    }

    .header-status {
        align-self: stretch;
    }

    .welcome-strip {
        align-items: flex-start;
        flex-direction: column;
        padding: 19px;
    }

    .quick-stats {
        width: 100%;
        justify-content: space-between;
    }

    .landing-footer {
        flex-direction: column;
        gap: 5px;
    }
}

.card-title {
    transform: translateX(25px);
    transition: all .3s ease-in-out
}
.bi-hover {
    opacity: 0;
    transform: translateX(20px);
    transition: all .3s ease-in-out
}
.card-link:hover .bi-hover {
    opacity: 1;
    transform:translateX(0);
    margin-left: -5px;
}
.card-link:hover .card-title {
    transform:translateX(0);
}

.login-screen {
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 30px 16px;
    position: relative;
    overflow: hidden;
}

.login-card {
    width: min(100%, 440px);
    padding: 34px;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(30,41,59,.14), 0 4px 14px rgba(79,70,229,.06);
    backdrop-filter: blur(18px);
}

.login-brand { display:flex; align-items:center; gap:13px; margin-bottom:34px; }
.login-logo { width:54px; height:54px; padding:5px; border-radius:17px; background:#fff; box-shadow:0 8px 22px rgba(79,70,229,.15); }
.login-logo img { width:100%; height:100%; object-fit:cover; border-radius:13px; }
.login-brand .eyebrow { margin:0; font-size:.82rem; }
.login-heading { text-align:center; margin-bottom:27px; }
.login-heading-icon { width:58px; height:58px; margin:0 auto 12px; display:grid; place-items:center; border-radius:19px; color:#4f46e5; background:linear-gradient(145deg,#eef2ff,#e0f2fe); font-size:1.45rem; }
.login-heading h1 { margin:0 0 8px; color:#1e293b; font-size:1.45rem; font-weight:800; }
.login-heading p { margin:0; color:#64748b; font-size:.78rem; line-height:1.9; }
.login-field { margin-top:17px; }
.login-field label { display:block; margin-bottom:8px; color:#334155; font-weight:700; font-size:.76rem; }
.login-input-wrap { height:52px; display:flex; align-items:center; gap:11px; padding:0 15px; border:1px solid #e2e8f0; border-radius:14px; background:#f8fafc; transition:border-color .2s, box-shadow .2s, background .2s; }
.login-input-wrap:focus-within { border-color:#818cf8; background:#fff; box-shadow:0 0 0 4px rgba(99,102,241,.11); }
.login-input-wrap > i { color:#94a3b8; font-size:1.05rem; }
.login-input { width:100%; min-width:0; border:0; outline:0; color:#1e293b; background:transparent; font:inherit; font-size:.8rem; direction:ltr}
.login-input::placeholder { color:#a3afbf; }
.login-submit { width:100%; height:52px; margin-top:23px; border:0; border-radius:14px; color:#fff; background:linear-gradient(110deg,#4f46e5,#2563eb 58%,#0ea5e9); box-shadow:0 10px 22px rgba(79,70,229,.22); font:inherit; font-weight:700; font-size:.86rem; cursor:pointer; transition:transform .2s, box-shadow .2s; }
.login-submit:hover { transform:translateY(-2px); box-shadow:0 14px 26px rgba(79,70,229,.3); }
.login-error { display:block; margin-top:13px; padding:10px 12px; border:1px solid #fecaca; border-radius:12px; color:#b91c1c; background:#fef2f2; font-size:.72rem; line-height:1.8; }
.login-security { display:flex; align-items:center; justify-content:center; gap:7px; margin-top:17px; color:#94a3b8; font-size:.67rem; }
.login-security i { color:#22a06b; }
.login-footer { display:flex; justify-content:space-between; gap:12px; margin-top:27px; padding-top:17px; border-top:1px solid #eef2f7; color:#94a3b8; font-size:.65rem; }
.login-footer > span { display:flex; align-items:center; gap:7px; }
.login-footer .status-dot { width:7px; height:7px; box-shadow:none; }
.logout-button { padding:7px 12px; border:1px solid #e2e8f0; border-radius:10px; color:#64748b; background:#fff; font:inherit; font-size:.7rem; cursor:pointer; margin-right:auto}
.logout-button:hover { color:#dc2626; border-color:#fecaca; background:#fff7f7; }

@media (max-width: 480px) {
    .login-card { padding:27px 22px; border-radius:23px; }
    .login-brand { margin-bottom:27px; }
}
