:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-bg: #1e293b;
    --text-light: rgba(255, 255, 255, 0.7);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #667eea;
    --primary-dark: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--sidebar-bg);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    transform: translateX(0);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.sidebar-header {
    padding: 25px;
    text-align: center;
    color: white;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 12px;
    opacity: 0.7;
}

.sidebar-menu {
    padding: 15px 0;
    list-style: none;
}

.menu-item {
    margin: 5px 15px;
    border-radius: 12px;
    overflow: hidden;
}

/* Dashboard Link */
.dashboard-link {
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s;
    border-radius: 12px;
    position: relative;
}

.dashboard-link:hover {
    background: var(--hover-bg);
    color: white;
}

.dashboard-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.dashboard-link i {
    width: 24px;
    margin-right: 12px;
}

/* Unread Badge */
#unreadCount {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--danger);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Accordion Styles */
.accordion-checkbox {
    display: none;
}

.accordion-label {
    padding: 12px 20px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 12px;
}

.accordion-label:hover {
    background: var(--hover-bg);
    color: white;
}

.accordion-checkbox:checked + .accordion-label {
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px 12px 0 0;
}

.accordion-label span i {
    width: 24px;
    margin-right: 12px;
}

.accordion-arrow {
    transition: transform 0.3s;
    font-size: 12px;
}

.accordion-checkbox:checked + .accordion-label .accordion-arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease-out;
    list-style: none;
    padding: 0;
}

.accordion-checkbox:checked ~ .submenu {
    max-height: 300px;
}

.submenu a {
    padding: 10px 20px 10px 55px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    color: white;
    background: var(--hover-bg);
}

.submenu a.active {
    color: #fff;
    background: rgba(102, 126, 234, 0.3);
    border-left-color: #667eea;
}

/* Menu Toggle Button for Mobile */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--primary-gradient);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.05);
}

/* ============================================
   MAIN CONTENT STYLES
   ============================================ */
.main-content {
    margin-left: 280px;
    padding: 30px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.top-navbar {
    background: white;
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.top-navbar h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Stats Cards - Responsive Grid */
.stats-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    border: none;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
    font-weight: 500;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

/* Table Container - Responsive */
.table-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #e2e8f0;
    color: var(--gray);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Badge Styles */
.badge {
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 11px;
    white-space: nowrap;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Filter Section - Responsive */
.filter-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-section .row {
    margin: 0 -10px;
}

.filter-section [class*="col-"] {
    padding: 0 10px;
}

/* Button Styles */
.btn-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 116, 139, 0.3);
    color: white;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    margin-bottom: 20px;
    border: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MESSENGER STYLES - FULLY RESPONSIVE
   ============================================ */
.messenger-container {
    display: flex;
    height: calc(100vh - 160px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex-direction: row;
}

.messenger-sidebar {
    width: 320px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.messenger-sidebar .sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.messenger-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: #6c757d;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
}

.search-box {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.users-list,
.groups-list {
    flex: 1;
    overflow-y: auto;
}

.user-item,
.group-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.user-item:hover,
.group-item:hover {
    background: #f8f9fa;
}

.user-item.active,
.group-item.active {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 3px solid #667eea;
}

.user-avatar,
.group-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid white;
}

.user-info,
.group-info {
    flex: 1;
    min-width: 0;
}

.user-name,
.group-name {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.user-last-message,
.group-last-message {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    min-width: 0;
}

.chat-header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-sent {
    justify-content: flex-end;
}

.message-received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 20px;
    word-wrap: break-word;
}

.message-sent .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-received .message-bubble {
    background: white;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-text {
    font-size: 14px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
    margin-top: 5px;
}

.message-sender {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #667eea;
}

.file-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.input-group-custom {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.chat-input {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 20px;
    outline: none;
    resize: none;
    min-width: 150px;
}

.chat-input:focus {
    border-color: #667eea;
}

.file-label {
    background: #e9ecef;
    padding: 12px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.create-group-btn {
    width: calc(100% - 30px);
    margin: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.empty-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.close-modal {
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
}

.member-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.member-checkbox {
    margin-right: 10px;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    transition: all 0.3s;
    width: 100%;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pagination .page-link {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--dark);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet & Mobile Styles */
@media (max-width: 992px) {
    .stats-card .card-value {
        font-size: 24px;
    }
    
    .stats-card .card-title {
        font-size: 13px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    /* Sidebar Toggle */
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        width: 260px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Main Content */
    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-top: 70px;
    }
    
    .top-navbar {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .top-navbar h4 {
        font-size: 18px;
    }
    
    /* Stats Cards - 2 per row on tablet */
    .main-content .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .main-content .row .col-md-3 {
        width: 50%;
        flex: 0 0 50%;
    }
    
    /* Messenger - Tablet */
    .messenger-container {
        flex-direction: column;
        height: auto;
        min-height: 550px;
    }
    
    .messenger-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        max-height: 320px;
    }
    
    .chat-area {
        height: 480px;
    }
    
    .chat-header {
        padding: 12px 15px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .input-group-custom {
        flex-wrap: wrap;
    }
    
    .chat-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Tables */
    .table-container {
        padding: 15px;
        overflow-x: auto;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Filter Section */
    .filter-section {
        padding: 15px;
    }
    
    .filter-section .row > div {
        margin-bottom: 10px;
    }
    
    .filter-section .btn,
    .filter-section .btn-gradient {
        width: 100%;
        margin-bottom: 5px;
        justify-content: center;
    }
    
    .filter-section .row .col-md-3 {
        width: 100%;
        flex: 0 0 100%;
    }
    
    /* Buttons */
    .btn-gradient,
    .btn-primary,
    .btn-success,
    .btn-warning,
    .btn-danger,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .form-control {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .main-content {
        padding: 10px;
        padding-top: 65px;
    }
    
    .top-navbar {
        margin-bottom: 15px;
    }
    
    .top-navbar h4 {
        font-size: 16px;
    }
    
    .user-box {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats Cards - 1 per row on mobile */
    .main-content .row .col-md-3 {
        width: 100%;
        flex: 0 0 100%;
    }
    
    .stats-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .stats-card .card-value {
        font-size: 22px;
    }
    
    .stats-card .card-title {
        font-size: 12px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon i {
        font-size: 18px;
    }
    
    /* Messenger - Mobile */
    .messenger-container {
        border-radius: 10px;
    }
    
    .chat-area {
        height: 420px;
    }
    
    .messenger-sidebar {
        max-height: 280px;
    }
    
    .chat-header h6 {
        font-size: 14px;
    }
    
    .chat-header small {
        font-size: 11px;
    }
    
    .message-bubble {
        max-width: 90%;
        padding: 8px 12px;
    }
    
    .message-text {
        font-size: 13px;
    }
    
    .user-avatar,
    .group-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .user-name,
    .group-name {
        font-size: 14px;
    }
    
    .tab-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .send-btn {
        padding: 10px 18px;
    }
    
    .file-label {
        padding: 10px 12px;
    }
    
    .chat-input {
        padding: 10px 15px;
    }
    
    /* Table */
    .table-container h5 {
        font-size: 16px;
    }
    
    .table thead th {
        font-size: 11px;
        padding: 8px;
    }
    
    .table tbody td {
        padding: 8px;
        font-size: 13px;
    }
    
    /* Buttons in table */
    .table .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* Modals */
    .modal-content {
        padding: 15px;
    }
    
    .modal-header h5 {
        font-size: 16px;
    }
    
    /* Alerts */
    .alert {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    /* Create Report Button */
    .table-container .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .table-container .d-flex .btn-gradient {
        width: 100%;
        justify-content: center;
    }
    
    /* Dynamic Table Rows */
    .table-responsive table input,
    .table-responsive table .btn-sm {
        font-size: 12px;
    }
    
    .remove-row {
        padding: 4px 8px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .main-content {
        padding: 8px;
        padding-top: 60px;
    }
    
    .stats-card .card-value {
        font-size: 18px;
    }
    
    .user-name,
    .group-name {
        font-size: 13px;
    }
    
    .chat-header {
        padding: 10px 12px;
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .message-bubble {
        max-width: 95%;
    }
    
    .message-text {
        font-size: 12px;
    }
    
    .tab-btn {
        padding: 8px;
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .menu-toggle,
    .top-navbar .btn-danger,
    .filter-section,
    .btn-gradient:not(.btn-print),
    .chat-input-area {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .table-container {
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }
    
    .stats-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}