/* تحسينات صفحة الدومينات */

/* تحسين العنوان الرئيسي - نظام ألوان هرمي */
.domains-page-header {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #dee2e6;
}

.domains-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #667eea;
    letter-spacing: -0.5px;
}

.domains-page-header p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* تحسين حاوية الفلاتر - تصميم Premium SaaS */
.filter-container {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #dee2e6;
}

/* تحسين أزرار التصنيف - تصميم Chips واضح */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 12px;
}

.category-pill {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.category-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    background: #f9fafb;
    border-color: #d1d5db;
}

.category-pill.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

.category-pill i {
    font-size: 0.95rem;
}

.category-pill span {
    position: relative;
    z-index: 1;
}

/* تحسين الفلاتر الإضافية - تصميم Premium SaaS */
.additional-filters {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.filter-group select {
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.filter-group select:hover {
    border-color: #ced4da;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filter-group select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* تحسين حاوية الدومينات - تصميم Premium SaaS - Compact Mode */
.domains-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 16px !important;
    padding: 24px !important;
    width: 100% !important;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

/* تحسين حاوية التصنيفات - Compact Mode */
.domain-card .domain-card-body {
    padding: 12px 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.domain-card .badges-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 0;
}

.domain-card .badge {
    transition: all 0.2s ease;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.4;
}

/* تحسين البطاقات - تصميم Premium SaaS - Compact Mode */
.domain-card {
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    border: 1px solid #e9ecef !important;
    background: white !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 12px !important;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.domain-card:hover::before {
    opacity: 1;
}

.domain-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    border-color: #667eea !important;
}

/* تحسين البطاقات حسب الحالة - نظام ألوان هرمي */
.domain-card.available {
    border-left: none !important;
}

.domain-card.taken {
    border-left: none !important;
}

.domain-card.analyzing {
    border-left: none !important;
}

.domain-card.pending_delete {
    border-left: none !important;
}

/* تحسين التسلسل الهرمي في البطاقات */
.domain-card .domain-card-header {
    transition: all 0.2s ease;
    padding: 12px 0;
    margin-bottom: 12px;
    padding-right: 60px;
    position: relative;
    overflow: visible;
}

.domain-card .domain-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin: 0;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-overflow: clip;
}

/* Score Badge في البطاقات فقط */
.domain-card .score-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid #d1fae5;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

/* Score Badge في الجداول - إلغاء الموقع المطلق */
table .score-badge {
    position: static !important;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
}

.score-high {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #d1fae5 !important;
}

.score-medium {
    background: #fefce8 !important;
    color: #ca8a04 !important;
    border-color: #fde047 !important;
}

.score-low {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fee2e2 !important;
}

/* تحسين تصميم الأزرار في الفوتر */
.domain-card .domain-card-footer {
    padding: 12px 0 0 0;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.domain-card .card-date {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.domain-card .action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.domain-card .action-btn {
    transition: all 0.2s ease;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.domain-card .action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.domain-card .action-btn:active {
    transform: translateY(0);
}

/* تحسين تأثير التحويم على الشارات - تصميم Premium SaaS - Compact Mode */
.domain-card .badge {
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

/* تصغير شارة الحالة */
.domain-card .status-badge {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* ألوان صامتة للتصنيفات - تصميم Pills مميز */
.badge-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: 2px solid #667eea !important;
}

.badge-keyword {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 2px solid #3b82f6 !important;
}

.badge-brandable {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: #ffffff !important;
    border: 2px solid #dc2626 !important;
}

.badge-excellent-buy {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%) !important;
    color: #ffffff !important;
    border: 2px solid #ff6b6b !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3) !important;
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3) !important;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5) !important;
    }
}

.badge-geo {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 2px solid #10b981 !important;
}

.badge-unknown {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: #ffffff !important;
    border: 2px solid #4b5563 !important;
}

/* ألوان لأنواع الدومينات - مطابقة للوحة التحكم */
.badge-EXACT_MATCH,
.badge-exact_match,
.badge-EXACTMATCH,
.badge-PURE_KEYWORD,
.badge-pure_keyword {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border: 2px solid #8b5cf6 !important;
}

.badge-GEO,
.badge-geo,
.badge-GEO_SERVICE,
.badge-geo_service,
.badge-GEOSERVICE {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 2px solid #10b981 !important;
}

.badge-BRANDABLE,
.badge-brandable,
.badge-BRANDABLE_SHORT,
.badge-brandable_short,
.badge-BRANDABLE_STRONG,
.badge-brandable_strong,
.badge-BRANDABLESHORT,
.badge-BRANDABLESTRONG {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 2px solid #3b82f6 !important;
}

.badge-HYBRID,
.badge-hybrid,
.badge-HYBRID_SAAS,
.badge-hybrid_saas,
.badge-HYBRID_GENERIC,
.badge-hybrid_generic,
.badge-HYBRIDSAAS,
.badge-HYBRIDGENERIC {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: 2px solid #f59e0b !important;
}

.badge-ACRONYM,
.badge-acronym,
.badge-ACRONYMPERSONAL {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
    color: #ffffff !important;
    border: 2px solid #ec4899 !important;
}

.badge-PERSONAL,
.badge-personal,
.badge-PERSONALBRAND {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: 2px solid #6366f1 !important;
}

.badge-NUMERIC,
.badge-numeric,
.badge-NUMERICBRAND {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
    color: #ffffff !important;
    border: 2px solid #14b8a6 !important;
}

/* Dashboard Statistics Cards Enhancement */
.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e5e7eb;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-card-primary {
    background: #f8fafc;
    color: #1e293b;
    border-left: 4px solid #667eea;
}

.stat-card-success {
    background: #f0fdf4;
    color: #1e293b;
    border-left: 4px solid #10b981;
}

.stat-card-danger {
    background: #fef2f2;
    color: #1e293b;
    border-left: 4px solid #ef4444;
}

.stat-card-warning {
    background: #fffbeb;
    color: #1e293b;
    border-left: 4px solid #f59e0b;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon {
    background: #667eea;
    color: white;
}

.stat-card-success .stat-icon {
    background: #10b981;
    color: white;
}

.stat-card-danger .stat-icon {
    background: #ef4444;
    color: white;
}

.stat-card-warning .stat-icon {
    background: #f59e0b;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #1e293b;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    opacity: 1;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: 0.2px;
    color: #475569;
}

.stat-trend {
    font-size: 13px;
    font-weight: 500;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    color: #64748b;
}

.stat-progress {
    margin-top: 12px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.3);
    margin-bottom: 6px;
}

.progress-bar {
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-text {
    font-size: 12px;
    opacity: 0.9;
    text-align: center;
}

.badge-OTHER,
.badge-other {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: #ffffff !important;
    border: 2px solid #6b7280 !important;
}

/* تنسيق افتراضي لأي نوع غير محدد */
.badge:not([class*="badge-"]) {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: #ffffff !important;
    border: 2px solid #6b7280 !important;
}

.badge-available {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #d1fae5 !important;
    font-weight: 700 !important;
}

.badge-taken {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fee2e2 !important;
    font-weight: 700 !important;
}

.badge-analyzing {
    background: #fefce8 !important;
    color: #ca8a04 !important;
    border-color: #fde047 !important;
    font-weight: 700 !important;
}

.badge-pending_delete {
    background: #fff7ed !important;
    color: #ea580c !important;
    border-color: #fed7aa !important;
    font-weight: 700 !important;
}

.badge-exact {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
    color: #ffffff !important;
    border: 2px solid #ee5a5a !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.badge-other {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: #ffffff !important;
    border: 2px solid #5a6268 !important;
}

.badge-mixed {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: 2px solid #d97706 !important;
}

.domain-card:hover .badge {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* تحسين الترقيم - تصميم Premium SaaS */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.pagination-btn:hover {
    background: #f8f9fa;
    color: #212529;
    border-color: #ced4da;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}

.pagination-dots {
    padding: 8px 12px;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
}

/* تحسين حالة عدم وجود دومينات - تصميم Premium SaaS */
.no-domains {
    text-align: center;
    padding: 64px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.no-domains::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.no-domains i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-domains h5 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
}

.no-domains p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 992px) {
    .domains-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 25px !important;
    }
}

@media (max-width: 768px) {
    .domains-page-header {
        padding: 30px 20px;
    }

    .domains-page-header h1 {
        font-size: 1.8rem;
    }

    .domains-page-header p {
        font-size: 1rem;
    }

    .category-pills {
        gap: 8px;
        padding: 5px;
    }

    .category-pill {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .additional-filters {
        flex-direction: column;
        padding: 20px;
        margin-top: 20px;
    }

    .filter-group {
        width: 100%;
        max-width: 100%;
    }

    .domains-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 20px !important;
    }

    .no-domains {
        padding: 50px 20px;
    }

    .no-domains i {
        font-size: 3.5rem;
    }

    .no-domains h5 {
        font-size: 1.5rem;
    }

    .no-domains p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .domains-page-header {
        padding: 25px 15px;
    }

    .domains-page-header h1 {
        font-size: 1.5rem;
    }

    .category-pills {
        gap: 6px;
    }

    .category-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .pagination-container {
        gap: 8px;
    }

    .pagination-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
