/* Advanced Company Chat Box Styles */
/* Version: 1.1.0 - Floating chat removed, File sharing added */

/* Reset and Base Styles */
.chat-auth-wrapper,
.advanced-chat-system {
    box-sizing: border-box;
}

.chat-auth-wrapper *,
.advanced-chat-system * {
    box-sizing: border-box;
}

/* Login Form Styles */
.chat-auth-wrapper {
    min-height: 80vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.chat-auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    padding: 40px 30px;
    display: none;
}

.auth-form.active {
    display: block;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo svg {
    width: 32px;
    height: 32px;
    color: #667eea;
}

.logo h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.form-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-error {
    background: #ffeaa7;
    color: #e74c3c;
    border: 1px solid #fdcb6e;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-form-content {
    display: flex;
    flex-direction: column;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    z-index: 2;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
}

.input-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
    z-index: 2;
    padding: 5px;
    border-radius: 3px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #667eea;
    background: #f8f9fa;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    margin-top: 10px;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.auth-footer p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
}

/* Advanced Chat Interface */
.advanced-chat-system {
    max-width: 1400px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border: 1px solid #e9ecef;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-left {
    flex: 1;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.chat-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-logo svg {
    width: 28px;
    height: 28px;
}

.chat-info h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 700;
}

.online-status {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.4;
    }
}

/* Chat Stats */
.chat-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: background 0.3s;
}

.user-menu:hover {
    background: rgba(255,255,255,0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.user-avatar svg {
    width: 20px;
    height: 20px;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border: 2px solid white;
    border-radius: 50%;
}

.status-indicator.online {
    background: #2ecc71;
}

.status-indicator.idle {
    background: #f39c12;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 180px;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: #7f8c8d;
}

/* Main Chat Area */
.chat-main-area {
    display: flex;
    height: 75vh;
    min-height: 600px;
    overflow: hidden;
}

.users-sidebar {
    width: 320px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.sidebar-header h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.online-count {
    color: #27ae60;
    font-size: 13px;
    font-weight: 600;
}

.users-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
}

.user-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-item.current-user {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.user-avatar.small {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.user-avatar.small svg {
    width: 18px;
    height: 18px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 12px;
    font-weight: 500;
}

.user-status.online {
    color: #27ae60;
}

.user-status.idle {
    color: #f39c12;
}

.you-badge {
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

/* File Sharing Info */
.file-sharing-info {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.file-sharing-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.file-sharing-info p {
    margin: 0 0 12px 0;
    color: #7f8c8d;
    font-size: 12px;
    line-height: 1.4;
}

.supported-files {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-type {
    font-size: 11px;
    color: #667eea;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Chat Content */
.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.messages-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.messages-area {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loading-messages {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.loading-messages svg {
    width: 20px;
    height: 20px;
}

.no-messages {
    text-align: center;
    color: #7f8c8d;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.no-messages svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    margin-bottom: 10px;
}

.no-messages h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 22px;
}

.no-messages p {
    margin: 0 0 25px 0;
    font-size: 15px;
    line-height: 1.4;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.feature-icon {
    font-size: 18px;
}

/* Message Items */
.message-item {
    padding: 16px 20px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f1f3f4;
    max-width: 70%;
    word-wrap: break-word;
    animation: messageSlide 0.3s ease-out;
    position: relative;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-own {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
    margin-right: 0;
}

.message-own .message-user,
.message-own .message-time {
    color: rgba(255,255,255,0.9);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-user {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.message-time {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: 500;
}

.message-content {
    line-height: 1.4;
    word-wrap: break-word;
}

.message-content a {
    color: #667eea;
    text-decoration: underline;
}

.message-own .message-content a {
    color: rgba(255,255,255,0.9);
}

/* File Messages */
.file-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.file-message.image-file {
    flex-direction: column;
}

.file-preview {
    border-radius: 8px;
    overflow: hidden;
    max-width: 300px;
}

.file-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.file-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg {
    width: 24px;
    height: 24px;
    color: #667eea;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    word-break: break-all;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.file-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* Date Separator */
.date-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.date-separator:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.date-separator span {
    background: #fafbfc;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 12px;
    color: #7f8c8d;
    position: relative;
    z-index: 2;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* File Upload Progress */
.file-upload-progress {
    padding: 15px 25px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    display: block;
}

/* Advanced Chat Input */
.advanced-chat-input {
    padding: 20px 25px;
    background: white;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.input-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tool-btn {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tool-btn:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateY(-1px);
}

.tool-btn svg {
    width: 18px;
    height: 18px;
}

.file-upload-wrapper {
    position: relative;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#messageText {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    max-height: 120px;
    outline: none;
    transition: all 0.3s;
    background: #fafbfc;
}

#messageText:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#messageText::placeholder {
    color: #9ba1a6;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 54px;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.send-btn svg {
    width: 18px;
    height: 18px;
}

/* Enhanced Emoji Picker */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0;
    z-index: 1000;
    margin-bottom: 10px;
    width: 300px;
    overflow: hidden;
}

.emoji-categories {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.emoji-category {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    color: #7f8c8d;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.emoji-category.active {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.emoji-section {
    display: none;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-section.active {
    display: block;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.emoji {
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    font-size: 18px;
    line-height: 1;
}

.emoji:hover {
    background: #f8f9fa;
    transform: scale(1.2);
}

/* Chat Messages */
.chat-error {
    background: #ffeaa7;
    color: #e74c3c;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #fdcb6e;
    font-size: 14px;
}

.chat-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.chat-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
}

.chat-success svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Scrollbar Styling */
.users-list::-webkit-scrollbar,
.messages-area::-webkit-scrollbar,
.emoji-section::-webkit-scrollbar {
    width: 6px;
}

.users-list::-webkit-scrollbar-track,
.messages-area::-webkit-scrollbar-track,
.emoji-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.users-list::-webkit-scrollbar-thumb,
.messages-area::-webkit-scrollbar-thumb,
.emoji-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.users-list::-webkit-scrollbar-thumb:hover,
.messages-area::-webkit-scrollbar-thumb:hover,
.emoji-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* SVG Animations */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .advanced-chat-system {
        margin: 15px;
    }
    
    .chat-main-area {
        height: 70vh;
    }
}

@media (max-width: 1024px) {
    .chat-main-area {
        height: 65vh;
    }
    
    .users-sidebar {
        width: 280px;
    }
    
    .message-item {
        max-width: 80%;
    }
    
    .chat-stats {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .advanced-chat-system {
        margin: 10px;
        border-radius: 16px;
    }
    
    .chat-main-area {
        flex-direction: column;
        height: 80vh;
        min-height: 700px;
    }
    
    .users-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .users-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 15px;
        gap: 12px;
    }
    
    .user-item {
        min-width: 150px;
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .user-details {
        text-align: center;
    }
    
    .message-item {
        max-width: 90%;
    }
    
    .chat-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left,
    .header-center,
    .header-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }
    
    .chat-stats {
        justify-content: center;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .send-btn {
        width: 100%;
        padding: 12px;
    }
    
    .emoji-picker {
        width: 280px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .file-sharing-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .chat-auth-container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
    
    .advanced-chat-system {
        margin: 5px;
        border-radius: 12px;
    }
    
    .messages-area {
        padding: 15px;
    }
    
    .message-item {
        padding: 12px 16px;
        max-width: 95%;
    }
    
    .advanced-chat-input {
        padding: 15px;
    }
    
    .emoji-picker {
        width: 260px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .users-sidebar {
        height: 180px;
    }
    
    .chat-main-area {
        height: 75vh;
    }
}

@media (max-width: 360px) {
    .chat-main-area {
        height: 70vh;
    }
    
    .users-sidebar {
        height: 160px;
    }
    
    .user-item {
        min-width: 130px;
        padding: 8px;
    }
    
    .message-item {
        max-width: 98%;
        padding: 10px 12px;
    }
    
    .emoji-picker {
        width: 240px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chat-auth-wrapper {
        background: #2c3e50;
    }
    
    .advanced-chat-system {
        border: 2px solid #2c3e50;
    }
    
    .message-item {
        border: 1px solid #2c3e50;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .chat-auth-container,
    .message-item,
    .send-btn,
    .user-menu,
    .tool-btn {
        animation: none;
        transition: none;
    }
    
    .online-dot {
        animation: none;
    }
}

/* Print styles */
@media print {
    .advanced-chat-input,
    .input-tools,
    .user-menu .user-dropdown {
        display: none !important;
    }
    
    .advanced-chat-system {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Ensure all SVGs are properly colored */
.chat-auth-wrapper svg,
.advanced-chat-system svg {
    fill: currentColor;
}

/* Focus styles for accessibility */
.auth-btn:focus,
.input-group input:focus,
.tool-btn:focus,
.send-btn:focus,
.emoji:focus,
.dropdown-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading state for buttons */
.auth-btn:disabled,
.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}