:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.4);
    --card-bg: rgba(255, 255, 255, 0.65);
    --sidebar-bg: rgba(255, 255, 255, 0.7);
    --header-bg: rgba(255, 255, 255, 0.4);
    --input-bg: rgba(255, 255, 255, 0.6);
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --sidebar-width: 280px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-glass: 0 15px 35px 0 rgba(31, 38, 135, 0.1);
}

body.dark-mode {
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(15, 23, 42, 0.55);
    --sidebar-bg: rgba(15, 23, 42, 0.65);
    --header-bg: rgba(15, 23, 42, 0.4);
    --input-bg: rgba(15, 23, 42, 0.5);
    --shadow-glass: 0 15px 35px 0 rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', 'Segoe UI', sans-serif; }

body {
    background: linear-gradient(-45deg, #e0f2fe, #dbeafe, #f3e8ff, #fae8ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    transition: color var(--transition);
    min-height: 100vh;
    overflow-x: hidden;
}

body.dark-mode { background: #000000; }

@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.orb { position: fixed; border-radius: 50%; filter: blur(100px); opacity: 0.6; animation: orbFloat 25s infinite ease-in-out alternate; z-index: -1; pointer-events: none; }
.orb-1 { width: 600px; height: 600px; background: rgba(59, 130, 246, 0.4); top: -15%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: rgba(168, 85, 247, 0.3); bottom: -15%; right: -5%; animation-delay: -7s; }
.orb-3 { width: 700px; height: 700px; background: rgba(45, 212, 191, 0.25); top: 40%; left: 30%; animation-duration: 30s; }

body.dark-mode .orb-1 { background: rgba(37, 99, 235, 0.3); }
body.dark-mode .orb-2 { background: rgba(147, 51, 234, 0.2); }
body.dark-mode .orb-3 { background: rgba(20, 184, 166, 0.15); }

@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(0.9); } 100% { transform: translate(0, 0) scale(1); } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.app-container { display: flex; height: 100vh; overflow: hidden; background: transparent; }

.sidebar {
    width: var(--sidebar-width); background: var(--sidebar-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    display: flex; flex-direction: column; border-right: 1px solid var(--border-color); transition: margin-left var(--transition), transform var(--transition); z-index: 100; box-shadow: 5px 0 25px rgba(0,0,0,0.05);
}
.sidebar.collapsed { margin-left: calc(-1 * var(--sidebar-width)); }

.logo-container { padding: 35px 20px; text-align: center; border-bottom: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; }
.logo-container img { max-width: 65%; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); }
.logo-container img:hover { transform: scale(1.08) rotate(-2deg); }
.logo-light { display: block; } .logo-dark { display: none; }
body.dark-mode .logo-light { display: none; } body.dark-mode .logo-dark { display: block; }

.nav-links { list-style: none; overflow-y: auto; padding: 20px 15px; flex: 1; }
.section-title { padding: 20px 15px 10px; font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 800; letter-spacing: 2px; }
.nav-links li { animation: slideRight 0.5s ease backwards; }
.nav-links li:nth-child(1) { animation-delay: 0.1s; } .nav-links li:nth-child(2) { animation-delay: 0.2s; } .nav-links li:nth-child(3) { animation-delay: 0.3s; }

.nav-links li a {
    display: flex; align-items: center; padding: 15px 20px; color: var(--text-color);
    text-decoration: none; font-weight: 600; font-size: 14.5px; border-radius: 14px;
    transition: var(--transition); margin-bottom: 6px; border: 1px solid transparent;
}
.nav-links li a i { margin-right: 15px; font-size: 20px; color: var(--text-muted); transition: var(--transition); }
.nav-links li a:hover, .nav-links li a.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9)); color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4); border-color: rgba(255,255,255,0.2); transform: translateX(5px);
}
.nav-links li a:hover i, .nav-links li a.active i { color: #ffffff; transform: scale(1.2); }

.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: transparent; position: relative; z-index: 1; }

.top-header {
    height: 85px; background: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; justify-content: space-between; align-items: center; padding: 0 40px; z-index: 10;
    border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.user-info { display: flex; align-items: center; gap: 15px; animation: fadeDown 0.6s ease; }
.user-info span { font-weight: 800; font-size: 14px; letter-spacing: 0.5px; }

.action-btn {
    background: var(--input-bg); border: 1px solid var(--border-color); color: var(--text-color);
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 18px;
    transition: var(--transition); display: flex; justify-content: center; align-items: center;
    text-decoration: none; box-shadow: inset 0 2px 5px rgba(255,255,255,0.4), 0 4px 6px rgba(0,0,0,0.05); backdrop-filter: blur(10px);
}
body.dark-mode .action-btn { box-shadow: inset 0 2px 5px rgba(255,255,255,0.05), 0 4px 6px rgba(0,0,0,0.3); }
.action-btn:hover { 
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)); color: white; border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}
.action-btn:active { transform: translateY(1px); }

.page-wrapper { padding: 40px; overflow-y: auto; height: 100%; animation: fadeScaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.page-title { color: var(--text-color); margin-bottom: 35px; font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }

.global-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }

@keyframes fadeScaleIn { 0% { opacity: 0; transform: scale(0.92) translateY(30px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

.link-card {
    background: var(--card-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-radius: var(--radius-lg); padding: 40px 25px; text-align: center; text-decoration: none;
    color: var(--text-color); box-shadow: var(--shadow-glass); transition: var(--transition);
    border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; gap: 20px;
    animation: fadeScaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; position: relative; overflow: hidden;
}
.link-card:nth-child(1) { animation-delay: 0.1s; } .link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; } .link-card:nth-child(4) { animation-delay: 0.4s; }

.link-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
    transform: skewX(-25deg); transition: 0.6s;
}
body.dark-mode .link-card::before { background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.1), rgba(255,255,255,0)); }

.link-card i, .link-card .custom-svg-icon { font-size: 50px; color: var(--primary-color); transition: var(--transition); filter: drop-shadow(0 10px 15px rgba(59, 130, 246, 0.3)); }
.link-card h3 { font-size: 18px; margin: 0; font-weight: 800; z-index: 1; }
.link-card:hover { transform: translateY(-10px) scale(1.02); border-color: var(--primary-light); box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3); background: rgba(255, 255, 255, 0.85); }
body.dark-mode .link-card:hover { background: rgba(30, 41, 59, 0.85); }
.link-card:hover::before { left: 125%; }
.link-card:hover i, .link-card:hover .custom-svg-icon { transform: scale(1.2) translateY(-5px); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-bottom: 40px; }
.admin-card { background: var(--card-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); padding: 35px; border-radius: var(--radius-lg); box-shadow: var(--shadow-glass); border: 1px solid var(--border-color); animation: fadeScaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.admin-card:nth-child(1) { animation-delay: 0.1s; } .admin-card:nth-child(2) { animation-delay: 0.2s; } .admin-card:nth-child(3) { animation-delay: 0.3s; }
.admin-card h3 { font-size: 20px; margin-bottom: 25px; font-weight: 800; display: flex; align-items: center; gap: 12px; color: var(--primary-color); }

.admin-form input, .admin-form select {
    width: 100%; padding: 18px; margin-bottom: 20px; border-radius: 14px; border: 2px solid transparent; background: var(--input-bg); color: var(--text-color); outline: none; transition: var(--transition); font-size: 15px; font-weight: 600; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); backdrop-filter: blur(10px);
}
.admin-form input:focus, .admin-form select:focus { border-color: var(--primary-color); background: #ffffff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15); }
body.dark-mode .admin-form input:focus, body.dark-mode .admin-form select:focus { background: rgba(15, 23, 42, 0.9); }

.btn-submit {
    width: 100%; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; border: none; padding: 18px; border-radius: 14px; font-weight: 800; cursor: pointer; font-size: 16px; transition: var(--transition); text-transform: uppercase; letter-spacing: 1.5px; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4); position: relative; overflow: hidden;
}
.btn-submit::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0)); transform: skewX(-25deg); transition: 0.6s; }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.6); }
.btn-submit:hover::after { left: 125%; }
.btn-submit:active { transform: translateY(1px); }

table { width: 100%; border-collapse: collapse; background: var(--card-bg); backdrop-filter: blur(25px); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-glass); margin-bottom: 40px; border: 1px solid var(--border-color); }
th, td { padding: 20px; text-align: left; border-bottom: 1px solid var(--border-color); transition: var(--transition); }
th { background: rgba(0,0,0,0.03); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 1.5px; color: var(--primary-color); }
body.dark-mode th { background: rgba(255,255,255,0.03); }
tr:hover td { background: rgba(59, 130, 246, 0.05); transform: scale(1.01); }

.badge { padding: 8px 16px; border-radius: 20px; font-size: 11px; font-weight: 800; color: white; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.badge-admin { background: linear-gradient(135deg, #ef4444, #dc2626); }
.badge-emp { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.badge-personal { background: linear-gradient(135deg, #10b981, #059669); }

.custom-svg-icon { display: inline-block; background: var(--primary-color); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; mask-size: contain; mask-repeat: no-repeat; mask-position: center; vertical-align: middle; width: 50px; height: 50px; }
.nav-links li a .custom-svg-icon { width: 22px; height: 22px; margin-right: 15px; background: var(--text-muted); transition: var(--transition); }
.nav-links li a:hover .custom-svg-icon, .nav-links li a.active .custom-svg-icon { background: #ffffff; }

.error-msg { color: #ef4444; background: rgba(239, 68, 68, 0.1); padding: 18px; border-radius: 14px; margin-bottom: 30px; font-weight: 700; font-size: 15px; border: 1px solid rgba(239, 68, 68, 0.2); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 10px; }

@media (min-width: 769px) { #desktop-toggle { display: flex !important; } #mobile-toggle { display: none !important; } }
@media (max-width: 768px) {
    #desktop-toggle { display: none !important; }
    #mobile-toggle { display: block !important; background: transparent; border: none; color: var(--text-color); font-size: 28px; cursor: pointer; }
    .sidebar { position: fixed; top: 0; left: 0; height: 100vh; margin-left: 0 !important; transform: translateX(-100%); z-index: 1000; box-shadow: 15px 0 40px rgba(0,0,0,0.3); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.active { display: block; opacity: 1; }
    .top-header { padding: 0 25px; height: 75px; }
    .page-wrapper { padding: 20px; }

    .chat-popup { 
        position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        width: 100% !important; height: 100dvh !important; flex-direction: column !important; border-radius: 0 !important; z-index: 10000 !important; box-sizing: border-box !important;
    }
    .chat-sidebar { width: 100% !important; height: 35% !important; flex: 0 0 35% !important; border-right: none !important; border-bottom: 1px solid var(--border-color); }
    .chat-area { width: 100% !important; height: 65% !important; flex: 0 0 65% !important; display: flex !important; flex-direction: column !important; }
    .chat-messages { flex: 1 1 auto !important; overflow-y: auto !important; }
    .chat-input-area { flex: 0 0 auto !important; padding-bottom: max(15px, env(safe-area-inset-bottom)) !important; }
}

.mobile-chat-close { float: right; cursor: pointer; font-size: 26px; color: var(--text-color); transition: var(--transition); display: block; }
.mobile-chat-close:hover { color: #ef4444; transform: scale(1.2) rotate(90deg); }

.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); z-index: 990; opacity: 0; transition: opacity 0.4s ease; }
.table-responsive { width: 100%; overflow-x: auto; border-radius: var(--radius-md); animation: fadeScaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; animation-delay: 0.2s;}

@keyframes slideRight { 0% { opacity: 0; transform: translateX(-20px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes fadeDown { 0% { opacity: 0; transform: translateY(-15px); } 100% { opacity: 1; transform: translateY(0); } }

/* ==============================================
   SYSTEM WIDE CHAT & MESSAGING STYLES (NEW)
   ============================================== */

.chat-float-btn {
    position: fixed; bottom: 30px; left: 30px; width: 65px; height: 65px; border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669); color: white; border: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5); display: flex; justify-content: center; align-items: center;
    font-size: 30px; cursor: pointer; z-index: 9999; transition: var(--transition);
}
.chat-float-btn:hover { transform: scale(1.1) rotate(-10deg); box-shadow: 0 15px 35px rgba(16, 185, 129, 0.6); }
.chat-float-btn:active { transform: scale(0.95); }

.chat-badge {
    position: absolute; top: -5px; right: -5px; background: #ef4444; color: white;
    font-size: 12px; font-weight: 800; width: 24px; height: 24px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; border: 2px solid var(--bg-color);
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-badge-group {
    position: absolute; top: -5px; left: -5px; background: #3b82f6; color: white;
    font-size: 12px; font-weight: 800; width: 24px; height: 24px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; border: 2px solid var(--bg-color);
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-unread-badge-group { background: #3b82f6; color: white; font-size: 12px; padding: 2px 10px; border-radius: 12px; font-weight: bold; }

.toast-container { position: fixed; top: 30px; right: 30px; z-index: 10000; display: flex; flex-direction: column; gap: 15px; }
.toast {
    background: var(--card-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; min-width: 300px; max-width: 350px;
    box-shadow: var(--shadow-glass); display: flex; align-items: center; gap: 15px; cursor: pointer; transition: var(--transition);
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast:hover { transform: translateX(-5px); background: var(--input-bg); border-color: var(--primary-color); }
.toast i { font-size: 28px; color: var(--primary-color); }
.toast-info h4 { margin: 0 0 5px 0; font-size: 15px; color: var(--text-color); font-weight: 800; }
.toast-info p { margin: 0; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px;}

@keyframes toastSlideIn { 0% { opacity: 0; transform: translateX(50px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes toastSlideOut { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(50px); } }
@keyframes popIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }

.chat-popup {
    position: fixed; bottom: 110px; left: 30px; width: 700px; height: 550px;
    background: var(--card-bg); backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px);
    border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    display: none; z-index: 9998; overflow: hidden; animation: fadeScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-popup.active { display: flex; }

.chat-sidebar { width: 250px; background: rgba(0,0,0,0.02); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
body.dark-mode .chat-sidebar { background: rgba(255,255,255,0.02); }

.chat-header-title { padding: 20px; font-weight: 800; font-size: 18px; border-bottom: 1px solid var(--border-color); background: var(--header-bg); }
.chat-contacts { list-style: none; overflow-y: auto; flex: 1; padding: 10px; }
.chat-contact-item { padding: 15px; border-radius: 12px; cursor: pointer; transition: 0.3s; display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.chat-contact-item:hover, .chat-contact-item.active { background: var(--primary-color); color: white; }
.chat-contact-item.active .chat-contact-name, .chat-contact-item:hover .chat-contact-name { color: white; }
.chat-contact-name { font-weight: 700; font-size: 15px; color: var(--text-color); transition: 0.3s;}
.chat-unread-badge { background: #ef4444; color: white; font-size: 12px; padding: 2px 10px; border-radius: 12px; font-weight: bold; }

.chat-area { flex: 1; display: flex; flex-direction: column; background: transparent; }
.chat-area-header { padding: 20px; font-weight: 800; font-size: 18px; border-bottom: 1px solid var(--border-color); background: var(--header-bg); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; color: var(--primary-color); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }

.typing-indicator { font-size: 12px; color: var(--primary-light); font-weight: 600; display: none; align-items: center; gap: 4px; }
.typing-indicator span { display: inline-block; width: 4px; height: 4px; background: var(--primary-light); border-radius: 50%; animation: typingBounce 1s infinite alternate; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; } .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0% { transform: translateY(0); } 100% { transform: translateY(-3px); } }

.chat-bubble { max-width: 75%; padding: 12px 18px; border-radius: 18px; font-size: 15px; font-weight: 500; line-height: 1.5; position: relative; animation: slideUpFade 0.3s ease; }
.chat-bubble.sent { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }
.chat-bubble.received { background: var(--input-bg); color: var(--text-color); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--border-color); }

.chat-delete-btn {
    position: absolute; top: 50%; transform: translateY(-50%); left: 10px;
    color: #ef4444; cursor: pointer; font-size: 16px; opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(239, 68, 68, 0.1); width: 30px; height: 30px;
    display: flex; justify-content: center; align-items: center; border-radius: 50%; z-index: -1;
}
.chat-bubble.sent:hover .chat-delete-btn, .chat-bubble.sent:active .chat-delete-btn { opacity: 1; left: -40px; z-index: 1; }
.chat-delete-btn:hover { background: #ef4444; color: white; transform: translateY(-50%) scale(1.1); }

.chat-time { display: block; font-size: 11px; margin-top: 5px; opacity: 0.7; text-align: right; }

.chat-input-area { padding: 15px; border-top: 1px solid var(--border-color); background: var(--header-bg); display: flex; gap: 10px; }
.chat-input-area input { flex: 1; padding: 18px 25px; border-radius: 30px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-color); outline: none; transition: 0.3s; font-weight: 500; font-size: 15px; }
.chat-input-area input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.chat-input-area button { width: 55px; height: 55px; border-radius: 50%; background: var(--primary-color); color: white; border: none; cursor: pointer; font-size: 22px; transition: 0.3s; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);}
.chat-input-area button:hover { transform: scale(1.1) rotate(15deg); background: var(--primary-dark); }

.seen-by-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--card-bg); backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    padding: 20px; z-index: 10005; box-shadow: var(--shadow-glass);
    display: none; flex-direction: column; gap: 10px; min-width: 250px;
    color: var(--text-color); animation: scaleIn 0.3s ease;
}
.seen-by-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(3px);
    z-index: 10004; display: none;
}
.seen-by-title { font-weight: 800; font-size: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; color: var(--primary-color); }
.seen-by-list { max-height: 200px; overflow-y: auto; font-size: 14px; display: flex; flex-direction: column; gap: 5px; }
.seen-by-list div { padding: 5px 0; font-weight: 600; display:flex; align-items:center; gap:8px;}
.close-seen-btn { background: var(--primary-color); color: white; border: none; padding: 10px; border-radius: 12px; cursor: pointer; margin-top: 10px; font-weight: bold; transition: var(--transition); }
.close-seen-btn:hover { background: var(--primary-dark); }
.bell-animate { animation: ring 2s infinite; }
@keyframes ring { 0% { transform: rotate(0); } 10% { transform: rotate(15deg); } 20% { transform: rotate(-15deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-10deg); } 50% { transform: rotate(0); } 100% { transform: rotate(0); } }