* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #ffffff;
    --primary-color-gt: #ffffff;
    --secondary-color: #292929;
    --background-color: #131313;
    --text-color: #ffffff;
    --border-color: #313131;
    --hover-color: #303030;
    --error-color: #bc5e5e;
    --success-color: #609e62;
    --warning-color: #c89f61;
    --info-color: #17a2b8;
}

html, body {
    height: 100%;
    font-family: 'Rubik', 'Google Sans Flex', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
}

/* التخطيط الرئيسي */
.app-container {
    display: flex;
    height: 100vh;
}

/* القائمة الجانبية */
.sidebar {
    width: 280px;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s
ease;
    z-index: 100;
    display: none ;
}

.header-logo {
  display: none;
}
.header-logo svg {
      width: 71px;
      height: 29px;
}
/* هيدر القائمة الجانبية */
.sidebar-header {
    padding: 20px 20px 5px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
}
.sidebar-header img {
        width: 41px;
}
.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
}

/* محتوى القائمة الجانبية */
.sidebar-content {
    flex: 1;
    padding: 6px 15px 10px 10px;
    overflow-y: auto;
}

/* خيارات القائمة */
.menu-options {
    margin-bottom: 7px;
}

.menu-options h3 {
    font-size: 13px;
    color: #aaa;
    margin: 8px 0px;
    font-weight: 500;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    border-radius: 12px;
    margin-bottom: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: var(--hover-color);
}

.menu-item.active {
    color: var(--primary-color);
}

.menu-item i {
    margin-left: 12px;
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.menu-item span {
    font-size: 13px;
    font-weight: 500;
}

/* قسم جديدة */
.new-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.new-chat-btn:hover {
    background-color: #0d62d9;
}

.new-chat-btn i {
    margin-left: 8px;
}

/* المحادثات الأخيرة */
.recent-chats {
    margin-top: 20px;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 8px 9px 8px 8px ;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-item:hover {
    background-color: var(--hover-color);
}

.chat-item i {
  font-size: 13px;
    color: #aaa;
}

.chat-item span {
    font-size: 13px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* زر القائمة للموبايل */
.mobile-menu-btn {


    background-color: var(--secondary-color);
    border: none;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 31px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}

/* المحتوى الرئيسي */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* الهيدر العلوي */
.main-header {
    padding: 4px 12px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.user-profile {
    display: flex;
    align-items: center;
    position: relative;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #4b4b4b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border-color);
    background: linear-gradient(145deg, var(--secondary-color), #2a2a2a);
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.user-info p {
    font-size: 13px;
    color: #aaa;
}
.chat-acf {
    display: none !important;
}
/* قائمة الحساب المنسدلة */
.account-dropdown {
position: fixed;
    top: 60px;
    left: 16px;
    width: 185px;
    border-radius: 21px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #292929;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgb(0 0 0 / 14%) 0px 4px 5px 0px;

}

.account-dropdown.active {
    display: block;
}

.account-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.account-email {
    font-size: 13px;
    color: #aaa;
}

.account-menu {
    padding: 10px 0;
}

.account-menu-item {
display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.account-menu-item:hover {
    background-color: var(--hover-color);
}

.account-menu-item i {
    margin-left: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.account-menu-item span {
    font-size: 13px;
}

.account-menu-item.logout {
    color: var(--error-color);
    border-top: 1px solid var(--border-color);
    margin-top: 5px;
}

.header-actions {
    display: none;
    align-items: center;
}

.header-btn {
    background: none;
    border: none;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header-btn:hover {
    background-color: var(--hover-color);
}

/* منطقة المحادثة */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* الرسائل - محاذاة في المنتصف */
.messages-area {
    flex: 1;
    padding: 25px;
    padding-bottom: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 229px;
}

.messages-wrapper {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
}

/* رسالة الترحيب */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    width: 100%;
}

.welcome-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-message h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-message p {
    font-size: 16px;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.welcome-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.feature {
background-color: var(--secondary-color);
    padding: 15px 20px;
    border-radius: 40px;
    font-size: 14px;
    display: flex;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}

.feature i {
    margin-left: 10px;
    color: gray;
}

/* الرسائل العائمة */
.message {
    width: 100%;
    max-width: 100%;
    display: flex;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {

}

.message.bot {
    align-self: flex-start;
}

.message-content-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    position: relative;
}

.message.user .message-content-wrapper {
    align-items: flex-end;
}

.message.bot .message-content-wrapper {
    align-items: flex-start;
}



.message-content {
padding: 14px 2px 0px 4px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    min-width: 60px;
    max-width: 100%;
    position: relative;
}

.message.user .message-content {
    border-radius: 20px;
    color: white;
    padding: 7px 11px;
    background-color: #252625;
}

.message.bot .message-content {
    border-radius: 8px 22px 22px 22px;
}

/* تنسيق الروابط داخل الرسائل */
.message-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px dashed var(--primary-color);
    padding-bottom: 2px;
    word-break: break-all;
}

.message-content a:hover {
    color: #4dabf7;
    border-bottom: 1px solid #4dabf7;
}

.message.user .message-content a {
    color: #a8d1ff;
    border-bottom: 1px dashed #a8d1ff;
}

.message.user .message-content a:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* أيقونات الرسائل - تحت رسالة البوت فقط */
.message-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    opacity: 1;
    transition: opacity 0.2s;
    bottom: 10px;
    padding: 8px 0px 12px 12px;
    border-radius: 20px;
    width: fit-content;
    padding-bottom: 48px;
}

.message.bot:hover .message-actions {
    opacity: 1;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #bbb;
    position: relative;

}
.action-btn span {
    font-size: 16px;
}

.action-btn:hover {
    background-color: var(--hover-color);
    color: var(--text-color);
}

.action-btn.copy:hover {
    color: var(--primary-color);
}

.action-btn.share:hover {
    color: #34a853;
}

.action-btn.dislike:hover {
    color: var(--error-color);
}

.action-btn.regenerate:hover {
    color: #fbbc05;
}

/* منطقة معلومات الرابط */
.link-info-container {
    display: none;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 10px auto 5px;
    padding: 12px 16px;
    max-width: 1200px;
    width: calc(100% - 50px);
}

.link-info-container.active {
    display: block;
}

.link-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.link-icon {
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.link-details {
    flex: 1;
    overflow: hidden;
}

.link-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.link-url {
    font-size: 11px;
    color: #aaa;
    word-break: break-all;
}

.link-actions {
    display: flex;
    gap: 8px;
}

.link-action-btn {
    background: none;
    border: none;
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.link-action-btn:hover {
    background-color: var(--hover-color);
    color: var(--text-color);
}

.link-action-btn.open:hover {
    color: var(--primary-color);
}

.link-action-btn.copy:hover {
    color: var(--success-color);
}

.link-action-btn.remove:hover {
    color: var(--error-color);
}

/* عداد الأحرف - يظهر فوق صندوق الإدخال */
.char-counter {
    position: absolute;
    top: -35px;
    right: 50%;
    transform: translateX(50%);
    background-color: rgba(39, 39, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #aaa;
    border: 1px solid var(--border-color);
    display: none;
    z-index: 10;
    transition: all 0.3s ease;
}

.char-counter.warning {
    color: var(--warning-color);
    background-color: rgba(255, 152, 0, 0.1);
    border-color: var(--warning-color);
}

.char-counter.error {
    color: var(--error-color);
    background-color: rgba(255, 68, 68, 0.1);
    border-color: var(--error-color);
}


/* الملفات المرفوعة - عرض أفقي */
.uploaded-files-container {
    padding: 0 5px 15px;
    overflow-x: auto;
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.uploaded-files-container.active {
    display: block;
}

.uploaded-files {
    display: flex;
    gap: 15px;
    padding-bottom: 10px;

}





.file-item {
  border-radius: 12px;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  background: #3f3f3f00;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-item:hover {
    border-color: var(--primary-color);
}

.file-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.file-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-info {
    width: 100%;
    text-align: right;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-name-truncated {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: center;
}

.file-size {
    font-size: 11px;
    color: #aaa;
}

.file-item:hover .file-remove-btn {
  display: block;
}
.file-remove-btn {
    background: transparent;
    border: none;
    position: absolute;
    color: var(--error-color);
    cursor: pointer;
    margin-left: 0px;
    padding: 5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    left: 0;
    top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.file-remove-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* رسالة الخطأ */
.error-message {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid #bc5e5e26;
    color: var(--error-color);
    padding: 12px 10px;
    border-radius: 12px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    font-size: 14px;
    display: none;
    max-width: 236px;
    width: calc(100% - 50px);
}

.error-message.active {
    display: flex;
}

.error-message i {
    margin-left: 10px;
    font-size: 18px;
}

.header-log {
    display: none;
    align-items: center;
    flex-direction: row-reverse;
}
.header-log a {
    font-size: 14px;
    margin: 9px 18px 9px 0px;
    color: #dfdfdf;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    text-decoration: none;
}
.header-log i {
        margin-left: 8px;
}
.header-log a:first-child {
padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
/* منطقة الإدخال - في وسط الصفحة */
.input-area {
padding: 15px 0px 0px;
    width: 92%;
    max-width: 1000px;
    position: fixed;
    z-index: 50;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    margin-left: -140px;
    background-color: var(--background-color);
    box-shadow: 0px 0px 15px 20px var(--background-color);

}

.input-container {
display: flex;
    align-items: flex-end;
    background-color: var(--secondary-color);
    border-radius: 40px;
    padding: 6px 7px;
    position: relative;
    transition: all 0.3s
ease;
    border: 2px solid transparent;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: rgb(0 0 0 / 18%) 0px 1px 2px 0px;
}

.input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 25px rgba(26, 115, 232, 0.15);
}

.input-container.error {
    border-color: var(--error-color);
    background-color: rgba(255, 68, 68, 0.05);
    box-shadow: 0 4px 25px rgba(255, 68, 68, 0.1);
}

.input-buttons-left {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.file-upload-btn, .theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    flex-shrink: 0;
}

.file-upload-btn:hover, .theme-btn:hover {
    background-color: var(--hover-color);
}

.file-upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* مؤشر عدد الملفات على زر الرفع */
.file-count-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: var(--primary-color);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid var(--background-color);
    display: none;
}

.file-upload-btn.has-files .file-count-badge {
    display: flex;
}

/* مؤشر اللون المحدد على زر الثيم */
.theme-color-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    background-color: var(--primary-color);
}

/* منطقة النص مع تحسينات للسطور المتعددة */
.message-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    font-family: 'Rubik', 'Google Sans Flex', sans-serif;
    padding: 12px 15px;
    resize: none;
    max-height: 200px;
    min-height: 24px;
    line-height: 1.6;
    overflow-y: auto;
    direction: rtl;
    text-align: right;
}

.message-input:focus {
    outline: none;
}

.message-input.error {
    color: var(--error-color);
}

.message-input::placeholder {
    color: #888;
    opacity: 0.8;
}

/* تحسين شريط التمرير في منطقة النص */
.message-input::-webkit-scrollbar {
    width: 4px;
}

.message-input::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.message-input::-webkit-scrollbar-thumb {
    background: #585858;
    border-radius: 2px;
}

.message-input::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.send-btn {
background-color: #343434;
    border: none;
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    background-color: #0d62d9;
    transform: scale(1.05);
}

.send-btn:disabled {
    background-color: #585858;
    cursor: not-allowed;
    transform: none;
}

.send-btn.error {
    background-color: var(--error-color);
}

/* الفوتر السفلي */
.footer {
    padding: 15px 5px;

    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 12px;
    color: #aaa;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    transition: opacity 0.2s;
    margin: 0 3px;
}

.privacy-link:hover {
    opacity: 0.8;
}

.privacy-link i {
    margin-right: 5px;
}

/* نافذة اختيار الألوان */
.color-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.color-picker-modal.active {
    display: flex;
}

.color-picker-container {
    background-color: var(--secondary-color);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.color-picker-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.color-picker-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-color-picker {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
}

.color-picker-body {
    padding: 20px;
}

.color-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.color-preset {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid transparent;
}

.color-preset:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.color-preset.active {
    border-color: var(--text-color);
    transform: scale(1.05);
}

.custom-color-section {
    margin-top: 20px;
}

.custom-color-section h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: #aaa;
}

.custom-color-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.color-input-wrapper {
    flex: 1;
}

.color-input-wrapper label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #aaa;
}

.color-hex-input {
    width: 100%;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: monospace;
}

.color-picker-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.color-picker-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-color-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.cancel-color-btn:hover {
    background-color: var(--hover-color);
}

.apply-color-btn {
    background-color: var(--primary-color);
    color: white;
}

.apply-color-btn:hover {
    background-color: #0d62d9;
}

/* زر فتح نافذة الألوان */
.theme-btn {
    position: relative;
}

/* نظام النقاط الجانبي */
.message-dots-navigation {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 90;
}

.dot-item {
width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #2f2f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s
ease;
    position: relative;
    font-weight: 600;
    font-size: 12px;
    color: var(--primary-color);
}

.dot-item:hover {
    transform: scale(1.15);
    background-color: var(--primary-color);
    color: white;
}

.dot-item.active {
color: white;
    transform: scale(1.1);
    border-color: #8a8a8a;
}

.dot-tooltip {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    border: 1px solid var(--border-color);
    z-index: 1000;
    pointer-events: none;
}

.dot-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--secondary-color);
}

.dot-item:hover .dot-tooltip {
    opacity: 1;
    visibility: visible;
}

/* زر إخفاء/إظهار النقاط */


.dots-collapsed .message-dots-navigation {
    display: none;
}

.dots-collapsed .toggle-dots-btn {
    left: 20px;
}

/* زر العودة للأعلى */
.scroll-to-top-btn {
    position: absolute;
    left: 31px;
    margin-left: -20px;
    width: 37px;
    margin-top: -51px;
    height: 37px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 1px solid #343434;
    color: #737373;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    z-index: 91;
    transition: all 0.3s
ease;
    visibility: hidden;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* الأنماط المضافة من op.php */

/* هيدر المسار */
.page-path-header {
    padding: 20px 25px;


}

.path-container {
    margin: 0 auto;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.page-title-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.page-title-text h1 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-title-text p {
    font-size: 14px;
    color: #aaa;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaa;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #4dabf7;
}

.breadcrumb-separator {
    opacity: 0.5;
}

/* المحتوى الرئيسي */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 30px 10px;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* بطاقة الملف الشخصي المصغرة */
.profile-mini-card {
border-radius: 26px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    transition: all 0.3s
ease;
}


.profile-mini-avatar {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background-color: #ffffff1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
}

.profile-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-mini-info {
    flex: 1;
}

.profile-mini-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-mini-info p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.profile-mini-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #ffffff0f;
    color: #c2c2c2;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}



/* قائمة الإعدادات */
.settings-list {

}

.settings-section {
    padding: 0;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 20px;

}

.settings-item:hover {
    background: #ffffff0a ;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.settings-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
}

.settings-item-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}
.settings-item-action span {
          font-size: 12px;
    }
.settings-item-text p {
    font-size: 13px;
    color: #aaa;
}

.settings-item-action {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

.settings-item-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.settings-item-status.active {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

.settings-item-status.inactive {
    background-color: rgba(255, 68, 68, 0.2);
    color: var(--error-color);

}

/* حقول النموذج */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
}

.form-label .required {
    color: var(--error-color);
    margin-right: 3px;
}

.form-input {
width: 100%;
    padding: 12px 16px;
    background-color: rgb(255 255 255 / 0%);
    border-radius: 18px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.05);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 26, 115, 232), 0.1);
}

.form-input:disabled {
    background-color: rgba(255, 255, 255, 0.03);
    color: #888;
    cursor: not-allowed;
}

.form-input.error {
    border-color: var(--error-color);
    background-color: rgba(255, 68, 68, 0.05);
}

.form-input.success {
    border-color: var(--success-color);
    background-color: rgba(76, 175, 80, 0.05);
}

/* زر إظهار/إخفاء كلمة المرور */
.password-input-container {
    position: relative;
}

.password-toggle-btn {
position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-input-container .form-input {
    padding-left: 45px;
}

/* مؤشر قوة كلمة المرور */
.password-strength {
    margin-top: 15px;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.strength-text {
    font-size: 13px;
    color: #aaa;
}

.strength-value {
    font-size: 13px;
    font-weight: 500;
}

.strength-bar {
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 25%;
    background-color: var(--error-color);
}

.strength-fill.fair {
    width: 50%;
    background-color: var(--warning-color);
}

.strength-fill.good {
    width: 75%;
    background-color: #ffca28;
}

.strength-fill.strong {
    width: 100%;
    background-color: var(--success-color);
}

/* متطلبات كلمة المرور */
.requirements-list {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.requirements-list h5 {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
    font-weight: 500;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 10px;
    color: #888;
    transition: color 0.2s;
}

.requirement-item i {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.requirement-item.valid {
    color: var(--success-color);
}

.requirement-item.invalid {
    color: var(--error-color);
}

/* أزرار الإجراءات */
.action-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #ffffff0f;
    color: white;
    border-radius: 25px;

}

.btn-primary:hover {
    background-color: #0d62d9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.btn-secondary:hover {
    background-color: var(--hover-color);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #ff3333;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #3d8b40;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* تحميل الألوان من Local Storage */
.color-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* رسائل التنبيه */
.alert-message {
  padding: 15px 20px;
      border-radius: 17px;
      margin-bottom: 25px;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      position: fixed;
      display: none;
      animation: slideIn 0.3s
  ease;
      top: 20px;
      left: 50%;
      width: 100%;
      transform: translateX(-50%);
      z-index: 9999;
      width: 94%;
      max-width: 420px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* أنيميشن دخول سلس */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* أنيميشن خروج */
@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
}


.alert-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.alert-message.error {
    background-color: rgba(255, 68, 68, 0.1);
    color: var(--error-color);
}

.alert-message.info {
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.1);
    color: var(--primary-color);
}

/* تحميل */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* رسالة خطأ */
.error-text {
    font-size: 13px;
    color: var(--error-color);
    margin-top: 8px;
    display: none;
}

/* نافذة منبثقة */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;


    /* للتحسين على Safari */
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

/* طبقة البلور المنفصلة */
.modal-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0000003d;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: backdrop-filter 1s ease, -webkit-backdrop-filter 1s ease;
    z-index: -1; /* إرسالها للخلف */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active::before {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--secondary-color);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s
ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 10px 25px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: var(--hover-color);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* عناصر التحقق الثنائي في المودال */
.two-factor-option {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 21px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.two-factor-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.05);
}

.two-factor-option.active {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.1);
}

.two-factor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.method-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
}

.method-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.method-details p {
    font-size: 13px;
    color: #aaa;
}

/* شفرة QR في المودال */
.qr-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    color: black;
    font-weight: bold;
}

.qr-instructions {
    font-size: 13px;
    color: #aaa;
    margin-top: 15px;
    line-height: 1.6;
}

/* رموز التحقق */
.verification-code {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.verification-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
}

.verification-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.05);
}

/* إخفاء القائمة الجانبية في الجوال */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        transform: translateX(100%);
        width: 280px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .close-sidebar {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .message-content-wrapper {
        max-width: 90%;
    }

    .welcome-message h2 {
        font-size: 24px;
    }

    .welcome-message p {
        font-size: 14px;
    }

    .account-dropdown {
        width: 200px;
        left: 10px;
    }


    .file-item {
        min-width: 40px;
    }

    .file-preview {
        width: 80px;
        height: 80px;
    }

    .message-actions {
        opacity: 1; /* إظهار الأيقونات دائماً في الجوال */
    }

    .char-counter {
        top: -40px;
        right: 50%;
        transform: translateX(50%);
        font-size: 11px;
    }

    .floating-delete-btn {
        top: 100px;
        right: 20px;
        width: 45px;
        height: 45px;
        z-index: 101;
    }

    .floating-delete-btn i {
        font-size: 18px;
    }

    .link-info-container {
        margin: 10px 15px 5px 15px;
        width: calc(100% - 30px);
    }

    .link-title {
        max-width: 150px;
    }

    /* منطقة الإدخال للجوال */
    .input-area {
        padding: 9px 0px 0px 0px;
        margin-bottom: 0px;
        margin-left: 0px ;
    }

    .input-container {
        padding: 8px 12px;
        border-radius: 40px;
    }

    .message-input {
        font-size: 15px;
        padding: 10px 12px;
        max-height: 150px;
    }

    .file-upload-btn, .theme-btn, .send-btn {
        width: 42px;
        height: 42px;
    }

    .char-counter {
        top: -28px;
        font-size: 11px;
        padding: 5px 12px;
    }

    .uploaded-files-container {
        padding: 0 5px 10px;
    }

    /* إخفاء نظام النقاط في الجوال أو تحسينه */
    .message-dots-navigation {
        left: 10px;
        gap: 8px;
    }

    .dot-item {
        width: 8px;
        height: 8px;
        font-size: 11px;
    }



    .dot-tooltip {
        display: none; /* إخفاء التلميحات في الجوال لتوفير المساحة */
    }

    /* إعدادات الجوال المضافة */
    .page-title {
        text-align: right;
        gap: 10px;
    }

    .page-title-text h1 {
        font-size: 15px;
    }

    .profile-mini-card {

        text-align: right;
        gap: 15px;
    }

    .settings-item {
        padding: 15px 20px;
    }
    .form-input {
    padding: 11px 15px;
    font-size: 13px;
}

    .settings-item-info {
        gap: 12px;
    }

    .settings-item-text h4 {
        font-size: 14px;
    }
    .settings-item-action span {
          font-size: 13px;
    }

    .modal-content {
        max-height: 80vh;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }

    .verification-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .input-container {
        max-width: 900px;
    }
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  transition: all 0.3s ease;
}



::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* تأثيرات النسخ */
.copied-notification {
    position: fixed;
    bottom: 120px;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    animation: fadeInOut 2s ease-in-out;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateX(50%) translateY(10px); }
    10%, 90% { opacity: 1; transform: translateX(50%) translateY(0); }
}

/* تحسين التجاوب للشاشات الكبيرة */
@media (min-width: 1400px) {
    .messages-wrapper {
        max-width: 1000px;
    }

    .input-area, .footer {
        max-width: 1000px;
    }
}

/* تحسينات للأيقونات العائمة */
.floating-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.action-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
}

/* تلميحات لعناصر أخرى */
.floating-delete-tooltip {
    position: absolute;
    top: -40px;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.floating-delete-btn:hover .floating-delete-tooltip {
    opacity: 1;
    visibility: visible;
}

/* تنبيه عند الانتقال بين الرسائل */
.message-highlight {
    animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.4); }
}

.message.user.highlighted .message-content {
    animation: highlightUserMessage 2s ease;
}

@keyframes highlightUserMessage {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.5);
        transform: scale(1.02);
    }
}


/* إحصائيات الأرشيف */
.archive-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: var(--secondary-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 13px;
    color: #aaa;
}

/* أدوات الأرشيف */
.archive-tools {
    background-color: var(--secondary-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.05);
}

.archive-filters {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* قائمة الأرشيف */
.archive-list-container {
    background-color: var(--secondary-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
}

.archive-list-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.archive-list-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.archive-actions {
    display: flex;
    gap: 10px;
}

/* جدول الأرشيف للكمبيوتر */
.archive-table {
    overflow-x: auto;
}

.archive-table table {
    width: 100%;
    border-collapse: collapse;
}

.archive-table thead {
    background-color: rgba(0, 0, 0, 0.1);
}

.archive-table th {
    padding: 15px 20px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    border-bottom: 1px solid var(--border-color);
}

.archive-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.archive-table tbody tr:last-child {
    border-bottom: none;
}

.archive-table tbody tr:hover {
    background-color: var(--hover-color);
}

.archive-table tbody tr.selected {
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.1);
}

.archive-table td {
    padding: 15px 20px;
    text-align: right;
    font-size: 14px;
}

.archive-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.archive-code {
    font-family: monospace;
    font-size: 13px;
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.archive-name-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archive-name {
    font-weight: 600;
}

.archive-description {
    font-size: 12px;
    color: #aaa;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* بطاقات الأرشيف */
.archive-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.archive-badge.chat {
    background-color: rgba(66, 133, 244, 0.2);
    color: #4285f4;
}

.archive-badge.file {
    background-color: rgba(52, 168, 83, 0.2);
    color: #34a853;
}

.archive-badge.image {
    background-color: rgba(251, 188, 5, 0.2);
    color: #fbbc05;
}

.archive-badge.document {
    background-color: rgba(234, 67, 53, 0.2);
    color: #ea4335;
}

.archive-badge.mixed {
    background-color: rgba(155, 81, 224, 0.2);
    color: #9b51e0;
}

.archive-badge.protected {
    background-color: rgba(0, 150, 136, 0.2);
    color: #009688;
}

.archive-date {
    font-size: 13px;
    color: #aaa;
}

.archive-size {
    font-weight: 600;
}

.archive-actions-cell {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #a2a2a2;

}

.action-btn:hover {
    background-color: var(--hover-color);
}

.view-btn:hover {
    color: var(--primary-color);
}

.download-btn:hover {
    color: #34a853;
}

.delete-btn:hover {
    color: var(--error-color);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.no-results i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.no-results span {
    display: block;
    font-size: 14px;
}

/* قائمة الأرشيف للجوال */
.archive-mobile-list {
    display: none;
    padding: 15px;
}

.archive-mobile-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.archive-mobile-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.1);
}

.mobile-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.mobile-checkbox {
    flex-shrink: 0;
}

.mobile-archive-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mobile-item-info {
    flex: 1;
}

.mobile-archive-name {
    margin-bottom: 8px;
}

.archive-code-mobile {
    font-family: monospace;
    font-size: 11px;
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb, 26, 115, 232), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
}

.mobile-archive-name h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.mobile-archive-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-date {
    font-size: 12px;
    color: #aaa;
}

.mobile-item-details {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
}

.mobile-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mobile-detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 12px;
    color: #aaa;
}

.detail-value {
    font-size: 12px;
    font-weight: 500;
}

.mobile-item-actions {
    display: flex;
    gap: 8px;
}

.mobile-action-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

.mobile-action-btn i {
    margin-left: 5px;
}

.no-results-mobile {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

.no-results-mobile i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.no-results-mobile span {
    display: block;
    font-size: 14px;
}

/* حالة الفراغ */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    display: none;
}

.empty-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* الترحيم */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--hover-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    font-size: 14px;
    color: #aaa;
}

/* تفاصيل الأرشيف في المودال */
.archive-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-item.full-width {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.detail-label {
    font-weight: 600;
    color: #aaa;
    min-width: 120px;
    font-size: 14px;
}

.detail-value {
    flex: 1;
    font-size: 14px;
    word-break: break-word;
}

.detail-description {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
    margin: 0;
}

/* صندوق التحذير */
.warning-box {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--error-color);
}

.warning-box i {
    font-size: 18px;
}

/* زر التبديل */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch-label {
    font-size: 14px;
}

/* نصوص التلميح */
.hint-text {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}

/* نص خطأ */
.error-text {
    font-size: 12px;
    color: var(--error-color);
    margin-top: 5px;
    display: none;
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .archive-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .archive-filters {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
        min-width: auto;
    }

    .archive-actions {
        width: 100%;
        justify-content: space-between;
    }

    .archive-actions .btn {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 13px;
    }

    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }

    .archive-list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .archive-list-header h2 {
        text-align: center;
    }

    .archive-stats-container {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px;
    }
}

@media (min-width: 769px) {
    .desktop-view {
        display: block;
    }

    .mobile-view {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-item-actions {
        flex-direction: column;
    }

    .mobile-action-btn {
        width: 100%;
    }

    .archive-filters {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }
}

/* إضافة إلى نهاية style.css */

/* الأنماط الجديدة للأرشيف */

/* تفاصيل الأرشيف في المودال */
.archive-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.full-width {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.detail-label {
    font-weight: 600;
    color: #aaa;
    min-width: 120px;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    font-size: 14px;
    word-break: break-word;
}

.detail-description {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #aaa;
    margin: 0;
    width: 100%;
}

/* صندوق التحذير */
.warning-box {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 10px;
    padding: 12px 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--error-color);
    font-size: 14px;
}

.warning-box i {
    font-size: 16px;
    flex-shrink: 0;
}

/* زر التبديل */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch-label {
    font-size: 14px;
    color: var(--text-color);
}
.login-input {
width: 100%;
    padding: 11px 45px 11px 15px;
    background-color: var(--input-bg);
    border: 1px solid #474747;
    border-radius: 30px;
    font-size: 15px;
    color: var(--text-color);
    font-family: 'Rubik', sans-serif;
    transition: border-color 0.2s;
        }

        .login-input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .login-input.error {
            border-color: var(--error-color);
        }

        .input-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: gray;
            font-size: 16px;
        }

        .password-toggle {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 16px;
            transition: color 0.2s;
        }

        .password-toggle:hover {
            color: var(--primary-color);
        }

        /* زر الانتقال إلى كلمة المرور */
        .next-btn {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 6px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.2s;
        }

        .next-btn:hover {
            background-color: var(--primary-hover);
        }

        .next-btn.hidden {
            display: none;
        }

        /* خيارات إضافية */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            font-size: 13px;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .custom-checkbox {
          cursor: pointer;
          transition: all 0.2s
      ease;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 20px;
          height: 20px;
          border: 2px solid var(--text-secondary);
          border-radius: 4px;
          margin-left: 8px;
          background-color: transparent;
          border: 1px solid #555555;
          width: 40px;
        }
        .custom-checkbox i {
          display: none;
        }

        .custom-checkbox.checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .custom-checkbox.checked i {
            font-size: 16px;
            color: #d9d9d9;
            display: block;
        }

        .forgot-password {
            color: var(--primary-color);
            text-decoration: none;
            transition: opacity 0.2s;
                font-size: 13px;
        }

        .forgot-password:hover {
            opacity: 0.8;
        }

        /* أزرار التنقل بين الخطوات */
        .form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 20px;
    flex-direction: row-reverse;
        }

/* نصوص التلميح */
.hint-text {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    line-height: 1.4;
}

/* إخفاء العناوين في المودالات الصغيرة */
.modal-content small {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-top: 3px;
}

/* تحسين محاذاة الحقول في المودالات */
.form-group .form-input {
    margin-top: 5px;
}

/* تحسين ظهور زر الإرسال في المودال */
.modal-footer {
    padding-top: 23px;
    padding-bottom: 23px;
}

/* تحسين المظهر العام للمودالات */
.modal-content {
    max-height: 85vh;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header {
        padding: 6px 13px 6px 5px;
    }
        .modal-header h3 {
          font-size: 14px;
    }

    .modal-footer {
        padding: 20px;
    }
}


/* أنماط جديدة للصندوق المركزي */
.chat-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    z-index: 10;
    display: none;
}

.chat-empty-state.active {
    display: block;
}

.central-chat-box {
border-radius: 30px;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
}



.welcome-header {
    text-align: center;
    margin-bottom: 35px;
}

.welcome-header .logo-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.welcome-header h1 {
    font-size: 27px;
    font-weight: 500;
    margin-bottom: 10px;
}

.welcome-header p {
    font-size: 16px;
    color: #aaa;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.central-input-container {
border-radius: 19px;
    padding: 10px;
    transition: all 0.3s 
ease;
    background: #272727;

}

.central-input-container:focus-within {
    border-color: #3f3f3f ;
}

.central-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.central-message-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 15px;
    font-family: 'Rubik', 'Google Sans Flex', sans-serif;
    padding: 7px;
    resize: none;
    max-height: 220px;
    min-height: 60px;
    line-height: 1.6;
    direction: rtl;
    width: 100%;
}

.central-message-input:focus {
    outline: none;
}

.central-message-input::placeholder {
    color: #888;
    opacity: 0.8;
}

.central-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px;
}

.action-buttons-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.central-file-btn {
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    color: #bdbdbd;
    background: none;
}

.central-file-btn:hover {
    background: var(--hover-color);
    transform: scale(1.05);
}

.central-file-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.central-file-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: #282828;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(63, 63, 63);
    border: 1px solid rgba(255, 255, 255, 0);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.action-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #aaa;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 9px 7px;
    color: #bdbdbd;
    border-radius: 41px;

}

.version-info i {

}

.action-buttons-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.central-send-btn {
    border: none;
    color: #bdbdbd;
    background: #3f3f3f8c;
    border-radius: 25px;
    width: 33px;
    height: 33px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s  ease;
    justify-content: center;
    border: none;

}

.central-send-btn:hover:not(:disabled) {
    transform: translateY(-3px);

}

.central-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.central-send-btn i {
    font-size: 14px;
}

.quick-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.quick-feature {
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 12px;
    color: #bdbdbd;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-feature:hover {

    transform: translateY(-2px);
}

.quick-feature i {
    color: #bdbdbd;
}

/* تنسيق للجوال */
@media (max-width: 768px) {
    .chat-empty-state {
        padding: 15px;
    }

    .central-chat-box {
        padding: 10px 0px;
        border-radius: 20px;
    }

    .welcome-header h1 {
        font-size: 24px;
    }

    .welcome-header p {
        font-size: 14px;
    }

    .central-input-row {
        flex-direction: column;
    }

    .central-message-input {
        min-height: 50px;
        font-size: 14px;
        padding: 5px;
    }

    .central-actions-row {
        gap: 8px;
        align-items: stretch;
    }

    .action-info {
        justify-content: space-between;
    }

    .quick-features {
        gap: 10px;
    }

    .quick-feature {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* عندما يكون هناك رسائل، نخفي الصندوق المركزي */
.messages-area.has-messages .chat-empty-state {
    display: none;
}

/* تحديث منطقة الرسائل */
.messages-area.no-messages .messages-wrapper {
    display: none;
}

.messages-area.no-messages {
    overflow: hidden;
}

        .auth-container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
                .auth-header {
            text-align: center;
            margin-bottom: 30px;
        }



        .auth-logo h1 {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-color);
        }

        .auth-header p {
            color: var(--text-secondary);
            font-size: 15px;
            max-width: 500px;
            margin: 0 auto;
            line-height: 1.5;
        }


        .auth-card {
border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 445px;

        }




        /* علامات التبويب */
        .auth-tabs {
    display: flex;
    border-radius: 0;
    padding: 0px;
    margin-bottom: 25px;

        }

        .auth-tab {
flex: 1;
    padding: 10px 12px;
    padding-bottom: 14px ;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0px;
    transition: background-color 0.2s;
    color: #ffffff;
        }

        .auth-tab.active {
color: white;
    background: #ffffff0f;
    border-radius: 20px;


        }

        .auth-tab:hover:not(.active) {
color: white;

        }

        /* نماذج الإدخال */
        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .step-form {
            display: none;
        }

        .step-form.active {
            display: block;
        }

   .nav-btn {
padding: 10px 24px;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
        }

        .nav-btn:hover {
            background-color: #222222;
        }

        .nav-btn.primary {
          color: rgb(255, 255, 255);
          background: #2b2b2b;
          border: 1px solid rgba(255, 255, 255, 0);

        }



        .nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }


        .submit-btn {
          width: 100%;
          padding: 10px 15px;
          border: none;
          border-radius: 16px;
          font-size: 15px;
          font-weight: 600;
          cursor: pointer;
          transition: background-color 0.2s;
          margin-top: 20px;
          color: rgb(255, 255, 255);
          background: #2b2b2b;
          border: 1px solid rgba(255, 255, 255, 0);
        }

        .submit-btn:hover {
            background-color: var(--primary-hover);
        }
        .submit-btn i {
          margin-right: 5px ;
          margin-left: 5px ;
        }
        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .hide {
            display: none;
        }
        .social-divider {
            display: flex;
            align-items: center;
            margin: 25px 0;
            color: #c8c8c8;
            font-size: 13px;
        }

        .social-divider::before,
        .social-divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background-color: var(--border-color);
        }

        .social-divider span {
            padding: 0 12px;
        }

        /* أزرار التسجيل الاجتماعي */
        .social-buttons {
          gap: 10px;
          margin-bottom: 25px;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .social-btn {
padding: 14px;
    background-color: #252525;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #47474700;
    color: #bbb;
    width: 42px;
    height: 42px;
        }

        .social-btn:hover {
            background-color: #222222;
        }

        .social-btn i {
            font-size: 18px;
        }

        .social-btn.google i {
                color: #ffffff;
        }
        .auth-switch span {
            color: gray ;
        }
        .social-btn.apple i {
                color: #ffffff;
        }

        .auth-switch {
            text-align: center;
            margin-top: 20px;
            padding-top: 20px;

            color: var(--text-secondary);
            font-size: 14px;
        }
        .auth-link {
            color: var(--primary-color);
            text-decoration: none;

            margin-right: 5px;
            transition: opacity 0.2s;
        }

        .auth-link:hover {
            opacity: 0.8;
        }



        .alert-error {
    background-color: rgb(57 39 40);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

        .alert-success {
            background-color: #233123 ;
            border: 1px solid var(--success-color);
            color: var(--success-color);
        }

        /* فوتر المصادقة */
        .auth-footer {
            margin-top: 30px;
            text-align: center;
            font-size: 13px;
            color: var(--text-secondary);
        }

                .terms-agreement {
            font-size: 13px;
            color: var(--text-secondary);

            line-height: 1.6;
        }

        .terms-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 20px;
        }

        .terms-link {
            color: var(--primary-color);
            text-decoration: none;
        }

        .terms-link:hover {
            text-decoration: underline;
        }
        .form-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-color);
        }

        .form-subtitle {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 25px;
            line-height: 1.4;
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-color);
        }
           .ac-ind span {
            display: block;
            margin-bottom: 8px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-color);
        }
        .ac-inui {
    padding: 20px 0px;
    border-bottom: 1px solid #474747;
    margin-bottom: 21px;

        }
        .ac-ind span:first-child {
    min-width: 110px;
    color: gray;
        }
        .ac-ind span:first-child i {
    margin-left: 4px;
    font-size: 15px;
    width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

        }
        .ac-ind {
            display: flex;
        }

        .input-with-icon {
            position: relative;
        }
                @media (max-width: 480px) {
                    .header-logo svg {
      width: 61px;
      height: 25px;
}

            .auth-container {
                padding: 15px;
            }

            .auth-card {
                padding: 20px 15px;
            }

            .form-options {
                flex-direction: column;
                gap: 12px;
                align-items: flex-start;
            }



            .footer-links {
                flex-direction: column;
                gap: 8px;
            }

            .form-navigation {

                gap: 10px;
            }

            .nav-btn {
                width: 100%;
                justify-content: center;
            }
        }

          @media (max-width: 768px) {
            .auth-card {
                padding: 25px 20px;
                max-width: 100%;
            }

            .auth-logo h1 {
                font-size: 16px;
            }
            .form-subtitle {
                font-size: 13px;
            }
            .logo-icon {
                width: 50px;
                height: 50px;
                font-size: 22px;
            }

            .form-title {
                font-size: 16px;
            }

            .auth-tabs {
                margin-bottom: 20px;
            }

            .auth-tab {
                padding: 10px;
           
               font-size: 13px;
            }

            .step-label {
                font-size: 12px;

            }
        }

.steps-container{
    display: none;
}
