/* ===== গ্লোবাল স্টাইল ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    overflow-x: hidden;
}

/* ===== স্ক্রলবার কাস্টম ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5a6fd6, #6a3f8f);
}

/* ===== অ্যানিমেশন ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-fade {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-slide {
    animation: slideInLeft 0.6s ease forwards;
}

/* ===== কার্ড হোভার ইফেক্ট ===== */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.card-hover .card-img-top {
    transition: transform 0.5s ease;
}

.card-hover:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== বাটন স্টাইল ===== */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-gradient:active {
    transform: scale(0.95);
}

/* ===== ফর্ম স্টাইল ===== */
.form-gradient {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.form-gradient .form-control {
    border-radius: 12px;
    padding: 12px 18px;
    border: 2px solid #e8ecf1;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-gradient .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-gradient .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

/* ===== টেবিল স্টাইল ===== */
.table-premium {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.table-premium thead {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
}

.table-premium thead th {
    padding: 15px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
}

.table-premium tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f2f5;
}

.table-premium tbody tr:hover {
    background: #f8f9ff;
    transform: scale(1.002);
}

.table-premium tbody td {
    padding: 15px 20px;
    vertical-align: middle;
}

/* ===== সাইডবার স্টাইল ===== */
.sidebar-premium {
    background: linear-gradient(180deg, #1a1a2e, #16213e, #0f3460);
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 20px 0;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-premium .brand {
    font-size: 22px;
    font-weight: 800;
    color: white;
    padding: 0 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-premium .brand i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 10px;
    border-radius: 12px;
    margin-right: 10px;
}

.sidebar-premium .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    margin: 4px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-premium .nav-link i {
    width: 22px;
    font-size: 16px;
}

.sidebar-premium .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(5px);
}

.sidebar-premium .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sidebar-premium .nav-link.logout {
    color: #fc8181;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.sidebar-premium .nav-link.logout:hover {
    background: rgba(252, 129, 129, 0.1);
    color: #fc8181;
}

/* ===== স্ট্যাট কার্ড ===== */
.stat-card-premium {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    position: relative;
    overflow: hidden;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border-radius: 50%;
    transition: all 0.5s ease;
}

.stat-card-premium:hover::before {
    transform: scale(1.5);
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.stat-card-premium .stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card-premium .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
}

.stat-card-premium .stat-label {
    color: #718096;
    font-weight: 500;
    margin-top: 5px;
}

/* ===== প্রোডাক্ট কার্ড (ফ্রন্টএন্ড) ===== */
.product-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
}

.product-card-premium .product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-card-premium .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-premium:hover .product-image img {
    transform: scale(1.08);
}

.product-card-premium .product-image .badge-premium {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.product-card-premium .product-body {
    padding: 20px;
}

.product-card-premium .product-body h5 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.product-card-premium .product-body .price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

/* ===== হিরো সেকশন ===== */
.hero-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-premium::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hero-premium h1 {
    font-size: 48px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.hero-premium p {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ===== লগিন পেজ ===== */
.login-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.login-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-card-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    width: 420px;
    max-width: 95%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* ===== রেস্পন্সিভ ===== */
@media (max-width: 768px) {
    .sidebar-premium {
        height: auto;
        position: relative;
    }
    
    .hero-premium h1 {
        font-size: 28px;
    }
    
    .login-card-premium {
        padding: 30px 20px;
    }
    
    .stat-card-premium .stat-number {
        font-size: 24px;
    }
}

/* ===== টোস্ট নোটিফিকেশন ===== */
.toast-premium {
    background: #1a1a2e;
    color: white;
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #667eea;
}

/* ===== ইউটিলিটি ক্লাস ===== */
.text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.shadow-premium {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}