* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0e27;
    --secondary-bg: #151932;
    --accent-color: #00d4ff;
    --accent-glow: #00d4ff80;
    --secondary-accent: #ff00ff;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --sidebar-bg: #0f1629;
    --message-user-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --message-ai-bg: linear-gradient(135deg, #00d4ff 0%, #0080ff 100%);
    --input-bg: #1a1f3a;
    --border-color: #2d3748;
}

html, body {
    overflow-x: hidden;
}

.container, .sidebar {
    max-width: 100%;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Mobile Header */
.mobile-header {
    display: none;
    padding: 15px 20px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.mobile-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.menu-toggle, .new-chat-mobile {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover, .new-chat-mobile:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    background: var(--sidebar-bg);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: -5px 0 20px rgba(0, 212, 255, 0.1);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(255, 0, 0, 0.2);
}

.new-chat-btn {
    margin: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #0080ff 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    font-family: 'Rajdhani', sans-serif;
}

.new-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.new-chat-btn:active {
    transform: translateY(0);
}

.chat-history-section {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
}

.chat-history-section h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-history-item {
    padding: 12px 15px;
    background: var(--secondary-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-right: 60px;
}

.chat-history-item:hover {
    background: var(--input-bg);
    border-color: var(--accent-color);
    transform: translateX(-5px);
}

.chat-history-item i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.chat-history-item span {
    flex: 1;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat History Item Actions */
.chat-item-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-history-item:hover .chat-item-actions {
    opacity: 1;
}

.chat-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.delete-btn:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.rename-btn:hover {
    color: var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
}

/* Rename Input */
.rename-input {
    background: var(--input-bg);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    width: 100%;
    margin-top: 5px;
}

.rename-input:focus {
    outline: none;
    box-shadow: 0 0 5px var(--accent-glow);
}

/* Main Chat Area */
.main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-header {
    padding: 20px 30px;
    background: rgba(15, 22, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Profile Button and Menu */
.header-actions {
    display: flex;
    align-items: center;
}

.profile-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.1);
}

.profile-menu {
    position: fixed;
    top: 80px;
    right: 30px;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease;
}

.profile-menu.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    font-size: 1rem;
}

.profile-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.profile-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-action-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 100%;
    text-align: left;
}

.profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff4444;
}

.profile-action-btn i {
    width: 20px;
    text-align: center;
}

/* Modal Dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--sidebar-bg);
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease;
    display: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
}

.modal-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.delete-icon {
    text-align: center;
    font-size: 3rem;
    color: #ff4444;
    margin-bottom: 20px;
}

.modal-body p {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-secondary, .btn-primary, .btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.btn-secondary {
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0080ff 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.8s ease;
}

.welcome-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-message h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.message {
    display: flex;
    gap: 15px;
    animation: slideIn 0.4s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--message-user-bg);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.message.ai .message-avatar {
    background: var(--message-ai-bg);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 15px;
    position: relative;
}

.message.user .message-content {
    background: var(--message-user-bg);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.message.ai .message-content {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.message-text {
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Link styling for AI messages */
.message.ai .message-text a {
    color: var(--accent-color) !important;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.message.ai .message-text a:hover {
    color: var(--secondary-accent) !important;
    border-bottom-color: var(--secondary-accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.message.ai .message-text a:visited {
    color: #a78bfa !important;
    border-bottom-color: #a78bfa;
}

/* Link styling for user messages */
.message.user .message-text a {
    color: #e0e7ff !important;
    text-decoration: none;
    border-bottom: 1px solid #e0e7ff;
    transition: all 0.3s ease;
}

.message.user .message-text a:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.message-files {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.file-badge {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.file-badge i {
    color: var(--accent-color);
}

/* AI Analyzing Animation */
.ai-analyzing {
    display: none;
    padding: 20px 30px;
    animation: slideIn 0.4s ease;
}

.ai-analyzing.active {
    display: block;
}

.analyzing-content {
    max-width: 300px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.scanning-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.analyzing-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.analyzing-label {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.dot-pulse {
    display: flex;
    gap: 4px;
}

.dot-pulse span {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.dot-pulse span:nth-child(1) {
    animation-delay: 0s;
}

.dot-pulse span:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-pulse span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    animation: progressFill 2s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Chat Input */
.chat-input-container {
    padding: 20px 30px;
    background: rgba(15, 22, 41, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.attached-files {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.attached-file {
    padding: 8px 12px;
    background: var(--secondary-bg);
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    animation: slideIn 0.3s ease;
}

.attached-file i {
    color: var(--accent-color);
}

.attached-file .remove-file {
    margin-left: 5px;
    cursor: pointer;
    color: #ff4444;
    transition: color 0.2s;
}

.attached-file .remove-file:hover {
    color: #ff0000;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--input-bg);
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.attach-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.attach-btn:hover {
    color: var(--accent-color);
    transform: rotate(20deg);
}

.chat-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    padding: 10px;
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.send-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0080ff 100%);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.send-btn:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
    
    .message-content {
        max-width: 80%;
    }
    
    .chat-header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-message h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .container {
        padding-top: 70px;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100%;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .sidebar.active {
        right: 0;
    }
    
    .close-sidebar {
        display: flex;
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .header-info h1 {
        font-size: 1.3rem;
    }
    
    .chat-messages {
        padding: 20px 15px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .welcome-message {
        padding: 40px 15px;
    }
    
    .welcome-message h2 {
        font-size: 1.5rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .chat-input-container {
        padding: 15px 20px;
    }
    
    .input-wrapper {
        padding: 5px 12px;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .analyzing-content {
        max-width: 250px;
    }
    
    .profile-menu {
        right: 15px;
        width: 260px;
    }
    
    .modal {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 90%;
    }
    
    .chat-header {
        padding: 10px 15px;
    }
    
    .header-info h1 {
        font-size: 1.1rem;
    }
    
    .chat-messages {
        padding: 15px 10px;
        gap: 15px;
    }
    
    .message {
        gap: 10px;
    }
    
    .message-content {
        max-width: 90%;
        padding: 12px 15px;
    }
    
    .message-text {
        font-size: 0.9rem;
    }
    
    .welcome-message {
        padding: 30px 10px;
    }
    
    .welcome-message h2 {
        font-size: 1.3rem;
    }
    
    .welcome-message p {
        font-size: 1rem;
    }
    
    .welcome-icon {
        font-size: 2.5rem;
    }
    
    .chat-input-container {
        padding: 10px 15px;
    }
    
    .input-wrapper {
        padding: 5px 10px;
    }
    
    .chat-input {
        font-size: 0.9rem;
        padding: 8px;
    }
    
    .send-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .attach-btn {
        font-size: 1.1rem;
    }
    
    .message-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .analyzing-content {
        max-width: 200px;
        padding: 15px;
    }
    
    .analyzing-label {
        font-size: 0.9rem;
    }
    
    .profile-menu {
        right: 10px;
        width: 240px;
    }
    
    .modal {
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
}

/* Landscape mode for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding-top: 60px;
    }
    
    .mobile-header {
        padding: 10px 15px;
    }
    
    .chat-header {
        padding: 10px 20px;
    }
    
    .chat-messages {
        padding: 15px 20px;
    }
    
    .welcome-message {
        padding: 20px;
    }
    
    .welcome-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .welcome-message h2 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .welcome-message p {
        font-size: 0.9rem;
    }
    
    .message-content {
        padding: 10px 15px;
    }
    
    .message-text {
        font-size: 0.85rem;
    }
    
    .chat-input-container {
        padding: 10px 20px;
    }
    
    .profile-menu {
        top: 60px;
    }
}