/* Custom CSS for Chat Application */

/* CSS Variables for Theme System */
:root {
    --primary-color: #1267bd;
    --primary-rgb: rgb(18, 103, 189);
    --primary-dark: #034b93;
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--bs-font-sans-serif);
    background-color: #f8fafc;
    line-height: 1.6;
}

/* Modern Design System */
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    overflow: hidden;
}

.user-avatar-sm img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

/* Navigation Enhancements */
.navbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
}

.settings-nav .nav-link {
    display: flex;
    gap: 8px;
    align-items: center;

    i {
        font-size: 18px;
    }

    h6,
    p {
        margin-bottom: 0 !important;
    }

    p {
        font-size: 12px !important;
    }
}



/* Enhanced Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.dropdown-header {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Modern Card System */
.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Enhanced Form Controls */
.form-control,
.form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Modern Button System */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3300aa 100%);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Badge System */
.badge {
    font-weight: 600;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* Progress Bars */
.progress {
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Table Enhancements */
.table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.table th {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #374151;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.02);
}

/* Alert System */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 1.5rem;
}

/* Offcanvas Enhancements */
.offcanvas {
    border: none;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
}

.offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.offcanvas-body {
    padding: 1rem;
}

.list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.list-group-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .card-header {
        padding: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Animation Utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: inherit;
    z-index: 1;
}

/* Chat Application Styles */
.main-chat-wrapper {
    height: 100vh;
    background: #fff;
}

.chat-screen {
    display: flex;
    height: 100vh;
}

.chat-sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #6600ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.back-btn:hover {
    color: #ffffff;
    background-color: #6600ff;
}

.new-message-btn {
    background: #6600ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    margin-left: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-message-btn:hover {
    background: #4400cc;
    transform: translateY(-1px);
}

.conversation-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.conversation-item:hover {
    background-color: #f8f9fa;
    color: inherit;
    text-decoration: none;
}

.conversation-item.active {
    background-color: #e3f2fd;
    border-right: 3px solid #6600ff;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6600ff 0%, #4400cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4b8bc7;
    border: 2px solid white;
    border-radius: 50%;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 15px;
}

.conversation-preview {
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-meta {
    text-align: right;
    min-width: 60px;
}

.conversation-time {
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
}

.unread-count {
    background: #6600ff;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.chat-main-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-main-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6600ff 0%, #4400cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.chat-main-info h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.chat-main-info .status {
    color: #4b8bc7;
    font-size: 12px;
    margin: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message-group {
    margin-bottom: 20px;
}

.message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 8px;
    max-width: 70%;
}

.message.sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6600ff 0%, #4400cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin: 0 8px 0 0;
    overflow: hidden;
}

.message-avatar img {
    display: flex;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.message-content {
    background: white;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}

.message.sent .message-content {
    background: #6600ff;
    color: white;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: center;
}

.chat-input-container {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
}

.chat-input-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 15px;
}

.chat-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    resize: none;
    max-height: 100px;
}

.chat-input-btn {
    background: none;
    border: none;
    color: #6600ff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.chat-input-btn:hover {
    background: #f0f0f0;
}

.send-btn {
    background: #6600ff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: #4400cc;
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.welcome-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6600ff 0%, #4400cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.welcome-content h2 {
    color: #333;
    margin-bottom: 15px;
}

.welcome-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.user-item:hover {
    background: #f8f9fa;
}

.user-item.selected {
    background: #e3f2fd;
    border: 2px solid #6600ff;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6600ff 0%, #4400cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 12px;
}

.user-info h6 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.user-info small {
    color: #666;
}

/* Custom Scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.filter-tab {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.filter-tab.active {
    background: white;
    color: #6600ff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-tab:hover:not(.active) {
    color: #333;
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 991px) {
    .chat-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        width: 360px;
        max-width: 360px;
        min-height: 100vh;
        transform: translateX(-360px);
        transition: all 0.2s ease-in-out;
        z-index: 99;
    }

    .chat-sidebar:has(.chat-header.open) {
        transform: none;
    }

    .chat-main-header {
        padding-left: 50px !important;
    }
}

@media (max-width: 768px) {
    .chat-sidebar {
        width: 100%;
    }

    .chat-sidebar.hidden {
        display: none;
    }
}

/* Button Styles - Override Bootstrap */
.btn-primary {
    background: linear-gradient(135deg, #6600ff 0%, #4400cc 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4400cc 0%, #3300aa 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(102, 0, 255, 0.3) !important;
}

.btn-outline-primary {
    border: 2px solid #6600ff !important;
    color: #6600ff !important;
    background: transparent !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-outline-primary:hover {
    background: #6600ff !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Form Styles - Override Bootstrap */
.form-control:focus {
    border-color: #6600ff !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 0, 255, 0.1) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Loading States */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced WhatsApp-like Message Styles */
.message-content {
    background: white;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    max-width: 100%;
    position: relative;
}

.message.sent .message-content {
    background: #6600ff;
    color: white;
}

.message-image-container {
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px;
}

.message-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.message-image:hover {
    transform: scale(1.02);
}

.message-video-container {
    border-radius: 12px;
    overflow: hidden;
    max-width: 360px;
}

.message-audio-container {
    min-width: 200px;
}

.message-file-container {
    max-width: 300px;
}

.message-file-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.message.sent .file-preview {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.file-preview:hover {
    background: rgba(255, 255, 255, 0.2);
}

.message.sent .file-preview:hover {
    background: rgba(255, 255, 255, 0.3);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 12px;
    opacity: 0.8;
}

.message-caption {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* Message Reactions */
.message-reactions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.message:not(.sent) .message-reactions {
    justify-content: flex-start;
}

.reaction-badge {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.reaction-badge:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.reaction-badge.user-reacted {
    background: #6600ff;
    color: white;
    border-color: #6600ff;
}

/* Enhanced Input Area */
.chat-input-container {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    position: relative;
}

.chat-input-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 15px;
    position: relative;
}

.chat-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    min-height: 20px;
    line-height: 1.4;
    font-family: inherit;
}

.chat-input::-moz-placeholder {
    color: #999;
}

.chat-input::placeholder {
    color: #999;
}

.chat-input-btn {
    background: none;
    border: none;
    color: #6600ff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.chat-input-btn:hover {
    background: rgba(102, 0, 255, 0.1);
    transform: scale(1.1);
}

.send-btn {
    background: #6600ff;
    color: white;
    border: none;
    border-radius: 50%;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.send-btn:hover {
    background: #4400cc;
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Attachment Menu */
.attachment-menu {
    position: absolute;
    bottom: 70px;
    left: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
    min-width: 140px;
    border: 1px solid #e9ecef;
}

.attachment-menu.show {
    display: flex;
    animation: slideInUp 0.2s ease-out;
}

.attachment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

.attachment-option:hover {
    background-color: #f8f9fa;
}

.attachment-option i {
    width: 20px;
    font-size: 16px;
    color: #6600ff;
}

.attachment-option span {
    color: #333;
    font-weight: 500;
}

/* Emoji Picker */
.emoji-picker-container {
    position: absolute;
    bottom: 70px;
    right: 60px;
    z-index: 1000;
    display: none;
}

.emoji-picker-container.show {
    display: block;
    animation: slideInUp 0.2s ease-out;
}

/* Attachment Preview Area */
.attachment-preview-area {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.attachment-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.attachment-preview-header h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.attachment-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.attachment-preview-item {
    position: relative;
    width: 200px;
    height: 100px;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.preview-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.preview-video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.preview-audio {
    width: 100%;
    height: 100%;
    background: #6600ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.preview-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px;
    text-align: center;
    background: #f8f9fa;
}

.preview-file .file-name {
    font-size: 10px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    color: #666;
}

.remove-attachment-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.remove-attachment-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.attachment-preview-input {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.attachment-preview-input .form-control {
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.attachment-preview-input .btn {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #e9ecef;
    color: #666;
    font-style: italic;
    font-size: 13px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.typing-indicator.d-none {
    display: none !important;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-right: 8px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #6600ff;
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingDots {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.typing-text {
    color: #6600ff;
    font-weight: 500;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Message status indicators */
.message-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.message:not(.sent) .message-status {
    color: #999;
}

.status-sent::before {
    content: "✓";
}

.status-delivered::before {
    content: "✓✓";
}

.status-read::before {
    content: "✓✓";
    color: #4fc3f7;
}

/* Improved scrollbar for messages */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.attacthment_mesg {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .attachment-menu {
        left: 10px;
        right: auto;
        min-width: 120px;
    }

    .emoji-picker-container {
        right: 10px;
        left: auto;
    }

    .attachment-preview-item {
        width: 110px;
        height: 90px;
    }

    .message {
        max-width: 85%;
    }

    .message-content {
        padding: 10px 14px;
    }

    .chat-input-form {
        padding: 6px 12px;
    }

    .chat-input-btn {
        min-width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .send-btn {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Custom Toastr Styles */
.toast-top-right {
    top: 20px;
    right: 20px;
}

#toast-container>div {
    background: white !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    color: #333 !important;
    border-left: 4px solid #6600ff !important;
    min-width: 300px !important;
    padding: 16px 20px !important;
}

#toast-container>div:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease !important;
}

.toast-title {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 15px !important;
    margin-bottom: 4px !important;
}

.toast-message {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-body {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.toast-link {
    color: #6600ff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    background: rgba(102, 0, 255, 0.1) !important;
    border-radius: 6px !important;
    display: inline-block !important;
    margin-top: 4px !important;
    transition: all 0.2s ease !important;
}

.toast-link:hover {
    background: rgba(102, 0, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.toast-close-button {
    color: #999 !important;
    opacity: 0.6 !important;
}

.toast-close-button:hover {
    color: #666 !important;
    opacity: 1 !important;
}

.toast-progress {
    background: rgba(102, 0, 255, 0.3) !important;
}

/* Success toast */
#toast-container>.toast-success {
    border-left-color: #4b8bc7 !important;
}

#toast-container>.toast-success .toast-progress {
    background: rgba(40, 167, 69, 0.3) !important;
}

/* Error toast */
#toast-container>.toast-error {
    border-left-color: #dc3545 !important;
}

#toast-container>.toast-error .toast-progress {
    background: rgba(220, 53, 69, 0.3) !important;
}

/* Warning toast */
#toast-container>.toast-warning {
    border-left-color: #ffc107 !important;
}

#toast-container>.toast-warning .toast-progress {
    background: rgba(255, 193, 7, 0.3) !important;
}

/* Info toast (default) */
#toast-container>.toast-info {
    border-left-color: #6600ff !important;
}

#toast-container>.toast-info .toast-progress {
    background: rgba(102, 0, 255, 0.3) !important;
}


.select2-container--default .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    min-height: 48px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.select2-container {
    width: 100% !important;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 600px;
    }
}

.accordion-body {
    max-height: calc(100vh - 200px);
    overflow-y: scroll;
    overflow-x: hidden;
}

/*# sourceMappingURL=app.css.map*/