:root { --primary: #5865F2; --primary-dark: #4752C4; --secondary: #00e1ff; --dark: #18191A; --darker: #0E0F10; --light: #F8F9FA; --gray: #6C757D; --success: #28A745; --danger: #DC3545; --warning: #FFC107; --main-bg: #202124; --card-bg: #242528; --field-bg: #242528; --field-border: #9f9f9f; --highlight-1: #fbfbfb; /* لون الكلمة */ --highlight-2: #f8f8f8; /* لون الرد */ --radius: 10px; --font-mono: 'Courier New', monospace; --muted: #8fa1b2; --shadow: 0 6px 20px rgba(0,0,0,0.25); --fs-w: 64px; /* العرض */ --fs-h: 34px; /* الارتفاع */ --fs-pad: 4px; /* الحشوة الداخلية */ --fs-border1: #515151; --fs-border2: #2f2f2f; --fs-border3: #2f2f2f; --fs-fill-off: #373737; --fs-fill-on: #202020; --fs-glow: rgba(56,178,255,.45); --fs-thumb: #ffffff; --fs-text: #e8eef6; --fs-muted: #8fa1b2; --fs-accent: #4e4e4e; --fs-shadow: 0 8px 22px rgba(0,0,0,.28); --fs-radius: 999px; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', 'Cairo', sans-serif; } body { background-color: var(--darker); color: var(--light); min-height: 100vh; direction: rtl; } /* التصميم الجديد للشريط الجانبي */ .sidebar { width: 300px; background: linear-gradient(180deg, var(--dark) 0%, rgba(24,25,26,0.9) 100%); height: 100vh; position: fixed; padding: 2rem 1.5rem; box-shadow: 0 0 30px rgba(0,0,0,0.5); z-index: 100; backdrop-filter: blur(10px); border-left: 1px solid rgba(255,255,255,0.1); } .sidebar-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); } .logo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--secondary); box-shadow: 0 0 20px rgba(0,225,255,0.3); } .store-info { text-align: right; } .store-name { font-size: 1.3rem; font-weight: 700; color: var(--light); margin-bottom: 0.2rem; } .store-desc { font-size: 0.9rem; color: var(--gray); } /* أزرار القوائم الجديدة */ .sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; } .nav-btn { background: transparent; border: none; color: var(--gray); font-size: 1rem; text-align: right; padding: 0.8rem 1rem; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.8rem; } .nav-btn i { font-size: 1.2rem; } .nav-btn:hover { background: rgba(88,101,242,0.1); color: var(--light); } .nav-btn.active { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; box-shadow: 0 5px 15px rgba(88,101,242,0.3); } .discord-link { margin-top: auto; background-color: #434343; /* رصاصي غامق جدًا */ color: white; padding: 0.8rem; border-radius: 8px; text-align: center; text-decoration: none; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.3s ease; } .discord-link:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(72, 72, 72, 0.615); background-color: rgba(80, 82, 112, 0.637); /* لون hover أفتح شوي */ } /* المحتوى الرئيسي */ .main-content { margin-right: 300px; padding: 2rem 3rem; min-height: 100vh; } .main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); } .main-header h1 { font-size: 1.8rem; font-weight: 700; color: var(--light); position: relative; } .main-header h1::after { content: ''; position: absolute; bottom: -1.5rem; right: 0; width: 50px; height: 3px; background: var(--secondary); border-radius: 3px; } /* كروت اللوقات المعدلة */ .logs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; } .log-card { background: rgba(30,31,32,0.8); border-radius: 12px; padding: 1.5rem; transition: all 0.3s ease; border: 1px solid rgba(233, 228, 228, 0.05); backdrop-filter: blur(10px); } .log-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); border-color: var(--primary); } .log-title { font-size: 1.1rem; font-weight: 600; color: var(--secondary); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; } .log-select { width: 100%; padding: 0.8rem 1rem; border-radius: 8px; border: none; /* === الألوان الجديدة === */ background-color: #1e1f20; /* خلفية سوداء */ color: #f8f9fa; /* نص أبيض */ font-size: 0.95rem; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; } /* عند التركيز (Focus) */ .log-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2); } /* لون النص في الخيارات المنسدلة */ .log-select option { background-color: #1e1f20; /* خلفية الخيارات سوداء */ color: #f8f9fa; /* نص الخيارات أبيض */ } /* تأثيرات جديدة */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .section { animation: fadeIn 0.5s ease forwards; } /* تصميم متجاوب */ @media (max-width: 992px) { .sidebar { width: 250px; padding: 1.5rem 1rem; } .main-content { margin-right: 250px; padding: 1.5rem 2rem; } } @media (max-width: 768px) { .sidebar { width: 100%; height: auto; position: relative; padding: 1rem; } .main-content { margin-right: 0; padding: 1.5rem; } .logs-list { grid-template-columns: 1fr; } } .protection-section { padding: 20px 0; } .protections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 25px; margin-top: 20px; } .protection-card { background: rgba(30, 31, 32, 0.8); border-radius: 12px; padding: 20px; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .protection-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); border-color: var(--primary); } .protection-header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; } .protection-icon { background: rgba(88, 101, 242, 0.2); width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .protection-icon i { font-size: 22px; color: var(--primary); } .protection-info { flex-grow: 1; } .protection-title { font-size: 1.2rem; font-weight: 700; color: var(--light); margin: 0 0 5px 0; } .protection-description { font-size: 0.9rem; color: var(--gray); margin: 0; line-height: 1.4; } .protection-status { padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; flex-shrink: 0; align-self: center; } .status-active { background-color: rgba(40, 167, 69, 0.2); color: var(--success); } .status-inactive { background-color: rgba(220, 53, 69, 0.2); color: var(--danger); } .protection-toggle { display: flex; justify-content: flex-end; margin-bottom: 20px; } /* Switch/Toggle Button */ .switch { position: relative; display: inline-block; width: 50px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: var(--primary); } input:checked + .slider:before { transform: translateX(26px); } .protection-details h4 { color: var(--light); margin: 15px 0 10px 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; } .protection-details h4 i { color: var(--secondary); } .whitelist-container, .punishments-container { background: rgba(0, 0, 0, 0.2); border-radius: 8px; padding: 15px; margin-bottom: 15px; } .whitelist-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; min-height: 30px; /* لمنع انكماش المربع عند عدم وجود عناصر */ } .whitelist-tag { background: rgba(88, 101, 242, 0.2); color: var(--primary); padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; } .whitelist-tag .remove-whitelist-btn { background: none; border: none; color: var(--danger); cursor: pointer; padding: 0; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; } .whitelist-tag .remove-whitelist-btn:hover { color: #ff4d4d; } .whitelist-empty { color: var(--gray); font-style: italic; font-size: 0.9rem; margin: 5px 0; } .add-whitelist { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .add-whitelist-select { flex-grow: 1; min-width: 150px; padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; } .add-whitelist-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } .add-whitelist-btn { background: var(--primary); color: white; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; transition: background-color 0.2s; } .add-whitelist-btn:hover { background: var(--primary-dark); } .add-whitelist-btn i { font-size: 0.9rem; } .punishment-control, .timeout-control { margin-bottom: 15px; } .punishment-control:last-child, .timeout-control:last-child { margin-bottom: 0; } .punishment-control label, .timeout-control label { display: block; font-size: 0.9rem; color: var(--light); margin-bottom: 5px; } .punishment-select, .timeout-duration-input { width: 100%; padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; } .punishment-select:focus, .timeout-duration-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } .timeout-duration-input { width: 100px; } .whitelist-group { margin-bottom: 20px; padding: 15px; background: rgba(0, 0, 0, 0.1); border-radius: 8px; } .whitelist-group:last-child { margin-bottom: 0; } .whitelist-group label { display: block; font-size: 0.9rem; color: var(--light); margin-bottom: 8px; font-weight: 500; } .whitelist-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 30px; } .whitelist-tag { background: rgba(88, 101, 242, 0.2); color: var(--primary); padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; } .whitelist-tag .remove-whitelist-btn { background: none; border: none; color: var(--danger); cursor: pointer; padding: 0; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; } .whitelist-tag .remove-whitelist-btn:hover { color: #ff4d4d; } .whitelist-empty { color: var(--gray); font-style: italic; font-size: 0.85rem; margin: 5px 0; } .add-whitelist { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .add-whitelist-select { flex-grow: 1; min-width: 150px; padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; } .add-whitelist-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } .add-whitelist-btn { background: var(--primary); color: white; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; transition: background-color 0.2s; flex-shrink: 0; } .add-whitelist-btn:hover { background: var(--primary-dark); } .add-whitelist-btn i { font-size: 0.9rem; } .punishment-control { margin-bottom: 15px; padding: 15px; background: rgba(0, 0, 0, 0.1); border-radius: 8px; } .punishment-control:last-child { margin-bottom: 0; } .punishment-control label { display: block; font-size: 0.9rem; color: var(--light); margin-bottom: 8px; font-weight: 500; } .punishment-select, .timeout-duration-input { width: 100%; padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; margin-bottom: 10px; } .punishment-select:focus, .timeout-duration-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } .timeout-control { margin-top: 10px; } .timeout-control label { display: block; font-size: 0.85rem; color: var(--gray); margin-bottom: 5px; } .timeout-duration-input { width: 100px; margin-bottom: 0; } .tickets-main-container { display: flex; flex-direction: column; gap: 25px; } .tickets-settings-card, .tickets-sections-card { background: rgba(30, 31, 32, 0.8); border-radius: 12px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); } .tickets-settings-card h3, .tickets-sections-card h3, .tickets-sections-card h4 { color: var(--light); margin: 0 0 15px 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; } .tickets-sections-card h4 { font-size: 1.1rem; margin-top: 25px; } .settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; margin-bottom: 20px; } .setting-item { display: flex; flex-direction: column; } .setting-item label { font-size: 0.9rem; color: var(--gray); margin-bottom: 5px; } .tickets-select, .setting-item input { padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; } .tickets-select:focus, .setting-item input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } .sections-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; } .section-card { background: rgba(0, 0, 0, 0.2); border-radius: 8px; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease; } .section-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); border-color: var(--primary); } .section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; } .section-info h4 { color: var(--light); margin: 0 0 8px 0; font-size: 1rem; } .section-info p { color: var(--gray); font-size: 0.85rem; margin: 3px 0; display: flex; align-items: center; gap: 5px; } .delete-section-btn { background: rgba(220, 53, 69, 0.2); color: var(--danger); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; margin-top: 5px; } .delete-section-btn:hover { background: var(--danger); color: white; } .section-details { margin-top: 10px; } .section-image-preview { width: 100%; height: 100px; border-radius: 6px; overflow: hidden; background: rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; } .section-image-preview img { width: 100%; height: 100%; object-fit: cover; } .section-details p { color: var(--light); font-size: 0.85rem; margin: 5px 0; display: flex; align-items: center; gap: 5px; } .add-section-form { background: rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 15px; } .form-row { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; } .form-row > * { flex: 1; min-width: 200px; } .form-row input, .form-row select { padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; } .form-row input:focus, .form-row select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } /* === تصميم رفع الصور === */ .file-upload-wrapper { display: flex; flex-direction: column; gap: 5px; flex: 1; } .file-upload-label { padding: 10px 12px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.3); background-color: rgba(30, 31, 32, 0.5); color: var(--gray); font-size: 0.9rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; text-align: center; } .file-upload-label:hover { border-color: var(--primary); color: var(--light); } .file-input { display: none; } .file-name { font-size: 0.8rem; color: var(--gray); text-align: center; padding: 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .no-sections { color: var(--gray); font-style: italic; text-align: center; padding: 30px; grid-column: 1 / -1; } broadcast-main-container { padding: 20px 0; } .broadcast-option-card { background: rgba(30, 31, 32, 0.8); border-radius: 12px; padding: 20px; margin-bottom: 25px; border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); transition: all 0.3s ease; } .broadcast-option-card:hover { border-color: var(--primary); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } .broadcast-option-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .broadcast-option-info { display: flex; align-items: center; gap: 15px; } .broadcast-option-info i { font-size: 1.5rem; color: var(--primary); } .broadcast-option-info h3 { color: var(--light); margin: 0; font-size: 1.3rem; } .broadcast-option-toggle { display: flex; align-items: center; gap: 10px; } .broadcast-option-details { background: rgba(0, 0, 0, 0.2); border-radius: 8px; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.05); } .broadcast-option-details p { color: var(--gray); font-size: 0.9rem; margin: 0; line-height: 1.5; } .add-token-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .add-token-form input[type="password"] { flex-grow: 1; min-width: 250px; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; } .add-token-form input[type="password"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } .tokens-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; } .token-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background: rgba(0, 0, 0, 0.3); border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.05); } .token-value { color: var(--light); font-family: monospace; font-size: 0.85rem; word-break: break-all; } .remove-token-btn { background: rgba(220, 53, 69, 0.2); color: var(--danger); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .remove-token-btn:hover { background: var(--danger); color: white; } .no-tokens { color: var(--gray); font-style: italic; text-align: center; padding: 20px; } /* === تصميم قسم رتب الإدارة === */ .voice-notifications-main-container, .autorole-main-container { padding: 20px 0; } .voice-notifications-settings-card, .autorole-settings-card { background: rgba(30, 31, 32, 0.8); border-radius: 12px; padding: 20px; margin-bottom: 25px; border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); } .voice-notifications-settings-card h3, .autorole-settings-card h3 { color: var(--light); margin: 0 0 15px 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; } .settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; margin-bottom: 20px; } .setting-item { display: flex; flex-direction: column; } .setting-item label { font-size: 0.9rem; color: var(--gray); margin-bottom: 5px; } .voice-notifications-select, .autorole-select { padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; } .voice-notifications-select:focus, .autorole-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } .toggle-switch { display: flex; align-items: center; gap: 10px; } .toggle-switch label { position: relative; display: inline-block; width: 50px; height: 24px; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: var(--primary); } input:checked + .slider:before { transform: translateX(26px); } .status-active { color: var(--success); font-weight: 600; } .status-inactive { color: var(--danger); font-weight: 600; } .admin-roles-main-container { padding: 20px 0; } .admin-roles-current-card, .admin-roles-add-card { background: rgba(30, 31, 32, 0.8); border-radius: 12px; padding: 20px; margin-bottom: 25px; border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); } .admin-roles-current-card h3, .admin-roles-add-card h3 { color: var(--light); margin: 0 0 15px 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; } .admin-roles-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; } .admin-role-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: rgba(0, 0, 0, 0.2); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.2s ease; } .admin-role-item:hover { border-color: var(--primary); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } .admin-role-info { display: flex; align-items: center; gap: 10px; } .admin-role-info i { color: var(--primary); } .admin-role-name { color: var(--light); font-size: 0.95rem; } .remove-admin-role-btn { background: rgba(220, 53, 69, 0.2); color: var(--danger); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .remove-admin-role-btn:hover { background: var(--danger); color: white; } .add-admin-role-form { display: flex; flex-direction: column; gap: 15px; } .form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .form-row > * { flex: 1; min-width: 200px; } .admin-roles-select { padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; } .admin-roles-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } .no-admin-roles { color: var(--gray); font-style: italic; text-align: center; padding: 20px; } .welcome-main-container { padding: 20px 0; } .welcome-option-card { background: rgba(30, 31, 32, 0.8); border-radius: 12px; padding: 20px; margin-bottom: 25px; border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); transition: all 0.3s ease; } .welcome-option-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); border-color: var(--primary); } .welcome-option-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .welcome-option-info { display: flex; align-items: center; gap: 15px; } .welcome-option-info i { font-size: 1.5rem; color: var(--primary); } .welcome-option-info h3 { color: var(--light); margin: 0; font-size: 1.3rem; } .welcome-option-toggle { display: flex; align-items: center; gap: 10px; } .welcome-option-details { background: rgba(0, 0, 0, 0.2); border-radius: 8px; padding: 20px; margin-top: 15px; border: 1px solid rgba(255, 255, 255, 0.05); } .settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; margin-bottom: 20px; } .setting-item { display: flex; flex-direction: column; } .setting-item label { font-size: 0.9rem; color: var(--gray); margin-bottom: 5px; } .welcome-select, .setting-item input, .setting-item textarea, .setting-item select { padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.9rem; } .welcome-select:focus, .setting-item input:focus, .setting-item textarea:focus, .setting-item select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2); } .setting-item textarea { min-height: 100px; resize: vertical; } .save-btn.primary { width: 100%; margin-top: 15px; } .no-sections { color: var(--gray); font-style: italic; text-align: center; padding: 20px; } .image-preview-large { margin-top: 20px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.2); padding: 20px; backdrop-filter: blur(10px); } .interactive-preview-container { position: relative; width: 100%; max-width: 500px; margin: 0 auto 20px auto; border-radius: 8px; overflow: hidden; cursor: grab; border: 1px solid rgba(255, 255, 255, 0.05); } .preview-background { width: 100%; height: auto; display: block; } .preview-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; /* لمنع التفاعل مع العناصر داخلها */ } .preview-avatar { position: absolute; width: 100px; height: 100px; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); left: 50%; top: 50%; transform: translate(-50%, -50%); cursor: grab; pointer-events: auto; /* إعادة تفعيل التفاعل لهذا العنصر */ } .preview-username { position: absolute; color: white; font-size: 48px; font-weight: bold; text-shadow: 1px 1px 2px black; left: 50%; top: 70%; transform: translate(-50%, -50%); cursor: grab; pointer-events: auto; /* إعادة تفعيل التفاعل لهذا العنصر */ } .preview-controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; padding: 20px; background: rgba(0, 0, 0, 0.3); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); } .control-group { display: flex; flex-direction: column; gap: 10px; } .control-group label { font-size: 0.9rem; color: var(--gray); margin-bottom: 5px; display: block; } .position-controls { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; } .position-controls label { font-size: 0.8rem; color: var(--light); margin-bottom: 3px; display: flex; flex-direction: column; } .position-controls input[type="number"] { width: 60px; padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #1e1f20; color: #f8f9fa; font-size: 0.85rem; } input[type="range"] { width: 100%; margin: 5px 0; } .preview-empty, .preview-loading, .preview-error { color: var(--gray); font-style: italic; text-align: center; padding: 30px; } .preview-error { color: var(--danger); font-style: normal; } .dashboard-home { padding: 20px; font-family: 'Cairo', sans-serif; } .welcome-card { background-color: #00000000; border-radius: 12px; padding: 25px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.55); color: #fff; } .welcome-header h2 { font-size: 24px; margin-bottom: 8px; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; } .stat-card { background-color: #0E0F10; border-radius: 8px; padding: 15px; display: flex; align-items: center; gap: 10px; box-shadow: inset 0 0 4px rgb(255, 255, 255); } .stat-card .icon { font-size: 24px; color: #595959; } .stat-card .info h3 { margin: 0; font-size: 16px; color: #aaa; } .stat-card .info p { margin: 5px 0 0; font-size: 20px; font-weight: bold; } .blacklisted-words-header h2 { font-size: 22px; margin: 0; color: var(--bl-text); display: flex; align-items: center; gap: 10px; } .blacklisted-words-header p { margin-top: 6px; font-size: 14px; color: var(--bl-muted); } /* صندوق واضح */ .bl-card { background-color: var(--bl-card); border: 1px solid var(--bl-border); border-radius: 12px; padding: 18px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); margin-bottom: 16px; } .bl-card h3 { margin: 0 0 12px; font-size: 18px; color: var(--bl-text); display: flex; align-items: center; gap: 8px; } /* شبكة داخل الصندوق */ .bl-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; } .bl-setting { display: flex; flex-direction: column; gap: 6px; } .bl-setting label { color: var(--bl-text); font-size: 14px; } .bl-setting small { color: var(--bl-muted); font-size: 12px; } /* إدخالات */ .bl-input, .bl-select, .bl-textarea { width: 100%; background: var(--bl-input); color: var(--bl-text); border: 1px solid var(--bl-input-border); border-radius: 10px; padding: 10px 12px; outline: none; font-size: 14px; transition: border-color .2s, box-shadow .2s; } .bl-input:focus, .bl-select:focus, .bl-textarea:focus { border-color: var(--bl-accent); box-shadow: 0 0 0 3px rgba(79,140,255,0.15); } /* مجموعة إدخال + زر */ .bl-group { display: flex; gap: 10px; margin-bottom: 12px; } .bl-group .bl-input { flex: 1; } /* زر عام */ .bl-save-btn { background-color: #424242; color: #fff; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-size: 14px; cursor: pointer; transition: background .2s, transform .05s; display: inline-flex; align-items: center; gap: 8px; } .bl-save-btn:hover { background-color: var(--bl-accent-hover); } .bl-save-btn:disabled { opacity: .6; cursor: not-allowed; } .bl-save-btn:active { transform: translateY(1px); } /* سويتش */ .bl-switch-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .bl-switch-label { color: var(--bl-text); font-size: 14px; } .bl-switch { display: inline-block; } .bl-switch input { display: none; } .bl-slider { position: relative; display: inline-block; width: 46px; height: 24px; background: #374151; border-radius: 999px; transition: background .2s; } .bl-slider:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); } .bl-switch input:checked + .bl-slider { background: var(--bl-accent); } .bl-switch input:checked + .bl-slider:before { transform: translateX(22px); } /* قائمة الكلمات (شرائح) */ .bl-chip-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 1px dashed var(--bl-input-border); background: rgba(27, 27, 27, 0.5); border-radius: 10px; min-height: 46px; margin-bottom: 8px; } .bl-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bl-chip-bg); border: 1px solid var(--bl-chip-border); color: var(--bl-text); border-radius: 999px; padding: 6px 10px; } .bl-chip .bl-chip-remove { background: transparent; border: none; color: var(--bl-muted); cursor: pointer; padding: 0; display: inline-flex; align-items: center; } .bl-chip .bl-chip-remove:hover { color: var(--bl-danger); } .bl-empty { color: var(--bl-muted); font-size: 14px; } /* حالة الحفظ */ .bl-status { font-size: 14px; margin-top: 8px; color: var(--bl-muted); } .bl-status.success { color: var(--bl-success); } .bl-status.error { color: var(--bl-danger); } /* استجابة للجوال */ @media (max-width: 720px) { .bl-settings-grid { grid-template-columns: 1fr; } .bl-group { flex-direction: column; } } /* مدة التايم أوت */ #moderation-timeoutMs { background-color: #363636; /* خلفية غامقة خاصة */ color: #ffffff; /* لون النص مميز */ border: 1px solid #171c29; /* حدود بلون ذهبي */ } /* مربع إضافة كلمة ممنوعة */ #bl-new-word-input { background-color: #343434; color: #ffffff; border: 1px solid #171c29; } /* قائمة قناة اللوق */ #moderation-logChannelId { background-color: #343434; color: #ffffff; border: 1px solid #171c29; } /* الحاوية الرئيسية */ .admin-roles-main-container { direction: rtl; background-color: var(--main-bg); padding: 20px; border-radius: var(--radius); } /* نموذج الإدخال */ .add-admin-role-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; } /* صف الإدخال */ .ar-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; position: relative; padding-top: 24px; } /* الترويسة */ .ar-row::before { font-family: var(--font-mono); font-size: 13px; color: var(--muted); position: absolute; top: 0; right: 0; left: 0; opacity: 0.6; padding-inline: 8px; } /* الحقول */ .ar-input { padding: 12px 14px; background: var(--field-bg); border: 1px solid var(--field-border); border-radius: var(--radius); color: white; outline: none; } .ar-input::placeholder { color: #a5b5c8; opacity: 0.8; } /* زر الإضافة */ .save-btn.primary { background: linear-gradient(to left, #3c3c3c, #000000); color: #ffffff; font-weight: bold; border: none; border-radius: var(--radius); padding: 12px 16px; cursor: pointer; box-shadow: var(--shadow); } .admin-role-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background-color: #2c2c2c; border: 1px solid #333334; border-radius: 10px; padding: 12px 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); flex-wrap: wrap; } .ar-item-pair { display: flex; gap: 6px; font-size: 14px; color: #e8eef6; } .ar-item-pair strong { color: #8fa1b2; font-weight: bold; } .ar-item-trigger { color: #ffe478; font-weight: 600; } .ar-item-reply { color: #95ddff; opacity: 0.95; font-weight: 500; } /* ترويسة داخل العنصر */ .admin-role-item::before { font-family: var(--font-mono); font-size: 13px; color: var(--muted); position: absolute; top: 6px; right: 16px; opacity: 0.6; } /* النصوص */ .ar-item-trigger { color: var(--highlight-1); font-weight: bold; padding-top: 20px; } .ar-item-reply { color: var(--highlight-2); padding-top: 20px; } /* زر الحذف */ .remove-auto-reply-btn { background: transparent; border: none; color: #ff6a6a; cursor: pointer; font-size: 16px; } .remove-auto-reply-btn:hover { color: #ff3b3b; } /* القائمة الفارغة */ .no-admin-roles { text-align: center; color: var(--muted); font-style: italic; margin-top: 20px; } .ar-combined-box { background-color: #292a2b; padding: 20px; border-radius: 12px; border: 1px solid #212224; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; gap: 10px; } .fs-ar-toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--fs-muted); user-select: none; } /* السويتش */ .fs-switch { position: relative; display: inline-block; inline-size: var(--fs-w); block-size: var(--fs-h); border-radius: var(--fs-radius); filter: drop-shadow(var(--fs-shadow)); isolation: isolate; } /* أحجام إضافية */ .fs-switch--sm { --fs-w: 50px; --fs-h: 28px; --fs-pad: 3px; } .fs-switch--xl { --fs-w: 84px; --fs-h: 40px; --fs-pad: 5px; } /* مدخل النقر */ .fs-switch input { appearance: none; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 3; } /* المسار مع حد متدرّج (تقنية طبقتين) */ .fs-track { position: absolute; inset: 0; border-radius: var(--fs-radius); background: linear-gradient(var(--fs-fill-off), var(--fs-fill-off)) padding-box, conic-gradient(from 140deg, var(--fs-border2), var(--fs-border3) 30%, var(--fs-border2) 60%, var(--fs-border1)) border-box; border: 1px solid transparent; overflow: hidden; } /* تعبئة داخلية تتغيّر عند التفعيل */ .fs-track::after { content: ""; position: absolute; inset: 1px; border-radius: calc(var(--fs-radius) - 1px); background: radial-gradient(120% 140% at 10% 50%, rgba(255,255,255,.06), transparent 40%), linear-gradient(180deg, var(--fs-fill-off), #161c2a); transition: background .25s ease; } /* تسميات داخل المسار */ .fs-label { position: absolute; inset-block-start: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 600; letter-spacing: .3px; pointer-events: none; color: #aab8c9; opacity: .85; } .fs-label-off { inset-inline-start: 10px; } .fs-label-on { inset-inline-end: 10px; color: #bfe7ff; opacity: 0; transition: opacity .25s ease; } /* وهج ناعم */ .fs-glow { position: absolute; inset: -20%; background: radial-gradient(60% 60% at 20% 50%, var(--fs-glow), transparent 60%); filter: blur(12px); opacity: .0; transition: opacity .25s ease; } /* الإبهام: يبدأ يسار بصريًا دائمًا */ .fs-thumb { position: absolute; inset-block-start: var(--fs-pad); left: var(--fs-pad); /* يبدأ من اليسار */ right: unset; /* مهم: لا تثبّت الجهتين معًا */ inline-size: calc(var(--fs-h) - var(--fs-pad) * 2); block-size: calc(var(--fs-h) - var(--fs-pad) * 2); border-radius: 50%; background: radial-gradient(120% 140% at 30% 30%, #ffffff, #eaf4ff 40%, #dfeeff 60%, #c4d9f2 70%), linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.2)); box-shadow: 0 2px 6px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.05); z-index: 2; display: grid; place-items: center; transition: left 0.25s ease-in-out, right 0.25s ease-in-out, box-shadow .2s ease; } /* أيقونات الإبهام */ .fs-icon { font-size: 12px; line-height: 1; transition: opacity .2s ease, transform .2s ease; } .fs-icon-on { position: absolute; opacity: 0; transform: scale(.6); color: #0d2233; } .fs-icon-off { position: absolute; opacity: .8; transform: scale(1); color: #0d2233; } /* حالة :focus لسهولة الوصول */ .fs-switch input:focus-visible + .fs-track { box-shadow: 0 0 0 3px rgba(56,178,255,.25); } /* عند التفعيل: يثبت يمين بصريًا */ .fs-switch input:checked + .fs-track::after { background: radial-gradient(120% 140% at 80% 50%, rgba(119, 107, 255, 0.25), transparent 50%), linear-gradient(180deg, var(--fs-fill-on), #0000ff); } .fs-switch input:checked + .fs-track .fs-glow { opacity: .75; } .fs-switch input:checked ~ .fs-thumb { left: unset; /* حرر اليسار */ right: var(--fs-pad); /* يروح لليمين */ box-shadow: 0 4px 10px rgba(0,0,0,.35), 0 0 0 6px rgba(56,178,255,.15); } .fs-switch input:checked + .fs-track .fs-label-on { opacity: 1; } .fs-switch input:checked + .fs-track .fs-label-off { opacity: .2; } .fs-switch input:checked ~ .fs-thumb .fs-icon-on { opacity: .9; transform: scale(1); } .fs-switch input:checked ~ .fs-thumb .fs-icon-off { opacity: 0; transform: scale(.6); } /* حالة تعطيل */ .fs-switch input:disabled { cursor: not-allowed; } .fs-switch input:disabled + .fs-track { filter: grayscale(.3) brightness(.8); opacity: .7; } .fs-switch input:disabled ~ .fs-thumb { opacity: .85; } /* نص السويتش */ .fs-switch-text { color: var(--fs-text); font-size: 14px; } /* تقليل الحركة */ @media (prefers-reduced-motion: reduce) { .fs-thumb, .fs-track::after, .fs-label, .fs-glow, .fs-icon { transition: none !important; } }