/* Chat Firebase Styles */
.chat-firebase-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    max-width: 100%;
    margin: 20px auto;
}

/* Header Styles - FACEBOOK BLUE FORCED */
.chat-header {
    background: #1877f2 !important;
    background-color: #1877f2 !important;
    color: #ffffff !important;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    border: 1px solid #1877f2 !important;
    box-shadow: 0 4px 6px -1px rgba(24, 119, 242, 0.3) !important;
}

.chat-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo .logo-circle {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    overflow: hidden;
    position: relative;
    border: 2px solid #d1d5db;
}

/* Estilos para logo personalizado */
.chat-logo .logo-image img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d1d5db;
}

/* Mostrar logo si existe */
.chat-logo.has-custom-logo #chat-logo-default {
    display: none;
}

.chat-logo.has-custom-logo #chat-logo-img {
    display: block !important;
}

.chat-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.chat-title p {
    margin: 4px 0 0 0;
    font-size: 0.875rem;
    opacity: 0.7;
    color: #6b7280;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #10b981;
}

.status-indicator.offline {
    background: #ef4444;
}

/* Force Facebook Live blue header with important declarations */
#chat-header {
    background: #1877f2 !important;
    color: #ffffff !important;
    border: 1px solid #1877f2 !important;
    box-shadow: 0 4px 6px -1px rgba(24, 119, 242, 0.3) !important;
}

/* Override any conflicting styles */
.chat-header {
    background: #1877f2 !important;
    color: #ffffff !important;
}

/* ULTIMATE FACEBOOK BLUE OVERRIDE - ALL POSSIBLE SELECTORS */
div.chat-header,
#chat-header,
div#chat-header,
.chat-firebase-wrapper .chat-header,
.chat-firebase-wrapper #chat-header,
[id="chat-header"],
[class*="chat-header"] {
    background: #1877f2 !important;
    background-color: #1877f2 !important;
    color: #ffffff !important;
}

/* WordPress theme override protection */
body .chat-header,
body div.chat-header,
body #chat-header,
.wp-block-shortcode .chat-header {
    background: #1877f2 !important;
    background-color: #1877f2 !important;
    color: #ffffff !important;
}

/* Mobile cache buster - force refresh with higher specificity */
@media (max-width: 768px) {
    body .chat-firebase-wrapper .chat-header,
    body .chat-firebase-wrapper #chat-header,
    body .chat-firebase-wrapper div.chat-header,
    .chat-firebase-wrapper .chat-header,
    .chat-firebase-wrapper #chat-header {
        background: #1877f2 !important;
        background-color: #1877f2 !important;
        color: #ffffff !important;
        border: 1px solid #1877f2 !important;
    }
    
    /* Force mobile text colors */
    .chat-header .chat-title h2,
    .chat-header .chat-title p,
    .chat-header .status-text {
        color: #ffffff !important;
    }
}

#chat-header .chat-title h2 {
    color: #ffffff !important;
    font-weight: bold !important;
}

#chat-header .chat-title p {
    color: #e0e7ff !important;
}

#chat-header .status-text {
    color: #e0e7ff !important;
}

#chat-header .admin-button,
#footer-admin-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Admin Status Bar */
.admin-status-bar {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 1rem;
    animation: slideDown 0.3s ease-out;
}

.admin-status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-status-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-info {
    display: flex;
    flex-direction: column;
}

.admin-title {
    font-weight: 700;
    font-size: 0.875rem;
}

.admin-name {
    font-size: 0.75rem;
    opacity: 0.9;
}

.admin-status-right {
    display: flex;
    gap: 8px;
}

.btn-admin {
    background: white;
    color: #dc2626;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-admin:hover {
    background: #f3f4f6;
}

.btn-admin-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-admin-outline:hover {
    background: white;
    color: #dc2626;
}

/* Messages Area */
.chat-messages {
    height: 400px;
    overflow-y: auto;
    background: #f9fafb;
    padding: 1rem;
    position: relative;
}

.messages-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    text-align: center;
}

.welcome-icon {
    margin-bottom: 12px;
    opacity: 0.5;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
}

/* Hacer emojis más grandes en los mensajes del chat */
.message .message-content {
    font-size: 1rem;
    line-height: 1.5;
}

.big-emoji {
    font-size: 1.8em;
    display: inline-block;
    margin: 0 0.1em;
}

.message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.message-user {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.message-time {
    font-size: 0.75rem;
    color: #6b7280;
}

.message-text {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
}

/* DESKTOP PRIORITY - Admin message golden background */
.admin-message,
body .chat-firebase-wrapper .admin-message,
.chat-firebase-wrapper .admin-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border: 2px solid #f59e0b !important;
}

/* DESKTOP PRIORITY - Admin avatar golden */
.admin-message .message-avatar,
body .chat-firebase-wrapper .admin-message .message-avatar,
.chat-firebase-wrapper .admin-message .message-avatar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    position: relative !important;
}

.admin-avatar .admin-crown {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    background: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* DESKTOP PRIORITY - Admin username golden */
.admin-message .message-user,
body .chat-firebase-wrapper .admin-message .message-user,
.chat-firebase-wrapper .admin-message .message-user {
    color: #92400e !important;
    font-weight: 700 !important;
}

.admin-user-name {
    color: #92400e !important;
    font-weight: 700 !important;
}

.admin-icon {
    color: #f59e0b;
    font-size: 14px;
    margin-left: 4px;
}

.btn-block-user {
    background: #dc2626;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
}

.btn-block-user:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* Privacy button styles */
.footer-privacy-btn {
    background: none;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-privacy-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
}

/* Form Styles */
.chat-form-container {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
}

.form-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.nickname-container {
    flex: 1;
}

.message-container {
    flex: 2;
    position: relative;
}

/* Emoji Buttons */
.emoji-buttons {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.emoji-btn {
    background: transparent;
    border: none;
    font-size: 1.2em;
    padding: 4px 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    line-height: 1;
}

.emoji-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.emoji-glory:hover {
    background: rgba(255, 193, 7, 0.1);
    color: #f59e0b;
}

.nickname-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.message-container input {
    width: 100%;
    padding: 12px 100px 12px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nickname-container input:focus,
.message-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.nickname-container input.admin-input {
    background: #fef2f2;
    border-color: #f87171;
    color: #dc2626;
    font-weight: 700;
}

.send-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.send-button:hover {
    background: #5a67d8;
}

.send-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.form-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #6b7280;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Footer */
.chat-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 8px 1rem;
    border-radius: 0 0 12px 12px;
}

.footer-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

.footer-stats .left {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-admin-btn {
    background: transparent;
    color: #6b7280;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-admin-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

.powered-by {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.modal-content.large {
    max-width: 900px;
    width: 95%;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal form {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background: #f3f4f6;
    color: #374151;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: #059669;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

/* Tabs */
.tabs {
    padding: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: #374151;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h4 {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
}

/* Admin Lists */
.admin-messages-list,
.blocked-users-list,
.offensive-words-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.admin-message-item {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: start;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.admin-message-item:hover {
    background: #f9fafb;
}

.admin-message-item:last-child {
    border-bottom: none;
}

.admin-message-content {
    flex: 1;
    min-width: 0;
}

.admin-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.admin-message-user {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 12px;
    color: #374151;
}

.admin-message-time {
    font-size: 0.75rem;
    color: #6b7280;
}

.admin-message-text {
    font-size: 0.875rem;
    color: #374151;
    margin-left: 0;
}

.admin-message-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #6b7280;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-icon.delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
}

/* Export Options */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.export-option {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}

.export-option h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

.export-option p {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Stats */
.chat-stats {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.chat-stats h5 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.stats-grid .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.stat-label {
    color: #6b7280;
}

.stat-value {
    font-weight: 700;
    color: #374151;
}

/* Loading */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.loading-overlay p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 16px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #667eea;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #dc2626;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast-title {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 4px;
    color: #374151;
}

.toast-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Error States */
.chat-firebase-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-firebase-wrapper {
        margin: 10px;
        border-radius: 8px;
    }
    
    .chat-header {
        padding: 12px;
    }
    
    .chat-header-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .chat-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-status-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .admin-status-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .footer-stats .left {
        flex-direction: column;
        gap: 4px;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-content.large {
        width: calc(100% - 20px);
        margin: 10px;
    }
    
    .export-options {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .chat-header {
        padding: 8px;
    }
    
    .chat-messages {
        height: 300px;
        padding: 8px;
    }
    
    .chat-form-container {
        padding: 8px;
    }
    
    .chat-footer {
        padding: 6px 8px;
    }
    
    .modal form {
        padding: 16px;
    }
    
    .tabs {
        padding: 16px;
    }
}