/* فونت Vazir - ظریف و حرفه‌ای */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    background: linear-gradient(135deg, #fafdff 0%, #e3f2fd 50%, #f0f4f8 100%); /* gradient محو و fluid */
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Particles سوپرایز - نقاط متحرک محو برای fluid حس */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #81d4fa, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(79, 195, 247, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #4fc3f7, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(129, 212, 250, 0.6), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s infinite linear;
    opacity: 0.3;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(360deg); }
}

/* Navbar منحنی و محو */
.navbar {
    background: rgba(255, 255, 255, 0.95); /* محو با opacity */
    backdrop-filter: blur(10px); /* blur سوپرایز */
    border-radius: 0 0 50px 50px; /* منحنی پایین */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* shadow محو */
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); /* منحنی سمت راست */
}

.navbar-brand {
    color: #4fc3f7 !important; /* آبی محو */
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand i {
    margin-left: 0.5rem;
    font-size: 2rem;
    color: #81d4fa; /* آبی محوتر */
    border-radius: 50%; /* منحنی ایکون */
    padding: 0.5rem;
    background: rgba(129, 212, 250, 0.3);
}

.nav-link {
    color: #495057 !important;
    font-weight: 500;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background: rgba(79, 195, 247, 0.2); /* محو hover */
    color: #4fc3f7 !important;
    transform: scale(1.05); /* scale نرم */
}

/* همبرگر منو - زیبا و منحنی */
.navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2879,195,247,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); /* ایکون منحنی سفارشی */
}

.navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 30px 30px;
    margin-top: 1rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* کارت‌های منحنی و floating */
.card {
    border: none;
    border-radius: 30px; /* منحنی بیشتر */
    background: rgba(255, 255, 255, 0.9); /* محو */
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* shadow محو */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* easing نرم */
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%); /* منحنی cloud-like */
    position: relative;
}

.card:hover {
    transform: translateY(-10px) scale(1.02); /* floating hover */
    box-shadow: 0 20px 50px rgba(79, 195, 247, 0.2); /* glow محو */
}

.card-body {
    padding: 2rem;
    border-radius: 25px;
}

.card-header {
    background: linear-gradient(135deg, #4fc3f7 0%, #81d4fa 100%); /* gradient محو */
    color: white;
    border-radius: 25px 25px 0 0;
    font-weight: 500;
}

/* دکمه‌های منحنی */
.btn {
    border-radius: 25px; /* منحنی */
    background: linear-gradient(135deg, #4fc3f7 0%, #81d4fa 100%);
    color: white;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.4);
    background: linear-gradient(135deg, #81d4fa 0%, #4fc3f7 100%);
}

/* فرم‌های محو */
.form-control {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: white;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3); /* glow focus */
    transform: scale(1.02);
}

/* تیترها و متن */
h1, h2, h3 {
    color: #4fc3f7; /* آبی محو */
    font-weight: 400; /* ظریف */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.text-muted { color: #b0bec5 !important; }

/* جدول منحنی */
.table {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.table th {
    background: linear-gradient(135deg, #4fc3f7 0%, #81d4fa 100%);
    color: white;
}

/* Background hero برای index/login */
.hero-bg {
    background: radial-gradient(ellipse at center, #e3f2fd 0%, #fafdff 70%); /* محو radial */
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Footer منحنی */
footer {
    background: linear-gradient(135deg, #4fc3f7 0%, #81d4fa 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    border-radius: 50px 50px 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { border-radius: 0; clip-path: none; }
    .card { margin-bottom: 1.5rem; }
    h1 { font-size: 2rem; }
    .particles::before { opacity: 0.2; } /* کمتر در موبایل */
}

