/* 
   TLGeo Deep Agent - Premium CSS Styling
   Aesthetics: Sleek HSL Dark Mode, Glassmorphism, Neon/Teal Accents, Micro-animations
*/

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Color Palette */
    --bg-app: #0b0f19;
    --bg-sidebar: #111827;
    --bg-card: rgba(21, 28, 44, 0.7);
    --bg-input: #1f2937;
    
    --primary: #0ea5e9; /* Vibrant Teal/Sky */
    --primary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent: #a855f7; /* Purple Neon */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glow-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    --glass-blur: blur(12px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-app);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Main Layout Structure */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 320px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px;
}

.brand-meta h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.version {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    margin-top: 4px;
}

/* Sidebar Sections */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-section h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.indicator .dot.offline {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.indicator .dot.online {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* Layer list */
.layer-list {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.01);
}

.layer-list::-webkit-scrollbar {
    width: 6px;
}

.layer-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.layer-list li {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.layer-list li:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.layer-list li.empty-state {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 16px;
    display: block;
}

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

.layer-geom-icon {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.layer-geom-icon.Polygon { color: #f43f5e; }
.layer-geom-icon.Line { color: #3b82f6; }
.layer-geom-icon.Point { color: #10b981; }
.layer-geom-icon.Raster { color: #eab308; }

/* Suggestions */
.suggestion-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggestion-list li {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.suggestion-list li:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--text-main);
    transform: translateY(-1px);
}

/* Chat Main Area Styling */
.chat-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-app);
    position: relative;
}

.chat-header {
    height: 72px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: var(--glass-blur);
    z-index: 10;
}

.header-info h1 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.header-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Chat Window */
.chat-window {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-window::-webkit-scrollbar {
    width: 8px;
}

.chat-window::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

/* Messages Styling */
.message {
    display: flex;
    gap: 16px;
    max-width: 85%;
    min-width: 0;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.message.bot .message-avatar {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.message.user .message-avatar {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent);
    border-color: rgba(168, 85, 247, 0.3);
}

.message-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.message.bot .message-content {
    border-top-left-radius: 4px;
}

.message.user .message-content {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    border-top-right-radius: 4px;
}

/* Markdown parsing output aesthetic */
.message-content p {
    margin-bottom: 12px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul, .message-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.message-content li {
    margin-bottom: 4px;
}

/* Thinking Collapsible Styles */
.thinking-block-container {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.thinking-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.thinking-toggle-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.thinking-toggle-btn.active {
    color: var(--primary);
}

.thinking-content-area {
    margin-top: 8px;
    padding: 10px 14px;
    background-color: rgba(0, 0, 0, 0.15);
    border-left: 2px solid var(--primary);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

.thinking-content-area::-webkit-scrollbar {
    width: 4px;
}

.thinking-content-area::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.main-message-text {
    margin-top: 8px;
}

.message-content strong {
    color: #38bdf8;
}

.message-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
    max-width: 100%;
}

.message-content code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-word;
}

.message-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    white-space: pre;
    word-break: normal;
}
.table-container {
    overflow-x: auto;
    max-width: 100%;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.85rem;
    display: table;
}

.message-content th, .message-content td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.message-content th {
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.message-content tr:last-child td {
    border-bottom: none;
}

/* Activity Bar (Sleek Inline Live Logs) */
.activity-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(14, 165, 233, 0.08); /* Soft neon blue tint */
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    margin-bottom: 10px;
    animation: fadeIn 0.2s ease-out;
}

.activity-icon {
    color: var(--primary);
    font-size: 0.85rem;
}

.activity-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Input Area Styling */
.chat-input-area {
    padding: 16px 24px 24px 24px;
    background: rgba(11, 15, 25, 0.85);
    border-top: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
}

.input-wrapper {
    display: flex;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px 12px;
    align-items: center;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: var(--glow-shadow);
}

.input-wrapper textarea {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 20px;
    resize: none;
    height: 36px;
    max-height: 116px;
    padding: 8px;
    overflow-y: auto;
}

.input-wrapper textarea::-webkit-scrollbar {
    width: 6px;
}

.input-wrapper textarea::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-left: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.45);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-stop {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--text-inverse);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.btn-stop:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.45);
}

.btn-stop:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-secondary:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 6px 12px;
    border-radius: 6px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* Spinner and bounce animation */
.activity-spinner {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #38bdf8;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}

@keyframes sk-bounce {
  0%, 100% { 
    transform: scale(0.0);
  } 50% { 
    transform: scale(1.0);
  }
}

.text-primary {
    color: var(--primary);
}

/* Lock Overlay - Glassmorphism, blurred background blocking interface */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.lock-card {
    background: rgba(21, 28, 44, 0.85);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 24px;
    padding: 40px;
    width: 480px;
    max-width: 90vw;
    text-align: center;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lock-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.lock-icon {
    font-size: 2.25rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.lock-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.lock-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.lock-status-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Login Form & User Profile Styles --- */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-icon-wrapper input:focus {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: var(--glow-shadow);
}

.btn-block {
    width: 100%;
    height: 46px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 8px;
}

.login-error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* User Profile in Sidebar */
.user-profile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    font-size: 1.8rem;
    color: var(--primary);
}

.user-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.btn-logout {
    width: 100%;
    justify-content: center;
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.btn-logout:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Conversation List Styling */
.conversations-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.new-chat-btn {
    width: 100%;
    justify-content: center;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--primary);
    padding: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.new-chat-btn:hover {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.conversation-list {
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conversation-list::-webkit-scrollbar {
    width: 6px;
}

.conversation-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.conversation-item {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.conversation-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.conversation-item.active {
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary);
    border-color: rgba(14, 165, 233, 0.25);
    font-weight: 500;
}

.conversation-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.conversation-item i {
    font-size: 0.85rem;
    color: inherit;
    flex-shrink: 0;
}

/* Image attachment and preview styles */
.attach-btn {
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.attach-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    border-color: rgba(14, 165, 233, 0.4);
}

.image-preview-container {
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
}

.image-preview-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: visible;
    border: 2px solid rgba(14, 165, 233, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.btn-remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.btn-remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.message-image {
    max-width: 320px;
    max-height: 240px;
    border-radius: 8px;
    margin-top: 8px;
    display: block;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
