@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap'); :root { --primary-color: #846324; --secondary-color: #846324; --accent-color: #1e4164; --error-color: #dc3545; --success-color: #28a745; --warning-color: #ffc107; --info-color: #17a2b8; --bg-light: #f8f9fa; --bg-dark: #343a40; --text-dark: #333; --text-light: #f8f9fa; --text-muted: #6c757d; --dark-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); --border-radius: 15px; --border-radius-sm: 8px; --border-radius-lg: 20px; --transition-speed: 0.3s; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; } body { height: 100vh; display: flex; justify-content: center; align-items: center; background-color: transparent; overflow: hidden; } /* Tablet Device Styling - ENHANCED */ #tablet-container { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; opacity: 0; transform: translateY(20px); animation: fadeIn 0.5s ease forwards; } @keyframes fadeIn { to { opacity: 1; transform: translateY(0); } } @keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } } /* UPDATED: Wider tablet with improved borders */ #tablet-frame { width: 70vw; /* Increased from 50vw */ max-width: 1300px; /* Increased from 1000px */ height: 85vh; background: linear-gradient(145deg, #222, #111); border-radius: 25px; /* Increased from 20px */ padding: 10px; /* Increased from 5px */ box-shadow: var(--dark-shadow), inset 0 0 10px rgba(255, 255, 255, 0.1); position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); } /* iPad status bar with animations */ .ipad-status-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; background-color: rgba(0, 0, 0, 0.7); color: white; font-size: 0.8rem; border-radius: 15px 15px 0 0; margin-bottom: 5px; } .status-time { font-weight: 500; } .status-icons i { margin-left: 10px; opacity: 0.8; } .status-icons i:hover { opacity: 1; } /* Animation for wifi icon */ .fa-wifi { animation: pulse 2s infinite; } @keyframes pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } } #tablet-screen { width: 100%; height: calc(100% - 40px); background-color: var(--bg-light); border-radius: 15px; overflow: hidden; position: relative; box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1); } /* Improved home button with animation */ .tablet-home-button { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(145deg, #222, #333); position: absolute; bottom: 10px; cursor: pointer; transition: all 0.3s; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); } .tablet-home-button::after { content: ""; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 5px; transition: all 0.3s; } .tablet-home-button:hover { transform: scale(1.05); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); } .tablet-home-button:hover::after { border-color: rgba(255, 255, 255, 0.8); } /* General Screen Styles */ .active-screen { display: block; animation: screenFadeIn 0.5s ease; } @keyframes screenFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .hidden-screen { display: none; } /* Enhanced Navigation Header */ .nav-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; background: linear-gradient(to bottom, white, #f8f9fa); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); position: relative; z-index: 10; } .logo-section { display: flex; align-items: center; } .saudi-logo { width: 45px; height: 45px; margin-left: 15px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1)); transition: transform 0.3s; } .saudi-logo:hover { transform: scale(1.05); } .vision-logo { height: 28px; transition: transform 0.3s; } .vision-logo:hover { transform: scale(1.05); } .title-section { display: flex; flex-direction: column; } .title-section h1 { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); letter-spacing: 0.5px; } .title-section h3 { font-size: 0.9rem; color: #555; } .language-section { display: flex; align-items: center; color: #555; cursor: pointer; padding: 8px 12px; border-radius: 20px; transition: all 0.3s; background-color: rgba(0, 0, 0, 0.03); } .language-section:hover { background-color: rgba(0, 0, 0, 0.08); transform: translateY(-2px); } .language-section i { margin-right: 8px; color: var(--primary-color); } .user-section { display: flex; align-items: center; } /* Enhanced Verification Screen */ #verification-screen { width: 100%; height: 100%; background: url('https://www.absher.sa/portal/individuals/img/home-hero.b84e2c75.png') no-repeat center center; background-size: cover; position: relative; } #verification-screen::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 108, 53, 0.7), rgba(30, 65, 100, 0.7)); z-index: 1; } .verification-content { display: flex; justify-content: center; align-items: center; height: calc(100% - 60px); position: relative; z-index: 2; } .user-info-card { background-color: white; border-radius: 15px; padding: 40px; width: 85%; max-width: 600px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.05); transform: translateY(0); transition: transform 0.3s; position: relative; overflow: hidden; } .user-info-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 8px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); } .user-info-card:hover { transform: translateY(-5px); } #player-name { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 10px; font-weight: 700; } #player-rank { font-size: 1.3rem; color: #555; margin-bottom: 25px; font-weight: 500; } .verification-message { font-size: 1.2rem; color: #333; margin-bottom: 35px; line-height: 1.6; } #enter-system-btn { background: linear-gradient(90deg, var(--secondary-color), #6e5115); color: white; border: none; padding: 14px 40px; border-radius: 30px; font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(132, 99, 36, 0.4); position: relative; overflow: hidden; } #enter-system-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: all 0.6s; } #enter-system-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(132, 99, 36, 0.5); } #enter-system-btn:hover::before { left: 100%; } #enter-system-btn:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(132, 99, 36, 0.4); } /* Enhanced Main Screen */ #main-screen { width: 100%; height: 100%; background-color: var(--bg-light); background-image: radial-gradient(circle at 10% 20%, rgba(0, 108, 53, 0.03) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(132, 99, 36, 0.03) 0%, transparent 20%); } .main-content { padding: 15px 25px; height: calc(100% - 60px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.2) transparent; } .main-content::-webkit-scrollbar { width: 8px; } .main-content::-webkit-scrollbar-track { background: transparent; } .main-content::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; } .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0px; margin-top: 0px; max-width: 100%; } .service-card { background-color: white; border-radius: 15px; padding: 30px 20px; text-align: center; box-shadow: var(--light-shadow); transition: all 0.4s; cursor: pointer; position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.05); } .service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); z-index: -1; opacity: 0; transition: opacity 0.4s; } .service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1); } .service-card:hover::before { opacity: 0.9; } .service-card:hover i, .service-card:hover h3 { color: white; } .service-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; transition: all 0.4s; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } /* خاص بكارت البحث عن المركبات */ #vehicle-search-btn i { color: var(--accent-color); } #vehicle-search-btn::before { background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); } .service-card h3 { font-size: 1.2rem; color: #333; transition: all 0.4s; font-weight: 600; } #logout-button, .back-button { background: linear-gradient(90deg, var(--error-color), #c82333); color: white; border: none; padding: 10px 20px; border-radius: 30px; cursor: pointer; font-size: 0.95rem; font-weight: 500; transition: all 0.3s; box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2); display: flex; align-items: center; } #logout-button i, .back-button i { margin-left: 8px; } #logout-button:hover, .back-button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3); } .back-button { background: linear-gradient(90deg, var(--accent-color), #162b42); box-shadow: 0 2px 10px rgba(30, 65, 100, 0.2); } .back-button:hover { box-shadow: 0 5px 15px rgba(30, 65, 100, 0.3); } /* خاص بزر الرجوع في صفحة المركبات */ #vehicle-back-btn { background: linear-gradient(90deg, var(--secondary-color), #6e5115); box-shadow: 0 2px 10px rgba(132, 99, 36, 0.2); } #vehicle-back-btn:hover { box-shadow: 0 5px 15px rgba(132, 99, 36, 0.3); } /* Citizen & Vehicle Search Screen Styles */ #citizen-search-screen, #vehicle-search-screen { width: 100%; height: 100%; background-color: var(--bg-light); } /* خلفية مختلفة لصفحة البحث عن المركبات */ #vehicle-search-screen { background-image: radial-gradient(circle at 20% 80%, rgba(30, 65, 100, 0.03) 0%, transparent 20%), radial-gradient(circle at 80% 20%, rgba(132, 99, 36, 0.03) 0%, transparent 20%); } .search-container { background-color: white; border-radius: var(--border-radius); padding: 30px; box-shadow: var(--light-shadow); height: 100%; } .search-header { margin-bottom: 25px; text-align: center; } .search-header h2 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 10px; } /* خاص بعنوان صفحة البحث عن المركبات */ #vehicle-search-screen .search-header h2 { color: var(--accent-color); } .search-header p { color: var(--text-muted); font-size: 1rem; } .search-box { display: flex; margin-bottom: 30px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); border-radius: var(--border-radius); overflow: hidden; } #citizen-search-input, #vehicle-search-input { flex: 1; padding: 15px 20px; border: none; font-size: 1.1rem; outline: none; } /* خاص بحقل البحث عن المركبات */ #vehicle-search-input { background-color: #f8f9fa; color: var(--text-dark); } #vehicle-search-input::placeholder { color: #6c757d; font-style: italic; } #citizen-search-submit { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); color: white; border: none; padding: 0 25px; font-size: 1.2rem; cursor: pointer; transition: all 0.3s; } #citizen-search-submit:hover { background: linear-gradient(90deg, #005a2e, #173652); } /* خاص بزر البحث عن المركبات */ #vehicle-search-submit { background: linear-gradient(90deg, var(--accent-color), var(--secondary-color)); color: white; border: none; padding: 0 25px; font-size: 1.2rem; cursor: pointer; transition: all 0.3s; } #vehicle-search-submit:hover { background: linear-gradient(90deg, #173652, #6e5115); } .citizens-list-container { background-color: #f8f9fa; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); height: calc(100% - 180px); display: flex; flex-direction: column; } .citizens-list-header { background-color: var(--primary-color); color: white; padding: 15px 20px; } /* خاص بهيدر قائمة المركبات */ #vehicle-search-screen .citizens-list-header { background-color: var(--accent-color); } .citizen-item-header { display: flex; font-weight: 600; } .citizen-name { flex: 2; } .citizen-phone { flex: 1; text-align: center; } .citizen-actions { flex: 1; text-align: center; } /* خاص بهيدر المركبات - 4 أعمدة */ #vehicle-search-screen .citizen-item-header { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 1fr; gap: 10px; } #vehicle-search-screen .citizen-item { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 1fr; gap: 10px; align-items: center; } .citizens-list { flex: 1; overflow-y: auto; padding: 10px; } .citizen-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #e9ecef; transition: background-color 0.2s; } .citizen-item:hover { background-color: #e9ecef; } .citizen-item:last-child { border-bottom: none; } .citizen-item .citizen-name { flex: 2; font-weight: 500; } .citizen-item .citizen-phone { flex: 1; text-align: center; color: var(--text-muted); } .citizen-item .citizen-actions { flex: 1; text-align: center; } .view-citizen-btn { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); color: white; border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; } .view-citizen-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); } /* خاص بأزرار صفحة المركبات */ #vehicle-search-screen .view-citizen-btn { background: linear-gradient(90deg, var(--accent-color), var(--secondary-color)); font-size: 0.85rem; padding: 6px 12px; } #vehicle-search-screen .view-citizen-btn:hover { background: linear-gradient(90deg, #173652, #6e5115); } .loading-spinner { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; color: var(--text-muted); } .loading-spinner i { font-size: 2rem; margin-bottom: 15px; } /* خاص بأيقونة التحميل في صفحة المركبات */ #vehicle-search-screen .loading-spinner i { color: var(--accent-color); } /* Database Screen Styles - مع إصلاح مشكلة التمرير */ #citizen-database-screen { width: 100%; height: 100%; background-color: var(--bg-light); } .database-content { padding: 20px; height: calc(100% - 60px); /* تحديد ارتفاع ثابت */ overflow-y: auto; /* تمكين التمرير */ scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.2) transparent; } .database-content::-webkit-scrollbar { width: 8px; } .database-content::-webkit-scrollbar-track { background: transparent; } .database-content::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; } .database-container { background-color: white; border-radius: var(--border-radius); padding: 30px; box-shadow: var(--light-shadow); min-height: 100%; /* تغيير من height إلى min-height لضمان التمرير */ } .database-header { margin-bottom: 30px; text-align: center; } .database-header h2 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 10px; } .database-header p { color: var(--text-muted); font-size: 1rem; } .citizen-profile { display: flex; gap: 30px; flex-wrap: wrap; /* إضافة flex-wrap للاستجابة */ } .citizen-photo-container { width: 250px; min-width: 250px; /* ضمان عدم تقلص العرض */ display: flex; flex-direction: column; align-items: center; } .citizen-photo { width: 200px; height: 200px; border-radius: 10px; background-color: #e9ecef; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .citizen-photo i { font-size: 5rem; color: #adb5bd; } .citizen-photo img { width: 100%; height: 100%; object-fit: cover; } #take-mugshot-btn { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); color: white; border: none; padding: 10px 20px; border-radius: 20px; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; display: flex; align-items: center; } #take-mugshot-btn i { margin-left: 8px; } #take-mugshot-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); } .citizen-details { flex: 1; min-width: 300px; /* ضمان حد أدنى للعرض */ } #citizen-full-name { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 20px; font-weight: 700; } .details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* تحسين الاستجابة */ gap: 30px; margin-bottom: 30px; } .details-section { background-color: #f8f9fa; border-radius: var(--border-radius-sm); padding: 20px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); } .details-section h4 { color: var(--accent-color); margin-bottom: 15px; font-size: 1.2rem; padding-bottom: 10px; border-bottom: 1px solid #dee2e6; } .detail-item { display: flex; margin-bottom: 10px; font-size: 1rem; flex-wrap: wrap; /* إضافة flex-wrap للاستجابة */ } .detail-label { font-weight: 600; width: 140px; min-width: 140px; /* ضمان عدم تقلص العرض */ color: var(--text-dark); } .detail-value { flex: 1; color: var(--text-muted); word-break: break-word; /* كسر الكلمات الطويلة */ } /* إصلاح قسم المركبات */ .vehicles-section { background-color: #f8f9fa; border-radius: var(--border-radius-sm); padding: 20px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); margin-top: 20px; /* إضافة مساحة من الأعلى */ } .vehicles-section h4 { color: var(--accent-color); margin-bottom: 15px; font-size: 1.2rem; padding-bottom: 10px; border-bottom: 1px solid #dee2e6; } .vehicles-list-container { background-color: white; border-radius: var(--border-radius-sm); overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .vehicles-list-header { background-color: var(--primary-color); color: white; padding: 10px 15px; } .vehicle-item-header { display: flex; font-weight: 600; } .vehicle-name { flex: 2; min-width: 0; /* إصلاح مشكلة القطع */ } .vehicle-plate { flex: 1; text-align: center; min-width: 120px; /* ضمان مساحة كافية للوحة */ } #vehicles-list { max-height: 300px; /* زيادة الارتفاع الأقصى */ overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.2) transparent; } #vehicles-list::-webkit-scrollbar { width: 6px; } #vehicles-list::-webkit-scrollbar-track { background: transparent; } #vehicles-list::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; } .vehicle-item { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid #e9ecef; min-height: 50px; /* ضمان ارتفاع كافي */ } .vehicle-item:last-child { border-bottom: none; } .vehicle-item .vehicle-name { flex: 2; font-weight: 500; min-width: 0; /* إصلاح مشكلة القطع */ word-wrap: break-word; /* كسر الكلمات الطويلة */ overflow-wrap: break-word; hyphens: auto; /* إضافة الواصلات التلقائية */ line-height: 1.4; /* تحسين المسافة بين الأسطر */ } .vehicle-item .vehicle-plate { flex: 1; text-align: center; font-family: monospace; font-size: 1.1rem; background-color: #f8f9fa; padding: 3px 8px; border-radius: 5px; display: inline-block; min-width: 100px; /* ضمان مساحة كافية */ margin-right: 10px; } .license-item { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #e9ecef; } .license-item:last-child { border-bottom: none; } .license-name { flex: 1; font-weight: 500; } .license-status { padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; margin-right: 10px; } .status-active { background-color: rgba(40, 167, 69, 0.1); color: var(--success-color); } .status-expired { background-color: rgba(220, 53, 69, 0.1); color: var(--error-color); } .empty-state { padding: 20px; text-align: center; color: var(--text-muted); } .empty-state i { font-size: 2rem; margin-bottom: 10px; } /* خاص بالحالة الفارغة في صفحة المركبات */ #vehicle-search-screen .empty-state i { color: var(--accent-color); } /* تحسينات خاصة برقم اللوحة */ .vehicle-plate-number { font-family: 'Courier New', monospace; font-weight: bold; font-size: 1.1rem; background: linear-gradient(135deg, #f8f9fa, #e9ecef); padding: 4px 8px; border-radius: 8px; border: 2px solid #dee2e6; display: inline-block; letter-spacing: 1px; text-align: center; min-width: 80px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); } /* تأثيرات إضافية للمركبات */ #vehicle-search-screen .citizen-item:hover { background: linear-gradient(90deg, rgba(30, 65, 100, 0.03), rgba(132, 99, 36, 0.03)); transform: translateX(5px); } /* Responsive Adjustments */ @media (max-width: 1200px) { #tablet-frame { width: 80vw; } .citizen-profile { flex-direction: column; } .citizen-photo-container { width: 100%; margin-bottom: 20px; } .details-grid { grid-template-columns: 1fr; } /* تحسين الاستجابة لجدول المركبات */ #vehicle-search-screen .citizen-item-header, #vehicle-search-screen .citizen-item { grid-template-columns: 1.5fr 1fr 1fr 0.8fr; gap: 5px; } } @media (max-width: 992px) { #tablet-frame { width: 90vw; } .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } /* تكييف جدول المركبات للأجهزة المتوسطة */ #vehicle-search-screen .citizen-item-header, #vehicle-search-screen .citizen-item { grid-template-columns: 1fr; gap: 10px; text-align: center; } } @media (max-width: 768px) { #tablet-frame { width: 95vw; height: 95vh; } .user-info-card { width: 90%; padding: 30px; } #player-name { font-size: 1.8rem; } .vehicle-item { flex-direction: column; text-align: center; padding: 15px; } .vehicle-item .vehicle-plate { margin-top: 8px; margin-right: 0; } } @media (max-width: 576px) { .services-grid { grid-template-columns: 1fr; gap: 15px; } .nav-header { flex-direction: column; padding: 15px 10px; } .language-section, .user-section { margin-top: 15px; } .user-info-card { padding: 25px 20px; } .citizen-item { flex-direction: column; text-align: center; } .citizen-item .citizen-actions, .citizen-item .citizen-phone { margin-top: 10px; } } /* أضف هذا الكود إلى ملف style.css */ /* تنسيق حاوية البحث عن اللاعبين */ .player-search-container { background-color: white; border-radius: var(--border-radius); padding: 20px; box-shadow: var(--light-shadow); margin: 0 25px 25px 25px; animation: fadeIn 0.5s ease; } .search-tabs { display: flex; border-bottom: 1px solid #e9ecef; margin-bottom: 15px; } .search-tab { padding: 10px 20px; background: none; border: none; font-size: 1rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all 0.3s; position: relative; outline: none; } .search-tab:hover { color: var(--primary-color); } .search-tab.active { color: var(--primary-color); font-weight: 600; } .search-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); border-radius: 3px 3px 0 0; } .search-content { position: relative; min-height: 150px; } .search-panel { display: none; } .search-panel.active { display: block; animation: fadeIn 0.3s ease; } .nearby-players-list, .player-search-results { max-height: 200px; overflow-y: auto; border: 1px solid #e9ecef; border-radius: 8px; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.2) transparent; } .nearby-players-list::-webkit-scrollbar, .player-search-results::-webkit-scrollbar { width: 6px; } .nearby-players-list::-webkit-scrollbar-track, .player-search-results::-webkit-scrollbar-track { background: transparent; } .nearby-players-list::-webkit-scrollbar-thumb, .player-search-results::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; } .player-item { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid #e9ecef; transition: all 0.2s; } .player-item:hover { background-color: #f8f9fa; transform: translateX(5px); } .player-item:last-child { border-bottom: none; } .player-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: #e9ecef; display: flex; justify-content: center; align-items: center; margin-left: 15px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); background: linear-gradient(145deg, #f8f9fa, #e9ecef); } .player-avatar i { color: var(--primary-color); font-size: 1.2rem; } .player-info { flex: 1; } .player-name { font-weight: 600; color: var(--text-dark); font-size: 1rem; margin-bottom: 3px; } .player-distance { font-size: 0.85rem; color: var(--text-muted); } .player-actions { display: flex; } .view-player-btn { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); color: white; border: none; padding: 6px 12px; border-radius: 15px; cursor: pointer; transition: all 0.3s; font-size: 0.85rem; display: flex; align-items: center; } .view-player-btn i { margin-left: 5px; font-size: 0.8rem; } .view-player-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); } /* تعديل حجم وتباعد المربعات الستة بعد إضافة قسم البحث */ .services-grid { margin-top: 20px; } /* تحسين تنسيق مربع البحث للاعبين */ #name-search-panel .search-box { margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); border-radius: var(--border-radius-sm); overflow: hidden; } #player-search-input { flex: 1; padding: 12px 15px; border: none; font-size: 0.95rem; outline: none; background-color: #f8f9fa; } #player-search-submit { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); color: white; border: none; padding: 0 20px; font-size: 1rem; cursor: pointer; transition: all 0.3s; } #player-search-submit:hover { background: linear-gradient(90deg, #005a2e, #173652); } /* تنسيق للأجهزة المحمولة */ @media (max-width: 768px) { .player-search-container { margin: 0 15px 20px 15px; padding: 15px; } .search-tab { padding: 8px 15px; font-size: 0.9rem; } .player-item { flex-direction: column; align-items: flex-start; } .player-avatar { margin-bottom: 10px; margin-left: 0; } .player-actions { margin-top: 10px; width: 100%; } .view-player-btn { width: 100%; justify-content: center; } } /* أضف هذا الكود إلى ملف style.css */ /* تنسيق صفحة المطلوبين والسجل الجنائي */ .search-actions { display: flex; justify-content: flex-end; margin-bottom: 20px; } .action-btn { padding: 8px 16px; border-radius: 20px; border: none; color: white; font-weight: 500; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; } .action-btn i { margin-left: 8px; } .action-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .action-btn-success { background: linear-gradient(90deg, var(--success-color), #1d8737); box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2); } .action-btn-success:hover { box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3); } .wanted-list-container, .criminal-records-container { background-color: #f8f9fa; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); height: calc(100% - 150px); display: flex; flex-direction: column; } .wanted-item-header, .criminal-record-header { display: grid; font-weight: 600; } .wanted-item-header { grid-template-columns: 2fr 3fr 1fr 1fr; gap: 10px; } .criminal-record-header { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; } .wanted-name, .record-type { text-align: right; } .wanted-reason { text-align: right; } .wanted-date, .record-date { text-align: center; } .wanted-actions, .record-actions, .record-fine { text-align: center; } .wanted-item, .criminal-record-item { display: grid; align-items: center; padding: 15px; border-bottom: 1px solid #e9ecef; transition: background-color 0.2s; } .wanted-item { grid-template-columns: 2fr 3fr 1fr 1fr; gap: 10px; } .criminal-record-item { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; } .wanted-item:hover, .criminal-record-item:hover { background-color: #e9ecef; } .wanted-item:last-child, .criminal-record-item:last-child { border-bottom: none; } .wanted-item .wanted-name, .criminal-record-item .record-type { font-weight: 500; } .wanted-item .wanted-reason { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wanted-item .wanted-date, .criminal-record-item .record-date { color: var(--text-muted); font-size: 0.9rem; } .wanted-badge { padding: 5px 10px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; text-align: center; margin-top: 10px; display: inline-block; } .wanted-badge-yes { background-color: rgba(220, 53, 69, 0.1); color: var(--error-color); } .wanted-badge-no { background-color: rgba(40, 167, 69, 0.1); color: var(--success-color); } .remove-wanted-btn { background: linear-gradient(90deg, var(--error-color), #c82333); color: white; border: none; padding: 6px 12px; border-radius: 15px; cursor: pointer; transition: all 0.3s; font-size: 0.85rem; display: inline-flex; align-items: center; } .remove-wanted-btn i { margin-left: 5px; font-size: 0.8rem; } .remove-wanted-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(220, 53, 69, 0.2); } .view-record-btn { background: linear-gradient(90deg, var(--accent-color), #162b42); color: white; border: none; padding: 6px 12px; border-radius: 15px; cursor: pointer; transition: all 0.3s; font-size: 0.85rem; display: inline-flex; align-items: center; } .view-record-btn i { margin-left: 5px; font-size: 0.8rem; } .view-record-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(30, 65, 100, 0.2); } .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); overflow: auto; } .modal-content { background-color: #fefefe; margin: 15% auto; padding: 0; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); width: 90%; max-width: 600px; animation: slideDown 0.3s ease; } @keyframes slideDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } } .modal-header { padding: 15px 20px; background-color: #f8f9fa; border-radius: 15px 15px 0 0; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { color: var(--primary-color); margin: 0; font-size: 1.2rem; } .close-modal { color: #aaa; font-size: 1.5rem; font-weight: bold; cursor: pointer; transition: all 0.3s; } .close-modal:hover { color: #555; transform: scale(1.1); } .modal-body { padding: 20px; } .modal-footer { padding: 15px 20px; background-color: #f8f9fa; border-top: 1px solid #e9ecef; border-radius: 0 0 15px 15px; display: flex; justify-content: flex-end; gap: 10px; } .form-group { margin-bottom: 15px; } .form-row { display: flex; gap: 15px; margin-bottom: 15px; } .form-group.half { flex: 1; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-dark); } .form-control { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; outline: none; transition: all 0.3s; } .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 108, 53, 0.1); } select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23333' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 15px center; padding-left: 35px; } .btn { padding: 10px 20px; border-radius: 8px; border: none; font-weight: 500; cursor: pointer; transition: all 0.3s; } .btn:hover { transform: translateY(-2px); } .btn-success { background-color: var(--success-color); color: white; } .btn-success:hover { background-color: #218838; box-shadow: 0 3px 10px rgba(40, 167, 69, 0.2); } .btn-danger { background-color: var(--error-color); color: white; } .btn-danger:hover { background-color: #c82333; box-shadow: 0 3px 10px rgba(220, 53, 69, 0.2); } .btn-primary { background-color: var(--accent-color); color: white; } .btn-primary:hover { background-color: #162b42; box-shadow: 0 3px 10px rgba(30, 65, 100, 0.2); } .criminal-records-summary { margin-top: 20px; } .record-count { background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; } .record-count-value { font-size: 1.5rem; font-weight: 700; color: var(--accent-color); } .view-records-btn { background: linear-gradient(90deg, var(--accent-color), #162b42); color: white; border: none; padding: 10px 20px; border-radius: 20px; cursor: pointer; transition: all 0.3s; font-size: 0.95rem; display: flex; align-items: center; margin-top: 15px; align-self: center; } .view-records-btn i { margin-left: 8px; } .view-records-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(30, 65, 100, 0.2); } .record-list-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e9ecef; } .record-list-item:last-child { border-bottom: none; } .record-list-type { font-weight: 500; } .record-list-date { color: var(--text-muted); font-size: 0.9rem; } .record-details { width: 100%; } .record-detail-item { display: flex; margin-bottom: 15px; border-bottom: 1px solid #e9ecef; padding-bottom: 10px; } .record-detail-item.full { flex-direction: column; } .record-detail-label { min-width: 150px; font-weight: 600; color: var(--text-dark); } .record-detail-value { color: var(--text-muted); } .record-description { margin-top: 10px; white-space: pre-line; padding: 10px; background-color: #f8f9fa; border-radius: 8px; } /* تنسيق قسم المطلوبين في صفحة المواطن */ .wanted-status-section { margin-bottom: 20px; } .wanted-status { display: flex; justify-content: space-between; align-items: center; } .wanted-status-badge { padding: 8px 15px; border-radius: 20px; font-weight: 600; } .wanted-status-yes { background-color: rgba(220, 53, 69, 0.1); color: var(--error-color); } .wanted-status-no { background-color: rgba(40, 167, 69, 0.1); color: var(--success-color); } .wanted-status-reason { margin-top: 10px; padding: 10px; background-color: #f8f9fa; border-radius: 8px; border-right: 3px solid var(--error-color); white-space: pre-line; } .add-wanted-btn { background: linear-gradient(90deg, var(--error-color), #c82333); color: white; border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; display: flex; align-items: center; } .add-wanted-btn i { margin-left: 8px; } .add-wanted-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(220, 53, 69, 0.2); } .remove-from-wanted-btn { background: linear-gradient(90deg, var(--success-color), #218838); color: white; border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; transition: all 0.3s; font-size: 0.9rem; display: flex; align-items: center; margin-top: 15px; } .remove-from-wanted-btn i { margin-left: 8px; } .remove-from-wanted-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(40, 167, 69, 0.2); } @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap'); :root { --primary-color: #006c35; --secondary-color: #846324; --accent-color: #1e4164; --error-color: #dc3545; --success-color: #28a745; --warning-color: #ffc107; --info-color: #17a2b8; --bg-light: #f8f9fa; --bg-dark: #343a40; --text-dark: #333; --text-light: #f8f9fa; --text-muted: #6c757d; --dark-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); --border-radius: 15px; --border-radius-sm: 8px; --border-radius-lg: 20px; --transition-speed: 0.3s; /* Offense category colors */ --traffic-color: #28a745; /* أخضر للمرورية */ --drug-color: #8e44ad; /* بنفسجي للمخدرات */ --weapon-color: #e74c3c; /* أحمر للأسلحة */ --property-color: #f39c12; /* برتقالي للممتلكات */ --economic-color: #3498db; /* أزرق للاقتصادية */ --violent-color: #c0392b; /* أحمر غامق للعنيفة */ --cyber-color: #9b59b6; /* بنفسجي فاتح للإلكترونية */ --environmental-color: #2ecc71; /* أخضر فاتح للبيئية */ --public-order-color: #f1c40f; /* أصفر للنظام العام */ --misc-color: #95a5a6; /* رمادي للمتنوعة */ } /* Dark Mode Variables */ [data-theme="dark"] { --bg-light: #2c2c2c; --bg-dark: #1a1a1a; --text-dark: #e0e0e0; --text-light: #ffffff; --text-muted: #b0b0b0; --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); --dark-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; } body { height: 100vh; display: flex; justify-content: center; align-items: center; background-color: transparent; overflow: hidden; transition: all var(--transition-speed) ease; } /* Theme Toggle Button */ .theme-toggle { background: rgba(255, 255, 255, 0.2); border: none; border-radius: 20px; padding: 8px 12px; cursor: pointer; transition: all var(--transition-speed); color: white; font-size: 0.9rem; backdrop-filter: blur(10px); } .theme-toggle:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.05); } .status-center { display: flex; justify-content: center; align-items: center; } /* Tablet Device Styling - ENHANCED */ #tablet-container { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; opacity: 0; transform: translateY(20px); animation: fadeIn 0.5s ease forwards; } @keyframes fadeIn { to { opacity: 1; transform: translateY(0); } } @keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } } /* UPDATED: Wider tablet with improved borders */ #tablet-frame { width: 70vw; max-width: 1300px; height: 85vh; background: linear-gradient(145deg, #222, #111); border-radius: 25px; padding: 10px; box-shadow: var(--dark-shadow), inset 0 0 10px rgba(255, 255, 255, 0.1); position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); transition: all var(--transition-speed); } [data-theme="dark"] #tablet-frame { background: linear-gradient(145deg, #1a1a1a, #0d0d0d); border: 1px solid rgba(255, 255, 255, 0.05); } /* iPad status bar with animations */ .ipad-status-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; background-color: rgba(0, 0, 0, 0.7); color: white; font-size: 0.8rem; border-radius: 15px 15px 0 0; margin-bottom: 5px; } [data-theme="dark"] .ipad-status-bar { background-color: rgba(0, 0, 0, 0.9); } .status-time { font-weight: 500; } .status-icons i { margin-left: 10px; opacity: 0.8; } .status-icons i:hover { opacity: 1; } /* Animation for wifi icon */ .fa-wifi { animation: pulse 2s infinite; } @keyframes pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } } #tablet-screen { width: 100%; height: calc(100% - 40px); background-color: var(--bg-light); border-radius: 15px; overflow: hidden; position: relative; box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1); transition: all var(--transition-speed); } [data-theme="dark"] #tablet-screen { box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3); } /* Improved home button with animation */ .tablet-home-button { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(145deg, #222, #333); position: absolute; bottom: 10px; cursor: pointer; transition: all 0.3s; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); } .tablet-home-button::after { content: ""; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 5px; transition: all 0.3s; } .tablet-home-button:hover { transform: scale(1.05); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); } .tablet-home-button:hover::after { border-color: rgba(255, 255, 255, 0.8); } /* General Screen Styles */ .active-screen { display: block; animation: screenFadeIn 0.5s ease; } @keyframes screenFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .hidden-screen { display: none; } /* Enhanced Navigation Header */ .nav-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; background: linear-gradient(to bottom, white, #f8f9fa); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); position: relative; z-index: 10; transition: all var(--transition-speed); } [data-theme="dark"] .nav-header { background: linear-gradient(to bottom, var(--bg-dark), #2a2a2a); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); } .logo-section { display: flex; align-items: center; } .saudi-logo { width: 45px; height: 45px; margin-left: 15px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1)); transition: transform 0.3s; } .saudi-logo:hover { transform: scale(1.05); } .vision-logo { height: 28px; transition: transform 0.3s; } .vision-logo:hover { transform: scale(1.05); } .title-section { display: flex; flex-direction: column; } .title-section h1 { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); letter-spacing: 0.5px; transition: color var(--transition-speed); } .title-section h3 { font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition-speed); } .language-section { display: flex; align-items: center; color: var(--text-muted); cursor: pointer; padding: 8px 12px; border-radius: 20px; transition: all 0.3s; background-color: rgba(0, 0, 0, 0.03); } [data-theme="dark"] .language-section { background-color: rgba(255, 255, 255, 0.05); } .language-section:hover { background-color: rgba(0, 0, 0, 0.08); transform: translateY(-2px); } [data-theme="dark"] .language-section:hover { background-color: rgba(255, 255, 255, 0.1); } .language-section i { margin-right: 8px; color: var(--primary-color); } .user-section { display: flex; align-items: center; } /* Enhanced Verification Screen */ #verification-screen { width: 100%; height: 100%; background: url('https://www.absher.sa/portal/individuals/img/home-hero.b84e2c75.png') no-repeat center center; background-size: cover; position: relative; } #verification-screen::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 108, 53, 0.7), rgba(30, 65, 100, 0.7)); z-index: 1; } [data-theme="dark"] #verification-screen::before { background: linear-gradient(135deg, rgba(0, 108, 53, 0.8), rgba(30, 65, 100, 0.8)); } .verification-content { display: flex; justify-content: center; align-items: center; height: calc(100% - 60px); position: relative; z-index: 2; } .user-info-card { background-color: white; border-radius: 15px; padding: 40px; width: 85%; max-width: 600px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.05); transform: translateY(0); transition: all var(--transition-speed); position: relative; overflow: hidden; } [data-theme="dark"] .user-info-card { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-light); } .user-info-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 8px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); } .user-info-card:hover { transform: translateY(-5px); } #player-name { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 10px; font-weight: 700; transition: color var(--transition-speed); } #player-rank { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 25px; font-weight: 500; transition: color var(--transition-speed); } .verification-message { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 35px; line-height: 1.6; transition: color var(--transition-speed); } #enter-system-btn { background: linear-gradient(90deg, var(--secondary-color), #6e5115); color: white; border: none; padding: 14px 40px; border-radius: 30px; font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(132, 99, 36, 0.4); position: relative; overflow: hidden; } #enter-system-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: all 0.6s; } #enter-system-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(132, 99, 36, 0.5); } #enter-system-btn:hover::before { left: 100%; } #enter-system-btn:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(132, 99, 36, 0.4); } /* Enhanced Services Grid */ .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding: 20px; } .service-card { background-color: white; border-radius: 15px; padding: 30px 20px; text-align: center; box-shadow: var(--light-shadow); transition: all 0.4s; cursor: pointer; position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.05); } [data-theme="dark"] .service-card { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); } .service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); z-index: -1; opacity: 0; transition: opacity 0.4s; } .service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1); } [data-theme="dark"] .service-card:hover { box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3); } .service-card:hover::before { opacity: 0.9; } .service-card:hover i, .service-card:hover h3 { color: white; } .service-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; transition: all 0.4s; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } /* خاص بكارت البحث عن المركبات */ #vehicle-search-btn i { color: var(--accent-color); } #vehicle-search-btn::before { background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); } .service-card h3 { font-size: 1.2rem; color: var(--text-dark); transition: all 0.4s; font-weight: 600; } #logout-button, .back-button { background: linear-gradient(90deg, var(--error-color), #c82333); color: white; border: none; padding: 10px 20px; border-radius: 30px; cursor: pointer; font-size: 0.95rem; font-weight: 500; transition: all 0.3s; box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2); display: flex; align-items: center; } #logout-button i, .back-button i { margin-left: 8px; } #logout-button:hover, .back-button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3); } .back-button { background: linear-gradient(90deg, var(--accent-color), #162b42); box-shadow: 0 2px 10px rgba(30, 65, 100, 0.2); } .back-button:hover { box-shadow: 0 5px 15px rgba(30, 65, 100, 0.3); } /* خاص بزر الرجوع في صفحة المركبات */ #vehicle-back-btn { background: linear-gradient(90deg, var(--secondary-color), #6e5115); box-shadow: 0 2px 10px rgba(132, 99, 36, 0.2); } #vehicle-back-btn:hover { box-shadow: 0 5px 15px rgba(132, 99, 36, 0.3); } /* Search Container Styles */ .search-container { background-color: white; border-radius: var(--border-radius); padding: 30px; box-shadow: var(--light-shadow); height: 100%; transition: all var(--transition-speed); } [data-theme="dark"] .search-container { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); } .search-header { margin-bottom: 25px; text-align: center; } .search-header h2 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 10px; transition: color var(--transition-speed); } .search-header p { color: var(--text-muted); font-size: 1rem; transition: color var(--transition-speed); } .search-box { display: flex; margin-bottom: 30px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); border-radius: var(--border-radius); overflow: hidden; } [data-theme="dark"] .search-box { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); } #citizen-search-input, #vehicle-search-input { flex: 1; padding: 15px 20px; border: none; font-size: 1.1rem; outline: none; background-color: var(--bg-light); color: var(--text-dark); transition: all var(--transition-speed); } [data-theme="dark"] #citizen-search-input, [data-theme="dark"] #vehicle-search-input { background-color: var(--bg-dark); color: var(--text-light); } #citizen-search-submit, #vehicle-search-submit { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); color: white; border: none; padding: 0 25px; font-size: 1.2rem; cursor: pointer; transition: all 0.3s; } #citizen-search-submit:hover, #vehicle-search-submit:hover { background: linear-gradient(90deg, #005a2e, #173652); } /* Criminal Records Enhanced Styles */ .criminal-records-container { background-color: var(--bg-light); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); height: calc(100% - 150px); display: flex; flex-direction: column; transition: all var(--transition-speed); } [data-theme="dark"] .criminal-records-container { background-color: var(--bg-dark); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .citizens-list-header { background-color: var(--primary-color); color: white; padding: 15px 20px; } .criminal-record-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 10px; font-weight: 600; } .citizens-list { flex: 1; overflow-y: auto; padding: 10px; } .criminal-record-item { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 15px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); transition: all 0.2s; } [data-theme="dark"] .criminal-record-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .criminal-record-item:hover { background-color: rgba(0, 0, 0, 0.03); } [data-theme="dark"] .criminal-record-item:hover { background-color: rgba(255, 255, 255, 0.05); } /* Offense Category Colors */ .category-badge { padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; text-align: center; color: white; display: inline-block; } .category-drugs { background-color: var(--drug-color); } .category-weapons { background-color: var(--weapon-color); } .category-property { background-color: var(--property-color); } .category-traffic { background-color: var(--traffic-color); } .category-economic { background-color: var(--economic-color); } .category-violent { background-color: var(--violent-color); } .category-cyber { background-color: var(--cyber-color); } .category-environmental { background-color: var(--environmental-color); } .category-public-order { background-color: var(--public-order-color); color: #333; } .category-misc { background-color: var(--misc-color); } /* Severity Badges */ .severity-badge { padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; text-align: center; display: inline-block; } .severity-مخالفة { background-color: rgba(40, 167, 69, 0.1); color: var(--success-color); } .severity-جنحة { background-color: rgba(255, 193, 7, 0.1); color: #e09500; } .severity-جناية { background-color: rgba(220, 53, 69, 0.1); color: var(--error-color); } /* Modal Enhancements */ .modal-large { width: 95%; max-width: 800px; } .offense-details { background-color: var(--bg-light); border-radius: var(--border-radius-sm); padding: 20px; margin-top: 15px; border: 1px solid rgba(0, 0, 0, 0.1); display: none; transition: all var(--transition-speed); } [data-theme="dark"] .offense-details { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); } .offense-details.show { display: block; animation: slideDown 0.3s ease; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .offense-info h4 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.1rem; transition: color var(--transition-speed); } .offense-detail-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); } [data-theme="dark"] .offense-detail-item { border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .offense-detail-item .label { font-weight: 600; color: var(--text-dark); min-width: 100px; transition: color var(--transition-speed); } .offense-detail-item .value { color: var(--text-muted); font-weight: 500; transition: color var(--transition-speed); } /* Form Controls Dark Mode */ .form-control { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; outline: none; transition: all 0.3s; background-color: white; color: var(--text-dark); } [data-theme="dark"] .form-control { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-light); } .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 108, 53, 0.1); } [data-theme="dark"] .form-control:focus { box-shadow: 0 0 0 3px rgba(0, 108, 53, 0.2); } select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23333' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 15px center; padding-left: 35px; } [data-theme="dark"] select.form-control { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23fff' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E"); } /* Modal Dark Mode */ .modal-content { background-color: #fefefe; margin: 15% auto; padding: 0; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); width: 90%; max-width: 600px; animation: slideDown 0.3s ease; transition: all var(--transition-speed); } [data-theme="dark"] .modal-content { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); } .modal-header { padding: 15px 20px; background-color: #f8f9fa; border-radius: 15px 15px 0 0; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; transition: all var(--transition-speed); } [data-theme="dark"] .modal-header { background-color: #2a2a2a; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .modal-header h3 { color: var(--primary-color); margin: 0; font-size: 1.2rem; transition: color var(--transition-speed); } .modal-body { padding: 20px; } .modal-footer { padding: 15px 20px; background-color: #f8f9fa; border-top: 1px solid #e9ecef; border-radius: 0 0 15px 15px; display: flex; justify-content: flex-end; gap: 10px; transition: all var(--transition-speed); } [data-theme="dark"] .modal-footer { background-color: #2a2a2a; border-top: 1px solid rgba(255, 255, 255, 0.1); } /* Button Dark Mode */ .btn { padding: 10px 20px; border-radius: 8px; border: none; font-weight: 500; cursor: pointer; transition: all 0.3s; } .btn:hover { transform: translateY(-2px); } .btn-success { background-color: var(--success-color); color: white; } .btn-success:hover { background-color: #218838; box-shadow: 0 3px 10px rgba(40, 167, 69, 0.2); } .btn-danger { background-color: var(--error-color); color: white; } .btn-danger:hover { background-color: #c82333; box-shadow: 0 3px 10px rgba(220, 53, 69, 0.2); } .btn-primary { background-color: var(--accent-color); color: white; } .btn-primary:hover { background-color: #162b42; box-shadow: 0 3px 10px rgba(30, 65, 100, 0.2); } /* Player Search Container Dark Mode */ .player-search-container { background-color: white; border-radius: var(--border-radius); padding: 20px; box-shadow: var(--light-shadow); margin: 0 25px 25px 25px; animation: fadeIn 0.5s ease; transition: all var(--transition-speed); } [data-theme="dark"] .player-search-container { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); } .player-search-title { color: var(--primary-color); margin-bottom: 15px; transition: color var(--transition-speed); } /* Additional Dark Mode Elements */ [data-theme="dark"] .empty-state { color: var(--text-muted); } [data-theme="dark"] .loading-spinner { color: var(--text-muted); } [data-theme="dark"] .detail-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); } [data-theme="dark"] .vehicles-list-container, [data-theme="dark"] .wanted-list-container { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); } [data-theme="dark"] .vehicles-list-header, [data-theme="dark"] .wanted-list-container .citizens-list-header { background-color: #1a3d1a; } /* Responsive adjustments for Dark Mode */ @media (max-width: 768px) { .criminal-record-header { grid-template-columns: 1fr; gap: 5px; text-align: center; } .criminal-record-item { grid-template-columns: 1fr; gap: 10px; text-align: center; } .theme-toggle { padding: 6px 10px; font-size: 0.8rem; } } /* أنماط القسم الجديد للسجل الجنائي في صفحة المواطن */ .criminal-record-actions { margin-top: 20px; margin-bottom: 20px; } .criminal-record-actions .action-buttons { display: flex; justify-content: flex-start; gap: 10px; margin-top: 15px; } #add-direct-record-btn { background: linear-gradient(90deg, var(--error-color), #c82333); color: white; border: none; padding: 10px 20px; border-radius: 20px; cursor: pointer; transition: all 0.3s; font-size: 1rem; display: flex; align-items: center; } #add-direct-record-btn i { margin-left: 8px; } #add-direct-record-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(220, 53, 69, 0.2); } .direct-record-section { margin-top: 20px; background-color: #f8f9fa; border-radius: var(--border-radius-sm); padding: 20px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); } [data-theme="dark"] .direct-record-section { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); } .direct-record-section h4 { color: var(--accent-color); margin-bottom: 15px; font-size: 1.2rem; padding-bottom: 10px; border-bottom: 1px solid #dee2e6; } [data-theme="dark"] .direct-record-section h4 { border-bottom: 1px solid rgba(255, 255, 255, 0.1); } #recent-records-list { max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.2) transparent; } #recent-records-list::-webkit-scrollbar { width: 6px; } #recent-records-list::-webkit-scrollbar-track { background: transparent; } #recent-records-list::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; } [data-theme="dark"] #recent-records-list::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.2); } .record-list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid #e9ecef; transition: all 0.2s; } .record-list-item:hover { background-color: rgba(0, 0, 0, 0.03); transform: translateX(5px); } [data-theme="dark"] .record-list-item:hover { background-color: rgba(255, 255, 255, 0.05); } .record-list-item:last-child { border-bottom: none; } .record-list-info { flex: 3; } .record-list-type { font-weight: 600; color: var(--text-dark); margin-bottom: 3px; } [data-theme="dark"] .record-list-type { color: var(--text-light); } .record-list-meta { display: flex; gap: 15px; font-size: 0.85rem; color: var(--text-muted); } .record-list-date { display: flex; align-items: center; } .record-list-date i { margin-left: 5px; font-size: 0.8rem; } .record-list-fine { display: flex; align-items: center; color: var(--error-color); } .record-list-fine i { margin-left: 5px; font-size: 0.8rem; } .record-list-action { flex: 1; text-align: left; } .record-view-btn { background: linear-gradient(90deg, var(--accent-color), #162b42); color: white; border: none; padding: 6px 12px; border-radius: 15px; cursor: pointer; transition: all 0.3s; font-size: 0.85rem; display: inline-flex; align-items: center; } .record-view-btn i { margin-left: 5px; font-size: 0.8rem; } .record-view-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(30, 65, 100, 0.2); } .view-all-container { display: flex; justify-content: center; margin-top: 15px; } #view-all-records-btn { background: linear-gradient(90deg, var(--accent-color), #162b42); color: white; border: none; padding: 10px 20px; border-radius: 20px; cursor: pointer; transition: all 0.3s; font-size: 0.95rem; display: flex; align-items: center; } #view-all-records-btn i { margin-left: 8px; } #view-all-records-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(30, 65, 100, 0.2); } /* تحسينات تصميم الإحصائيات */ /* تحسين الهيكل العام */ .statistics-dashboard { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 2rem; } /* تحسين بطاقات الإحصائيات */ .statistics-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; } .stat-card { background: linear-gradient(145deg, var(--card-bg), var(--input-bg)); border-radius: 12px; padding: 1.2rem; display: flex; align-items: center; box-shadow: 0 10px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; } .stat-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 1; } .stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); } .stat-card:hover::before { opacity: 1; } .stat-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-left: 1.2rem; position: relative; background: var(--saudi-green); box-shadow: 0 5px 15px rgba(0, 128, 0, 0.2); z-index: 2; color: white; } .stat-content { flex: 1; position: relative; z-index: 2; } .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; text-shadow: 0 1px 2px rgba(0,0,0,0.1); } .stat-label { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; } /* تخصيص أيقونات البطاقات */ .stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, #3498db, #2980b9); box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3); } .stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3); } .stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #2ecc71, #27ae60); box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3); } .stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #f39c12, #d35400); box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3); } /* تحسين قسم أكثر المخالفين */ .top-offenders-section { background: linear-gradient(145deg, var(--card-bg), var(--input-bg)); border-radius: 16px; padding: 1.8rem; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; } .top-offenders-section h3 { margin-top: 0; margin-bottom: 1.5rem; color: var(--text-primary); font-size: 1.3rem; font-weight: 600; position: relative; padding-right: 1rem; } .top-offenders-section h3::before { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: var(--saudi-green); border-radius: 2px; } .offenders-list-container { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); background-color: var(--card-bg); } .offenders-list-header { background: linear-gradient(135deg, var(--saudi-green), var(--saudi-green-dark)); color: white; border-radius: 8px 8px 0 0; padding: 1rem 1.5rem; } .offender-item-header { display: grid; grid-template-columns: 60px minmax(200px, 3fr) 120px 200px 120px; font-weight: bold; font-size: 0.95rem; text-align: right; } .offender-item { display: grid; grid-template-columns: 60px minmax(200px, 3fr) 120px 200px 120px; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); align-items: center; transition: background-color 0.2s ease; text-align: right; } .offender-item:hover { background-color: rgba(0,0,0,0.03); } /* تطبيق ألوان متدرجة لتصنيف أكثر المخالفين */ .offender-item:nth-child(1) { background-color: rgba(231, 76, 60, 0.08); } .offender-item:nth-child(2) { background-color: rgba(241, 196, 15, 0.08); } .offender-item:nth-child(3) { background-color: rgba(52, 152, 219, 0.08); } .offender-rank { font-weight: 700; font-size: 1.2rem; text-align: center; color: var(--text-primary); } /* تمييز المراكز الثلاثة الأولى */ .offender-item:nth-child(1) .offender-rank { color: #e74c3c; font-size: 1.5rem; } .offender-item:nth-child(2) .offender-rank { color: #f39c12; font-size: 1.4rem; } .offender-item:nth-child(3) .offender-rank { color: #3498db; font-size: 1.3rem; } .offender-name { display: flex; align-items: center; } .offender-avatar { width: 42px; height: 42px; border-radius: 50%; background-color: var(--input-bg); display: flex; align-items: center; justify-content: center; margin-left: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,0.2); box-shadow: 0 2px 5px rgba(0,0,0,0.1); } .offender-avatar img { width: 100%; height: 100%; object-fit: cover; } .offender-avatar i { font-size: 1.2rem; color: var(--text-muted); } .offender-violations { text-align: center; font-weight: 700; font-size: 1.1rem; color: #e74c3c; } .offender-fines { color: #2ecc71; font-weight: 700; font-size: 1.1rem; } .view-offender-btn { background: linear-gradient(135deg, var(--saudi-green), var(--saudi-green-dark)); color: white; border: none; border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.9rem; transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.1); width: 100%; display: flex; align-items: center; justify-content: center; } .view-offender-btn i { margin-left: 5px; } .view-offender-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); background: linear-gradient(135deg, var(--saudi-green-dark), var(--saudi-green)); } /* تحسين المخططات البيانية */ .statistics-charts { background: linear-gradient(145deg, var(--card-bg), var(--input-bg)); border-radius: 16px; padding: 1.8rem; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem; } .statistics-charts h3 { margin-top: 0; margin-bottom: 1.5rem; color: var(--text-primary); font-size: 1.3rem; font-weight: 600; position: relative; padding-right: 1rem; } .statistics-charts h3::before { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: var(--saudi-green); border-radius: 2px; } .category-chart-wrapper { display: flex; flex-direction: column; gap: 12px; padding: 0.5rem; } .category-bar-wrapper { display: flex; align-items: center; height: 38px; } .category-name { width: 220px; padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--text-primary); font-size: 0.95rem; } .category-bar-container { flex: 1; height: 25px; background-color: rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); } .category-bar { height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0)); border-radius: 8px; display: flex; align-items: center; justify-content: flex-end; padding: 0 15px; min-width: 40px; animation: barGrow 1.5s ease forwards; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } @keyframes barGrow { from { width: 0; } to { width: var(--bar-width); } } .category-count { color: white; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,0.2); } /* ألوان محسنة للفئات */ .category-bar.category-drugs { background: linear-gradient(90deg, #e74c3c, #c0392b); box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3); } .category-bar.category-weapons { background: linear-gradient(90deg, #9b59b6, #8e44ad); box-shadow: 0 2px 5px rgba(155, 89, 182, 0.3); } .category-bar.category-property { background: linear-gradient(90deg, #f39c12, #d35400); box-shadow: 0 2px 5px rgba(243, 156, 18, 0.3); } .category-bar.category-traffic { background: linear-gradient(90deg, #3498db, #2980b9); box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3); } .category-bar.category-economic { background: linear-gradient(90deg, #2ecc71, #27ae60); box-shadow: 0 2px 5px rgba(46, 204, 113, 0.3); } .category-bar.category-misc { background: linear-gradient(90deg, #95a5a6, #7f8c8d); box-shadow: 0 2px 5px rgba(149, 165, 166, 0.3); } .category-bar.category-violent { background: linear-gradient(90deg, #c0392b, #922b21); box-shadow: 0 2px 5px rgba(192, 57, 43, 0.3); } .category-bar.category-cyber { background: linear-gradient(90deg, #16a085, #0e6655); box-shadow: 0 2px 5px rgba(22, 160, 133, 0.3); } .category-bar.category-environmental { background: linear-gradient(90deg, #27ae60, #196f3d); box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3); } .category-bar.category-public-order { background: linear-gradient(90deg, #d35400, #a04000); box-shadow: 0 2px 5px rgba(211, 84, 0, 0.3); } /* تصميم متجاوب */ @media (max-width: 1200px) { .statistics-cards { grid-template-columns: repeat(2, 1fr); } .offender-item-header, .offender-item { grid-template-columns: 50px minmax(150px, 2fr) 100px 150px 100px; font-size: 0.9rem; } } @media (max-width: 768px) { .statistics-cards { grid-template-columns: 1fr; } .offender-item-header, .offender-item { grid-template-columns: 40px 2fr 1fr 1fr; } .offender-fines { display: none; } } /* حالات الخطأ والتحميل */ .empty-state { padding: 2rem; text-align: center; color: var(--text-muted); background: rgba(0,0,0,0.02); border-radius: 10px; margin: 1rem 0; } .empty-state i { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-muted); opacity: 0.5; } .loading-spinner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; color: var(--text-muted); } .loading-spinner i { font-size: 2rem; margin-bottom: 1rem; color: var(--saudi-green); } .dashboard-panels { display: flex; justify-content: space-between; margin-bottom: 20px; gap: 20px; padding: 0 25px; } .player-search-container, .online-officers-container { flex: 1; background-color: white; border-radius: var(--border-radius); padding: 20px; box-shadow: var(--light-shadow); animation: fadeIn 0.5s ease; height: 300px; overflow-y: auto; display: flex; flex-direction: column; } .online-officers-container { flex: 1; background-color: white; border-radius: var(--border-radius); padding: 20px; box-shadow: var(--light-shadow); animation: fadeIn 0.5s ease; max-height: 300px; overflow-y: auto; } [data-theme="dark"] .player-search-container, [data-theme="dark"] .online-officers-container { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); } .section-title { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 600; padding-right: 10px; border-right: 3px solid var(--primary-color); } [data-theme="dark"] .section-title { color: var(--text-light); } /* تنسيق العسكريين المتصلين */ .online-officers-list { display: flex; flex-direction: column; gap: 8px; } .officer-item { display: flex; align-items: center; padding: 10px; border-radius: 10px; background-color: #f8f9fa; transition: all 0.2s ease; } [data-theme="dark"] .officer-item { background-color: rgba(255, 255, 255, 0.05); } .officer-item:hover { background-color: #e9ecef; transform: translateX(5px); } [data-theme="dark"] .officer-item:hover { background-color: rgba(255, 255, 255, 0.1); } .officer-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); display: flex; justify-content: center; align-items: center; margin-left: 15px; color: white; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .officer-info { flex: 1; } .officer-name { font-weight: 600; color: var(--text-dark); font-size: 1rem; margin-bottom: 3px; } [data-theme="dark"] .officer-name { color: var(--text-light); } .officer-rank { font-size: 0.85rem; color: var(--text-muted); } .officer-actions { display: flex; } .message-officer-btn { background: linear-gradient(90deg, var(--accent-color), #162b42); color: white; border: none; padding: 8px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; } .message-officer-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 3px 10px rgba(30, 65, 100, 0.2); } .message-officer-btn i { font-size: 0.9rem; } /* تنسيق نظام المراسلة */ .messaging-system { position: fixed; top: 0; right: -400px; /* مخفي بشكل افتراضي */ width: 400px; height: 100vh; background-color: white; box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; z-index: 1000; transition: right 0.3s ease; } [data-theme="dark"] .messaging-system { background-color: var(--bg-dark); border-left: 1px solid rgba(255, 255, 255, 0.1); } .messaging-system.active { right: 0; } .main-content.shifted { margin-right: 400px; } .messaging-header { padding: 15px; border-bottom: 1px solid #e9ecef; display: flex; align-items: center; } [data-theme="dark"] .messaging-header { border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .close-messaging-btn { background: none; border: none; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; padding: 5px; margin-left: 10px; transition: all 0.2s; } .close-messaging-btn:hover { color: var(--text-dark); transform: translateX(-3px); } [data-theme="dark"] .close-messaging-btn:hover { color: var(--text-light); } .messaging-title { flex: 1; } .messaging-title h3 { font-size: 1.2rem; margin: 0; color: var(--text-dark); } [data-theme="dark"] .messaging-title h3 { color: var(--text-light); } .messaging-subtitle { font-size: 0.8rem; color: var(--text-muted); } .messaging-body { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; } .messages-container { display: flex; flex-direction: column; gap: 10px; } .message-item { max-width: 80%; padding: 10px 15px; border-radius: 18px; position: relative; word-break: break-word; } .message-item.sent { align-self: flex-start; background-color: #e9ecef; border-bottom-right-radius: 5px; } .message-item.received { align-self: flex-end; background-color: var(--primary-color); color: white; border-bottom-left-radius: 5px; } [data-theme="dark"] .message-item.sent { background-color: rgba(255, 255, 255, 0.1); } .message-sender { font-size: 0.8rem; font-weight: 600; margin-bottom: 3px; } .message-content { font-size: 0.95rem; line-height: 1.4; } .message-time { font-size: 0.7rem; color: var(--text-muted); text-align: left; margin-top: 3px; } .message-item.received .message-time { color: rgba(255, 255, 255, 0.8); } .messaging-footer { padding: 15px; border-top: 1px solid #e9ecef; display: flex; align-items: center; gap: 10px; } [data-theme="dark"] .messaging-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); } .message-input { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 25px; outline: none; transition: all 0.3s; background-color: #f8f9fa; } [data-theme="dark"] .message-input { background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-light); } .message-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 108, 53, 0.1); } .send-message-btn { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white; border: none; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s; } .send-message-btn:hover { transform: scale(1.05); box-shadow: 0 3px 10px rgba(0, 108, 53, 0.2); } /* تحسينات للاستجابة على الأجهزة المختلفة */ @media (max-width: 992px) { .dashboard-panels { flex-direction: column; } .messaging-system { width: 80%; } .main-content.shifted { margin-right: 80%; } } @media (max-width: 576px) { .messaging-system { width: 100%; } .main-content.shifted { margin-right: 100%; } } /* إضافة هذا الـ CSS إلى ملف style.css */ /* أنماط نظام الكاميرات المحسن */ #camera-system-screen { width: 100%; height: 100%; background-color: #f0f2f5; position: relative; } [data-theme="dark"] #camera-system-screen { background-color: var(--bg-dark); } .camera-container { background-color: white; border-radius: 15px; padding: 30px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); height: 100%; overflow: hidden; position: relative; } [data-theme="dark"] .camera-container { background-color: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); } .camera-grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 20px 0; overflow-y: auto; max-height: calc(100% - 60px); } .camera-location-card { background-color: #f8f9fa; border-radius: 15px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); cursor: pointer; transition: all 0.3s ease; position: relative; border: 2px solid transparent; height: 200px; display: flex; flex-direction: column; } [data-theme="dark"] .camera-location-card { background-color: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.1); } .camera-location-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); border-color: var(--primary-color); } .camera-location-thumbnail { height: 120px; width: 100%; overflow: hidden; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; justify-content: center; align-items: center; color: white; font-size: 2.5rem; position: relative; } .camera-location-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; } .camera-location-card:hover .camera-location-thumbnail img { transform: scale(1.05); } .camera-location-info { padding: 15px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; } .camera-location-name { font-weight: 700; color: var(--text-dark); font-size: 1.1rem; margin-bottom: 5px; } [data-theme="dark"] .camera-location-name { color: var(--text-light); } .camera-count { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; } .camera-location-status { position: absolute; top: 10px; right: 10px; } .status-online { background-color: rgba(40, 167, 69, 0.9); color: white; padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(10px); } .status-offline { background-color: rgba(220, 53, 69, 0.9); color: white; padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(10px); } /* شاشة عرض الكاميرا */ .camera-view-container { display: none; flex-direction: row; height: 100%; gap: 20px; } .camera-feed-container { flex: 2; display: flex; flex-direction: column; background-color: #000; border-radius: 15px; overflow: hidden; position: relative; } .camera-feed { flex: 1; background-color: #000; display: flex; justify-content: center; align-items: center; color: white; font-size: 1.2rem; position: relative; min-height: 400px; } .camera-loading { display: flex; flex-direction: column; align-items: center; color: rgba(255, 255, 255, 0.8); } .camera-loading i { font-size: 3rem; margin-bottom: 15px; animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .camera-connected { width: 100%; height: 100%; background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%); position: relative; overflow: hidden; } .camera-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; } .camera-crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 50%; } .camera-crosshair::before, .camera-crosshair::after { content: ''; position: absolute; background-color: rgba(255, 255, 255, 0.6); } .camera-crosshair::before { top: 50%; left: -10px; right: -10px; height: 1px; transform: translateY(-50%); } .camera-crosshair::after { left: 50%; top: -10px; bottom: -10px; width: 1px; transform: translateX(-50%); } .camera-recording-indicator { position: absolute; top: 20px; left: 20px; background-color: rgba(220, 53, 69, 0.9); color: white; padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; backdrop-filter: blur(10px); animation: blink 1.5s infinite; } @keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.5; } } .camera-details { background-color: rgba(0, 0, 0, 0.8); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(10px); } .camera-info { display: flex; flex-direction: column; } .camera-info span:first-child { font-weight: 700; font-size: 1rem; } .camera-info span:last-child { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); } .camera-timestamp { text-align: left; font-family: 'Courier New', monospace; } .camera-timestamp span { display: block; font-size: 0.9rem; } /* أزرار التحكم في الكاميرا */ .camera-controls { flex: 1; background-color: #f8f9fa; border-radius: 15px; padding: 20px; display: flex; flex-direction: column; } [data-theme="dark"] .camera-controls { background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); } .camera-controls h3 { margin-top: 0; margin-bottom: 20px; color: var(--text-dark); font-size: 1.2rem; text-align: center; } [data-theme="dark"] .camera-controls h3 { color: var(--text-light); } .camera-buttons { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; } .camera-select-btn { background-color: white; border: 2px solid #e9ecef; border-radius: 10px; padding: 12px 15px; cursor: pointer; transition: all 0.3s ease; font-weight: 600; color: var(--text-dark); display: flex; align-items: center; justify-content: center; gap: 8px; } [data-theme="dark"] .camera-select-btn { background-color: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: var(--text-light); } .camera-select-btn:hover { border-color: var(--primary-color); background-color: rgba(0, 108, 53, 0.05); transform: translateX(5px); } .camera-select-btn.active { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); border-color: var(--primary-color); color: white; box-shadow: 0 4px 15px rgba(0, 108, 53, 0.3); } .camera-actions { display: flex; flex-direction: column; gap: 10px; } .exit-camera-btn, .back-to-locations-btn { padding: 12px 20px; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; } .exit-camera-btn { background: linear-gradient(135deg, var(--error-color), #c82333); color: white; box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3); } .exit-camera-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4); } .back-to-locations-btn { background: linear-gradient(135deg, var(--accent-color), #162b42); color: white; box-shadow: 0 4px 15px rgba(30, 65, 100, 0.3); } .back-to-locations-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30, 65, 100, 0.4); } /* تحسينات للاستجابة */ @media (max-width: 1200px) { .camera-grid-view { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; } .camera-view-container { flex-direction: column; } .camera-controls { max-height: 300px; overflow-y: auto; } } @media (max-width: 768px) { .camera-grid-view { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; padding: 10px 0; } .camera-container { padding: 20px; } .camera-location-card { height: 180px; } .camera-location-thumbnail { height: 100px; font-size: 2rem; } .camera-location-info { padding: 12px; } } /* حالة الخطأ والتحميل */ .camera-grid-view .empty-state { grid-column: 1 / -1; padding: 3rem; text-align: center; color: var(--text-muted); background: rgba(0, 0, 0, 0.02); border-radius: 15px; margin: 2rem 0; } [data-theme="dark"] .camera-grid-view .empty-state { background: rgba(255, 255, 255, 0.02); } .camera-grid-view .empty-state i { font-size: 3rem; margin-bottom: 1rem; color: var(--text-muted); opacity: 0.5; } .camera-grid-view .loading-spinner { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; color: var(--text-muted); } .camera-grid-view .loading-spinner i { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary-color); animation: spin 1s linear infinite; } /* تعديلات الصفحة الرئيسية */ /* تقليل الفراغ في المحتوى الرئيسي */ #main-screen .main-content { padding: 10px 25px; height: calc(100% - 60px); overflow-y: auto; } /* تحسين لوحات المعلومات العلوية */ .dashboard-panels { display: flex; justify-content: space-between; margin-bottom: 15px; /* تقليل المسافة من 20px إلى 15px */ gap: 15px; /* تقليل المسافة بين اللوحات */ padding: 0 25px; margin-top: 20px; } .player-search-container, .online-officers-container { flex: 1; background-color: white; border-radius: var(--border-radius); padding: 15px; /* تقليل الpadding من 20px */ box-shadow: var(--light-shadow); animation: fadeIn 0.5s ease; height: 250px; /* تقليل الارتفاع من 300px */ overflow-y: auto; display: flex; flex-direction: column; } /* تحسين شبكة الخدمات */ .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; /* تقليل المسافة بين المربعات */ padding: 10px 0; /* تقليل الpadding */ margin-top: -10px; /* رفع المربعات للأعلى */ } /* تحسين بطاقات الخدمات */ .service-card { background-color: white; border-radius: 15px; padding: 25px 20px; /* تقليل padding العلوي والسفلي */ text-align: center; box-shadow: var(--light-shadow); transition: all 0.4s; cursor: pointer; position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.05); } .service-card i { font-size: 2.5rem; /* تصغير حجم الأيقونة قليلاً */ color: var(--primary-color); margin-bottom: 15px; /* تقليل المسافة */ transition: all 0.4s; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .service-card h3 { font-size: 1.1rem; /* تصغير حجم النص قليلاً */ color: var(--text-dark); transition: all 0.4s; font-weight: 600; margin: 0; } /* تحسين عنوان القسم */ .section-title { font-size: 1rem; /* تصغير العنوان */ color: var(--primary-color); margin-bottom: 12px; /* تقليل المسافة */ font-weight: 600; padding-right: 10px; border-right: 3px solid var(--primary-color); } /* تحسين قوائم اللاعبين والعسكريين */ .nearby-players-list, .online-officers-list { flex: 1; overflow-y: auto; padding: 5px 0; } .player-item, .officer-item { display: flex; align-items: center; padding: 8px 10px; /* تقليل padding */ border-radius: 10px; background-color: #f8f9fa; transition: all 0.2s ease; margin-bottom: 6px; /* تقليل المسافة بين العناصر */ } .player-avatar, .officer-avatar { width: 35px; /* تصغير الصورة الرمزية */ height: 35px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); display: flex; justify-content: center; align-items: center; margin-left: 12px; color: white; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .player-name, .officer-name { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; /* تصغير حجم الخط */ margin-bottom: 2px; } .player-distance, .officer-rank { font-size: 0.8rem; /* تصغير حجم الخط */ color: var(--text-muted); } /* تحسين زر الرسائل */ .message-officer-btn { background: linear-gradient(90deg, var(--accent-color), #162b42); color: white; border: none; padding: 6px; width: 32px; /* تصغير الزر */ height: 32px; border-radius: 50%; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; } /* إزالة الفراغات الزائدة في الشاشات الصغيرة */ @media (max-width: 1200px) { .services-grid { gap: 15px; padding: 8px 0; } .dashboard-panels { margin-bottom: 12px; } } @media (max-width: 992px) { .dashboard-panels { flex-direction: column; gap: 12px; margin-top: 0; } .player-search-container, .online-officers-container { height: 200px; } .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 0; } } @media (max-width: 768px) { #main-screen .main-content { padding: 8px 15px; } .dashboard-panels { padding: 0 15px; } .services-grid { grid-template-columns: 1fr; gap: 10px; } .service-card { padding: 20px 15px; } .service-card i { font-size: 2rem; margin-bottom: 10px; } .service-card h3 { font-size: 1rem; } }