/* ======================================
   جوانکاری عادل - Adil Beauty CSS
   ====================================== */

/* ڕەنگەکان - Colors */
:root {
    --beauty-primary: #EC4899;
    --beauty-primary-light: #F472B6;
    --beauty-primary-dark: #DB2777;
    --beauty-secondary: #8B5CF6;
    --beauty-accent: #F43F5E;
    --beauty-gold: #D4AF37;
    --beauty-rose: #FDF2F8;
    --beauty-gradient: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    --beauty-gradient-light: linear-gradient(135deg, #FDF2F8 0%, #F5F3FF 100%);
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
    --shadow-lg: 0 10px 40px rgba(236, 72, 153, 0.2);
}

/* فۆنت */
* {
    font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: var(--beauty-gradient-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

/* ناڤبار */
.navbar-beauty {
    background: var(--beauty-gradient);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

.navbar-beauty .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 0.5px;
}

.navbar-beauty .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.6rem 1.1rem !important;
    border-radius: 10px;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.navbar-beauty .nav-link:hover,
.navbar-beauty .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
}

.navbar-beauty .dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 10px;
    background: var(--white);
}

.navbar-beauty .dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.navbar-beauty .dropdown-item:hover {
    background: var(--beauty-rose);
    color: var(--beauty-primary);
}

.navbar-beauty .dropdown-item i {
    color: var(--beauty-primary);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.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%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* فووتەر */
footer {
    background: var(--beauty-gradient);
    color: var(--white);
    padding: 1.5rem 0;
    margin-top: auto;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: var(--white);
}

/* کارتەکان */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--beauty-gradient-light);
    border-bottom: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* دوگمەکان */
.btn-beauty {
    background: var(--beauty-gradient);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-beauty:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--white);
}

.btn-beauty-outline {
    border: 2px solid var(--beauty-primary);
    color: var(--beauty-primary);
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-beauty-outline:hover {
    background: var(--beauty-gradient);
    color: var(--white);
    border-color: transparent;
}

/* ئامارەکان */
.stat-card {
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-right: 4px solid var(--beauty-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--beauty-rose);
    color: var(--beauty-primary);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* کاتەگۆری کارتەکان */
.category-card {
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card .category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    background: var(--beauty-rose);
    color: var(--beauty-primary);
}

.category-card .category-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.category-card .category-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* بەرهەم کارتەکان */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-image {
    height: 200px;
    background: var(--beauty-gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--beauty-primary);
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-body {
    padding: 1.25rem;
}

.product-card .product-category {
    display: inline-block;
    background: var(--beauty-rose);
    color: var(--beauty-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-card .product-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-card .product-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-card .product-price {
    font-weight: 700;
    color: var(--beauty-primary);
    font-size: 1.25rem;
}

.product-card .product-price .old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* ئینپوتەکان */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--beauty-primary);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* خشتەکان */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: var(--beauty-gradient);
    color: var(--white);
}

.table thead th {
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--beauty-rose);
}

/* بەیج */
.badge-beauty {
    background: var(--beauty-gradient);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-organic {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: var(--white);
}

.badge-lowstock {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: var(--white);
}

.badge-outstock {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    color: var(--white);
}

/* هێرۆ -->
.hero-section {
    background: var(--beauty-gradient);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* کوییک ئەکشنەکان */
.quick-action {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: block;
}

.quick-action:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-action .action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    background: var(--beauty-gradient);
    color: var(--white);
}

.quick-action .action-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* پەیجینەیشن */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 3px;
    border: none;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: var(--beauty-rose);
    color: var(--beauty-primary);
}

.pagination .page-item.active .page-link {
    background: var(--beauty-gradient);
    color: var(--white);
}

/* Alert */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.alert-beauty {
    background: var(--beauty-rose);
    color: var(--beauty-primary-dark);
    border-right: 4px solid var(--beauty-primary);
}

/* لۆدینگ */
.loading-beauty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.loading-beauty::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--beauty-rose);
    border-top-color: var(--beauty-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: var(--beauty-primary);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Expiry Warning */
.expiry-warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #92400E;
}

.expiry-danger {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
}

/* ڕیسپۆنسیڤ */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
}

