/* ============================================
   UNIFIED SLIDE-OUT PANELS
   Premium Discord/Slack-inspired UI
   Supports: Chat, Live Sessions, Shared Notes
   ============================================ */

/* Panel Container - Base */
.slide-panel,
.chat-panel {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    height: 100vh;
    background: var(--color-surface);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--color-glass-border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

.chat-panel.open {
    right: 0;
}

/* Backdrop */
.chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HEADER
   ============================================ */
.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--color-glass);
}

.chat-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-panel-title i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.chat-panel-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.chat-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-panel-close:hover {
    background: var(--color-glass-hover);
    color: var(--text-primary);
}

/* ============================================
   TABS - Friends / Study Groups
   ============================================ */
.chat-tabs {
    display: flex;
    padding: 0 16px;
    gap: 4px;
    background: var(--color-glass);
    border-bottom: 1px solid var(--glass-border);
}

.chat-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

.chat-tab:hover {
    color: var(--text-secondary);
}

.chat-tab.active {
    color: var(--color-primary);
}

.chat-tab.active::after {
    width: 60%;
}

.chat-tab .badge {
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ============================================
   CONTACTS LIST
   ============================================ */
.chat-contacts {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.chat-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

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

.chat-contact.active {
    background: rgba(45, 184, 76, 0.1);
    border: 1px solid rgba(45, 184, 76, 0.2);
}

.chat-contact.unread {
    background: var(--color-glass);
}

/* Avatar with Status */
.contact-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.contact-avatar .status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.status-dot.online {
    background: #2DB84C;
}

.status-dot.away {
    background: #FFAB00;
}

.status-dot.busy {
    background: #FF5252;
}

.status-dot.offline {
    background: #666;
}

/* Contact Info */
.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-preview.unread {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Meta */
.contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.contact-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.contact-unread {
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ============================================
   STUDY GROUPS (Channel Style)
   ============================================ */
.chat-groups {
    padding: 12px;
    display: none;
}

.chat-groups.active {
    display: block;
}

.group-category {
    margin-bottom: 16px;
}

.group-category-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.group-item:hover {
    background: var(--color-glass-hover);
    color: var(--text-primary);
}

.group-item.active {
    background: rgba(45, 184, 76, 0.1);
    color: var(--color-primary);
}

.group-item i {
    font-size: 1.1rem;
    opacity: 0.7;
}

.group-item .group-name {
    flex: 1;
    font-size: 0.9rem;
}

.group-item .group-members {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   MIA AI QUICK ACCESS
   ============================================ */
.chat-mia-card {
    margin: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(45, 184, 76, 0.15), rgba(45, 184, 76, 0.05));
    border: 1px solid rgba(45, 184, 76, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-mia-card:hover {
    background: linear-gradient(135deg, rgba(45, 184, 76, 0.2), rgba(45, 184, 76, 0.1));
    transform: translateY(-2px);
}

.chat-mia-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(45, 184, 76, 0.3);
}

.chat-mia-avatar video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-mia-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-primary);
}

.chat-mia-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   CONVERSATION VIEW
   ============================================ */
.chat-conversation {
    display: none;
    flex-direction: column;
    height: 100%;
}

.chat-conversation.active {
    display: flex;
}

/* Conversation Header */
.conversation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--color-glass);
}

.conversation-back {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conversation-back:hover {
    background: var(--color-glass-hover);
}

.conversation-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.conversation-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.conversation-user-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.conversation-user-info span {
    font-size: 0.75rem;
    color: var(--color-primary);
}

/* Messages Area */
.conversation-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.message.sent .message-bubble {
    background: linear-gradient(135deg, var(--color-primary), #1a9940);
    color: white;
    border-bottom-right-radius: 6px;
}

.message.received .message-bubble {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 6px;
}

.message-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.message.sent .message-time {
    color: rgba(255, 255, 255, 0.6);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }
}

/* Message Input */
.conversation-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--glass-border);
    background: var(--color-glass);
}

.input-actions {
    display: flex;
    gap: 4px;
}

.input-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.message-input-field {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.message-input-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 184, 76, 0.1);
}

.message-input-field::placeholder {
    color: var(--text-muted);
}

.send-message-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(45, 184, 76, 0.3);
}

.send-message-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(45, 184, 76, 0.4);
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] .chat-panel {
    right: auto;
    left: -420px;
    border-left: none;
    border-right: 1px solid var(--glass-border);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .chat-panel.open {
    left: 0;
    right: auto;
}

[dir="rtl"] .message.sent {
    flex-direction: row;
}

[dir="rtl"] .message.received {
    flex-direction: row-reverse;
}

[dir="rtl"] .conversation-back i {
    transform: rotate(180deg);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {

    .chat-panel,
    .slide-panel {
        width: 100%;
        right: -100%;
    }

    [dir="rtl"] .chat-panel,
    [dir="rtl"] .slide-panel {
        left: -100%;
    }
}

/* ============================================
   INSTRUCTORS SECTION IN CHAT
   ============================================ */
.chat-section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 12px 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.chat-contact.instructor {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), transparent);
    border: 1px solid rgba(245, 166, 35, 0.15);
}

.chat-contact.instructor:hover {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
    border-color: rgba(245, 166, 35, 0.3);
}

.chat-contact.instructor .contact-avatar {
    border: 2px solid var(--color-accent-gold);
    border-radius: 50%;
}

.chat-contact.instructor .contact-name::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5A623'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ============================================
   LIVE SESSIONS PANEL
   ============================================ */
.slide-panel.live-panel.open,
.live-panel.open {
    right: 0;
}

[dir="rtl"] .slide-panel.live-panel.open,
[dir="rtl"] .live-panel.open {
    left: 0;
    right: auto;
}

.live-panel .chat-panel-title i {
    color: #ef4444;
}

.live-panel .chat-panel-header {
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

/* Live Session Cards */
.live-sessions-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.live-session-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.live-session-card:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

.live-session-card.is-live {
    border-color: rgba(239, 68, 68, 0.5);
    animation: liveBorder 2s ease-in-out infinite;
}

@keyframes liveBorder {

    0%,
    100% {
        border-color: rgba(239, 68, 68, 0.5);
    }

    50% {
        border-color: rgba(239, 68, 68, 0.8);
    }
}

.live-session-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.live-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #ef4444;
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-badge-small::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.upcoming-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.upcoming-badge i {
    font-size: 0.8rem;
}

.recent-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.live-session-subject {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 4px;
}

.live-session-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.live-session-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.live-session-instructor img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.live-session-instructor span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.live-session-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.live-session-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-session-meta i {
    font-size: 1rem;
}

.join-live-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.join-live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* Section Headers in Live Panel */
.live-section-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-section-header i {
    color: #ef4444;
}

/* ============================================
   SHARED NOTES PANEL
   ============================================ */
.notes-panel .chat-panel-title i {
    color: #3b82f6;
}

.notes-panel .chat-panel-header {
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

/* Notes List */
.notes-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.note-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.note-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.note-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.note-type-badge.pdf {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.note-type-badge.doc {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.note-type-badge.sheet {
    background: rgba(45, 184, 76, 0.15);
    color: #2DB84C;
}

.note-type-badge.summary {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.note-subject {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 4px;
}

.note-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.note-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-shared-by {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.note-shared-by img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.note-shared-by span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.note-stats {
    display: flex;
    gap: 12px;
}

.note-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.note-action-btn {
    flex: 1;
    padding: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.note-action-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.note-action-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    color: white;
}

.note-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* Notes Section Headers */
.notes-section-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-section-header i {
    color: #3b82f6;
}

/* Notes Upload Button */
.upload-note-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px dashed rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-note-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.upload-note-btn i {
    font-size: 1.2rem;
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
[data-theme="light"] .slide-panel,
[data-theme="light"] .chat-panel {
    background: rgba(255, 255, 255, 0.97);
    border-left-color: rgba(0, 0, 0, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chat-panel-header,
[data-theme="light"] .conversation-header,
[data-theme="light"] .conversation-input {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .conversation-input {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chat-tabs {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chat-backdrop {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .chat-panel-close {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chat-panel-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chat-contact:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .chat-contact.unread {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .group-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .conversation-back:hover,
[data-theme="light"] .input-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .message-input-field {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

/* RTL light theme */
[data-theme="light"][dir="rtl"] .slide-panel,
[data-theme="light"][dir="rtl"] .chat-panel,
[data-theme="light"] [dir="rtl"] .slide-panel,
[data-theme="light"] [dir="rtl"] .chat-panel {
    border-left-color: transparent;
    border-right-color: rgba(0, 0, 0, 0.1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
}