/* الإعدادات العامة */
body {
    margin: 0;
}

.zss-dashboard {
    display: flex;
    min-height: 100vh;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

/* 🔹 الشريط الجانبي (Sidebar) */
.zss-sidebar {
    width: 260px;
    background: #0f172a;
    color: #fff;
    padding: 20px;
}

.zss-sidebar h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.zss-sidebar ul {
    list-style: none;
    padding: 0;
}

.zss-sidebar li {
    padding: 12px;
    margin-bottom: 10px;
    background: #1e293b;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.zss-sidebar li:hover,
.zss-sidebar li.active {
    background: #3b82f6;
}

/* 🔹 منطقة المحتوى (Content) */
.zss-content {
    flex: 1;
    padding: 30px;
    background: #f1f5f9;
}

.zss-tab {
    display: none !important;
}

.zss-tab.active {
    display: block !important;
}

/* 🔹 تنسيق البطاقات الموحد */
.zss-note-card, .task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.zss-note-card:hover, .task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.note-content p, .task-text {
    margin: 0;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
}

/* 🔹 تنسيق واجهة الملفات (Facebook Style) */
.zss-file-post {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-header {
    padding: 15px;
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    color: #1e293b;
    font-size: 14px;
}

.post-date {
    font-size: 12px;
    color: #64748b;
}

.post-body {
    padding: 0 15px 15px;
}

.post-text {
    margin-bottom: 12px;
    color: #334155;
    font-size: 15px;
}

.file-attachment {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.file-icon {
    font-size: 30px;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: bold;
    font-size: 14px;
    color: #1e293b;
}

.file-size {
    font-size: 12px;
    color: #64748b;
}

.download-btn {
    background: #fff;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 6px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.download-btn:hover {
    background: #3b82f6;
    color: #fff;
}

.post-footer {
    display: flex;
    border-top: 1px solid #f1f5f9;
    padding: 5px;
}

.footer-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 6px;
}

.footer-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

/* 🔹 الأزرار والنماذج */
.add-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

#note-form, #task-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

/* فقاعات المحادثة */
.message-bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.message-bubble.received { align-self: flex-start; background: #fff; }
.message-bubble.sent { align-self: flex-end; background: #dcf8c6; }



.footer-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #64748b;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.footer-btn:hover {
    background: #f8fafc;
}

.like-btn.liked {
    color: #3b82f6; /* اللون الأزرق عند الإعجاب */
}



.chat-input-area button:hover {
    transform: scale(1.1); /* تكبير بسيط عند التمرير */
    color: #2563eb;       /* درجة أزرق أغمق قليلاً */
}

.chat-input-area button:active {
    transform: scale(0.9); /* تأثير الضغط */
}