@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* فونت یکپارچه */
* {
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 400;
}

h1, h2, h3 { font-weight: 600; font-size: clamp(1.5rem, 4vw, 2.5rem); }
p, span, label { font-size: clamp(0.9rem, 2vw, 1rem); }

/* نوار بالا */
.navbar, nav {
    background: rgba(102, 126, 234, 0.15) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* کارت‌های یکسان */
.card, .dashboard-card, .glass-card, .modern-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2)) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }

/* محتوای کارت - رفع همپوشانی */
.card-title, .modern-card h6 {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-text { font-size: clamp(0.8rem, 2vw, 0.9rem); line-height: 1.5; }

/* دکمه‌ها */
.btn, .modern-btn, button {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: white !important;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    transition: all 0.3s;
}

.btn:hover { background: rgba(255,255,255,0.3) !important; transform: translateY(-2px); }

/* فرم‌ها */
input, textarea, select {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.7rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

input::placeholder { color: rgba(255,255,255,0.5) !important; }

/* جدول */
table {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

th { background: rgba(255,255,255,0.15); padding: 1rem; font-size: clamp(0.85rem, 2vw, 0.95rem); }
td { padding: 0.8rem; font-size: clamp(0.8rem, 2vw, 0.9rem); border-color: rgba(255,255,255,0.1); }

/* موبایل */
@media (max-width: 768px) {
    .card { padding: 1rem; margin-bottom: 0.8rem; }
    .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
    h1 { font-size: 1.8rem; }
}
