/* ================================================
   کەلوپەلی کارەبایی عادل - Adil Electric Appliances
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    /* ڕەنگی سەرەکی - ئابی کارەبایی */
    --ae-primary: #0284C7;
    --ae-primary-dark: #0369A1;
    --ae-primary-light: #38BDF8;
    
    /* ڕەنگی دووەم - کەسکی گەرەنتی */
    --ae-secondary: #059669;
    --ae-secondary-dark: #047857;
    
    /* ڕەنگی زەمینە */
    --ae-bg: #F8FAFC;
    --ae-bg-alt: #F1F5F9;
    --ae-white: #FFFFFF;
    
    /* ڕەنگی نووسین */
    --ae-text: #1E293B;
    --ae-text-light: #64748B;
    --ae-text-muted: #94A3B8;
    
    /* ڕەنگی دۆخ */
    --ae-success: #10B981;
    --ae-warning: #F59E0B;
    --ae-danger: #EF4444;
    --ae-info: #3B82F6;
    
    /* سێبەر و border */
    --ae-border: #E2E8F0;
    --ae-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --ae-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
    font-family: 'Noto Sans Arabic', sans-serif;
}

body {
    direction: rtl;
    text-align: right;
    background: var(--ae-bg);
    color: var(--ae-text);
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================================
   ناڤبار
   ================================================ */

.navbar-electric {
    background: linear-gradient(135deg, var(--ae-primary) 0%, var(--ae-primary-dark) 100%);
    box-shadow: var(--ae-shadow);
    padding: 0.75rem 0;
}

.navbar-electric .navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar-electric .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-electric .nav-link:hover,
.navbar-electric .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
}

.navbar-electric .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: var(--ae-shadow-lg);
    text-align: right;
}

/* ================================================
   داشبۆرد
   ================================================ */

.dashboard-hero {
    background: linear-gradient(135deg, var(--ae-primary) 0%, var(--ae-primary-dark) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.dashboard-hero h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.dashboard-hero p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ستات کارتەکان */
.stat-card {
    background: var(--ae-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--ae-shadow);
    transition: transform 0.2s ease;
    border: 1px solid var(--ae-border);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card .stat-icon.blue { background: rgba(2, 132, 199, 0.1); color: var(--ae-primary); }
.stat-card .stat-icon.green { background: rgba(5, 150, 105, 0.1); color: var(--ae-secondary); }
.stat-card .stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--ae-warning); }
.stat-card .stat-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--ae-danger); }

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ae-text);
}

.stat-card .stat-label {
    color: var(--ae-text-light);
    font-size: 0.9rem;
}

/* ================================================
   کارتەکان
   ================================================ */

.card {
    border: 1px solid var(--ae-border);
    border-radius: 12px;
    box-shadow: var(--ae-shadow);
    background: var(--ae-white);
}

.card-header {
    background: var(--ae-bg-alt);
    border-bottom: 1px solid var(--ae-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ================================================
   خشتە
   ================================================ */

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--ae-bg-alt);
    border-bottom: 2px solid var(--ae-border);
    font-weight: 600;
    color: var(--ae-text);
    padding: 1rem 0.75rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--ae-border);
}

.table tbody tr:hover {
    background: var(--ae-bg-alt);
}

/* ================================================
   دوگمەکان
   ================================================ */

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--ae-primary);
    border-color: var(--ae-primary);
}

.btn-primary:hover {
    background: var(--ae-primary-dark);
    border-color: var(--ae-primary-dark);
}

.btn-success {
    background: var(--ae-secondary);
    border-color: var(--ae-secondary);
}

.btn-success:hover {
    background: var(--ae-secondary-dark);
    border-color: var(--ae-secondary-dark);
}

.btn-outline-primary {
    color: var(--ae-primary);
    border-color: var(--ae-primary);
}

.btn-outline-primary:hover {
    background: var(--ae-primary);
    border-color: var(--ae-primary);
}

/* ================================================
   فۆرمەکان
   ================================================ */

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--ae-border);
    padding: 0.625rem 1rem;
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ae-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--ae-text);
    margin-bottom: 0.5rem;
}

/* ================================================
   بەجی دۆخ
   ================================================ */

.badge {
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

.badge.stock-ok { background: rgba(16, 185, 129, 0.1); color: #059669; }
.badge.stock-low { background: rgba(245, 158, 11, 0.1); color: #D97706; }
.badge.stock-out { background: rgba(239, 68, 68, 0.1); color: #DC2626; }
.badge.warranty-active { background: rgba(59, 130, 246, 0.1); color: #2563EB; }
.badge.warranty-expired { background: rgba(100, 116, 139, 0.1); color: #64748B; }

/* ================================================
   کاردی کەلوپەل
   ================================================ */

.product-card {
    background: var(--ae-white);
    border: 1px solid var(--ae-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--ae-shadow-lg);
    transform: translateY(-3px);
}

.product-card .product-image {
    height: 180px;
    background: var(--ae-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image i {
    font-size: 4rem;
    color: var(--ae-text-muted);
}

.product-card .product-body {
    padding: 1.25rem;
}

.product-card .product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-card .product-brand {
    color: var(--ae-text-light);
    font-size: 0.85rem;
}

.product-card .product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ae-primary);
}

/* ================================================
   فووتەر
   ================================================ */

footer {
    background: linear-gradient(135deg, var(--ae-primary-dark) 0%, #0c4a6e 100%);
    color: white;
    padding: 1.25rem 0;
    margin-top: auto;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* ================================================
   کردارە خێراکان
   ================================================ */

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--ae-white);
    border: 1px solid var(--ae-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ae-text);
    transition: all 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--ae-shadow);
    color: var(--ae-primary);
    border-color: var(--ae-primary);
}

.quick-action i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--ae-primary);
}

/* ================================================
   ڕێسپۆنسیڤ
   ================================================ */

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 1.5rem;
    }
    
    .dashboard-hero h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

