/* ===============================================
   BASE STYLES
   =============================================== */

:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #888888;
    --overlay-opacity: 0.75;
}

body {
    font-family: 'Courier New', monospace;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, var(--overlay-opacity, 0.75));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

body.has-wallpaper::before {
    opacity: 1;
}

* {
    box-sizing: border-box;
}

/* ===============================================
   ANIMATIONS
   =============================================== */

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

@keyframes typing-dots {
    0% { content: 'schreibt'; }
    25% { content: 'schreibt.'; }
    50% { content: 'schreibt..'; }
    75%, 100% { content: 'schreibt...'; }
}

@keyframes upload-dots {
    0% { content: 'upload'; }
    25% { content: 'upload.'; }
    50% { content: 'upload..'; }
    75%, 100% { content: 'upload...'; }
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes quickGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 200% 50%; }
}

/* ===============================================
   STREAMING CURSOR MIT ANIMIERTEM STARS.GIF
   =============================================== */

.streaming-cursor {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('stars.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-left: 4px;
}

.streaming-cursor::after {
    content: '';
    display: none;
}

/* ===============================================
   HEADER
   =============================================== */

.chat-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 16px;
}

.contact-info {
    flex: 1;
    pointer-events: none;
}

.contact-info span {
    display: block;
}

.contact-info span:first-child {
    font-size: 28px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: -6px;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.contact-info span:last-child {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    line-height: 1.2;
}

.menu-dropdown {
    position: relative;
    pointer-events: auto;
}

.fa-ellipsis-vertical {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.fa-ellipsis-vertical:hover {
    color: #ffffff;
}

/* ===============================================
   CHAT BODY
   =============================================== */

.chat-body {
    background-color: transparent;
    width: 100%;
    height: calc(100vh - 144px);
    margin-top: 72px;
    margin-bottom: 72px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    padding-bottom: 100px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    scroll-behavior: smooth;
}

/* ===============================================
   CHAT MESSAGES
   =============================================== */

.chat-message {
    align-self: flex-start;
    background-color: rgba(220, 248, 198, 0.85);
    padding: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 12px;
    margin: 8px 0;
    position: relative;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
    max-width: 100% !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.chat-message-right {
    align-self: flex-end;
    background-color: rgba(220, 248, 198, 0.85);
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 12px;
    margin: 8px 2px 8px 0;
    position: relative;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
    max-width: 80%;
    width: fit-content;
    margin-left: auto;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    color: #333;
}

.chat-message-left {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 12px;
    margin: 8px 0 8px 2px;
    position: relative;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
    max-width: 80%;
    width: fit-content;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    color: #333;
}

.chat-message-right::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid rgba(220, 248, 198, 0.85);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.chat-message-left::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 10px;
    width: 0;
    height: 0;
    border-right: 10px solid rgba(255, 255, 255, 0.85);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* ===============================================
   MESSAGE SELECTION
   =============================================== */

.chat-message-left.message-selected {
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    color: white !important;
}

.chat-message-left.message-selected strong,
.chat-message-left.message-selected b,
.chat-message-left.message-selected em,
.chat-message-left.message-selected i,
.chat-message-left.message-selected h1,
.chat-message-left.message-selected h2,
.chat-message-left.message-selected h3 {
    color: white !important;
}

.chat-message-right.message-selected {
    border: 2px solid rgba(220, 248, 198, 1) !important;
    box-shadow: 0 0 0 3px rgba(220, 248, 198, 0.2) !important;
    background: rgba(220, 248, 198, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    color: white !important;
}

.chat-message-right.message-selected strong,
.chat-message-right.message-selected b,
.chat-message-right.message-selected em,
.chat-message-right.message-selected i,
.chat-message-right.message-selected h1,
.chat-message-right.message-selected h2,
.chat-message-right.message-selected h3 {
    color: white !important;
}

/* ===============================================
   MESSAGE IMAGES
   =============================================== */

.chat-message img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInImage 0.5s ease-in-out forwards;
}

.chat-message-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.chat-message-left.message-selected img {
    outline: 1px solid #ffffff !important;
    outline-offset: 2px;
}

.chat-message-right.message-selected img {
    outline: 1px solid rgba(220, 248, 198, 1) !important;
    outline-offset: 2px;
}

/* ===============================================
   MESSAGE FORMATTING
   =============================================== */

.chat-message ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: none;
}

.chat-message li {
    margin: 4px 0;
    position: relative;
    padding-left: 15px;
}

.chat-message li::before {
    content: "•";
    color: rgba(7, 94, 84, 0.7);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.chat-message h1, .chat-message h2, .chat-message h3 {
    color: #333;
    margin: 24px 0 8px 0 !important;
    font-weight: 600;
    line-height: 1.3;
}

.chat-message h1:first-child,
.chat-message h2:first-child,
.chat-message h3:first-child {
    margin-top: 8px !important;
}

.chat-message h1 {
    font-size: 1.3em;
    border-bottom: 2px solid #555;
    padding-bottom: 4px;
}

.chat-message h2 {
    font-size: 1.2em;
    border-bottom: 1px solid #666;
    padding-bottom: 2px;
}

.chat-message h3 {
    font-size: 1.1em;
}

.chat-message hr {
    margin: 16px 0 0 0;
    border: none;
    border-top: 1px solid rgba(7, 94, 84, 0.3);
}

.chat-message strong {
    font-weight: 700;
    color: #333;
}

.chat-message em {
    font-style: italic;
    color: #555;
    font-weight: 500;
}

.chat-message blockquote {
    border-left: 4px solid rgba(7, 94, 84, 0.6);
    margin: 10px 0;
    padding: 5px 15px;
    background: rgba(7, 94, 84, 0.08);
    font-style: italic;
}

/* ===============================================
   CODE BLOCKS
   =============================================== */

.chat-message pre {
    background-color: #1e1e1e !important;
    border-radius: 8px;
    padding: 15px !important;
    margin: 2px 0 !important;
    overflow-x: auto;
    border: 1px solid #333;
    position: relative;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
    max-width: 100% !important;
}

.chat-message pre code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 0.9em !important;
    line-height: 1.4 !important;
    color: #bdd5aa !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
}

.chat-message .inline-code {
    background-color: rgba(7, 94, 84, 0.8) !important;
    color: white !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    font-family: 'Consolas', 'Monaco', monospace !important;
    white-space: nowrap;
}

.chat-message code:not(.inline-code):not(pre code) {
    background-color: rgba(7, 94, 84, 0.15) !important;
    color: rgba(7, 94, 84, 0.9) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
    font-family: 'Consolas', 'Monaco', monospace !important;
}

/* ===============================================
   DREI PUNKTE ANIMATION FÜR SENDEN BUTTON
   =============================================== */

.loading-dots {
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
}

.loading-dots::after {
    content: '.';
    animation: dots-alt 1.5s infinite steps(3, end);
}

@keyframes dots-alt {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

/* ===============================================
   CODE COPY BUTTON
   =============================================== */

.code-copy-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    background-color: transparent !important;
    color: #bbd4a9 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    height: fit-content !important;
    line-height: 1 !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.code-copy-btn:hover {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #d4e8c5 !important;
    transform: scale(1.15) !important;
}

.code-copy-btn:active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #bbd4a9 !important;
    transform: scale(1.1) !important;
}

.code-copy-btn:focus {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.code-copy-btn.copied {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #bbd4a9 !important;
}

.code-copy-btn i {
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-align: right !important;
}

/* ===============================================
   INPUT AREA
   =============================================== */

.chat-input {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
    height: auto;
    width: 100vw;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-top: none;
    z-index: 999999;
}

.input-area {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 60px;
    flex-grow: 1;
}

#user-input {
    width: 100%;
    padding: 16px 54px 16px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 1.1em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    height: 60px;
    background-color: rgba(13, 13, 13, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-align: left;
}

#user-input:focus {
    background-color: rgba(13, 13, 13, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

#user-input.error {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.3) !important;
}

#user-input::placeholder {
    color: #888888;
}

/* ===============================================
   COMMAND SUGGESTIONS
   =============================================== */

.command-suggestions {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 50px;
    background-color: rgba(42, 42, 42, 0.98);
    border: 1px solid #444;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    margin-bottom: 1px;
}

.command-suggestions.visible {
    display: block;
}

.command-suggestion {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #333;
}

.command-suggestion:hover,
.command-suggestion.selected {
    background-color: rgba(136, 136, 136, 0.3);
    border-left: 3px solid var(--accent-color);
}

.command-suggestion-title {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.command-desc {
    color: #888;
    font-size: 0.9em;
}

/* ===============================================
   UPLOAD BUTTON
   =============================================== */

.upload-btn {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: normal !important;
    box-shadow: none !important;
    outline: none !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: inline-block !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.upload-btn:hover {
    color: white !important;
    background: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.upload-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
    background: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.upload-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: translateY(-50%) !important;
    background: none !important;
}

.upload-btn .icon-attach-1,
.upload-btn i,
.upload-btn .fa-plus {
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

.upload-btn:hover .icon-attach-1 {
    transform: rotate(-10deg);
}

.upload-btn img {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: middle !important;
}

.upload-btn span[style*="⏳"] {
    animation: spin 1s linear infinite;
}

/* ===============================================
   BUTTONS
   =============================================== */

button {
    padding: 16px 24px;
    background-color: rgba(13, 13, 13, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    color: #888888;
    transition: all 0.3s ease;
    height: 60px;
    min-width: 100px;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

button:hover:not(:disabled) {
    background-color: rgba(13, 13, 13, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

button:disabled {
    background-color: rgba(13, 13, 13, 0.2);
    border-color: rgba(160, 203, 237, 0.2);
    cursor: not-allowed;
    opacity: 0.6;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

button:active {
    background: linear-gradient(135deg,
        rgba(66, 133, 244, 0.3),
        rgba(52, 168, 83, 0.3),
        rgba(251, 188, 5, 0.2),
        rgba(234, 67, 53, 0.3),
        rgba(66, 133, 244, 0.3)
    );
    background-size: 300% 300%;
    animation: quickGradient 0.6s ease;
    border-color: rgba(66, 133, 244, 0.5);
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.3);
}

/* ===============================================
   MENU DROPDOWN
   =============================================== */

.menu-dropdown {
    position: relative;
    display: inline-block;
}

.menu-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
    padding: 8px 0;
}

.menu-content.show {
    display: block;
}

.menu-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

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

.menu-item i {
    width: 16px;
    font-size: 14px;
    color: #374151;
    text-align: center;
    flex-shrink: 0;
}

/* ===============================================
   MODALS
   =============================================== */

.export-modal, .info-modal, .feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.export-modal {
    display: none;
}

.info-modal {
    display: none;
}

.feedback-modal {
    display: none;
}

.info-modal.show, .feedback-modal.show {
    display: flex;
}

.export-modal-content, .info-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.info-content {
    max-height: 80vh;
    overflow-y: auto;
    color: white;
}

.export-modal-header, .info-header {
    background: rgba(7, 94, 84, 0.8);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-header {
    border-bottom: 1px solid #444;
    border-radius: 16px 16px 0 0;
}

.export-modal-header h3, .info-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.close-export, .info-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
}

.close-export:hover, .info-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.export-modal-body, .info-body {
    padding: 25px;
    color: white;
    line-height: 1.6;
}

.info-body h4 {
    color: #87ceeb;
    margin: 20px 0 12px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.info-body h4:first-child {
    margin-top: 0;
}

.info-body ul {
    margin: 12px 0;
    padding-left: 20px;
    list-style-type: none;
}

.info-body li {
    margin: 10px 0;
    padding-left: 15px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.info-body li::before {
    content: "►";
    color: rgba(7, 94, 84, 0.8);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.info-body strong {
    color: #00ff88;
    font-weight: 600;
}

.info-body p {
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.9);
}

.export-options {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.export-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.export-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.export-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.export-text strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.export-text small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.feedback-content {
    background: none!important;
    border: none!important;
    padding: 0!important;
    width: 90%;
    max-width: 600px;
}

/* ===============================================
   STATUS ANIMATIONS
   =============================================== */

.typing-indicator {
    opacity: 0.7;
    animation: pulse 1s infinite;
}

.typing-status::after {
    content: 'schreibt';
    animation: typing-dots 1.5s infinite;
}

.upload-status {
    color: #075E54;
    font-weight: 500;
}

.upload-status::after {
    content: 'upload';
    animation: upload-dots 1.5s infinite;
}

/* ===============================================
   MOBILE RESPONSIVE
   =============================================== */

@media screen and (max-width: 768px) {
    /* Wallpaper bleibt erhalten auf kleinen Bildschirmen */
    body::before {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: -1 !important;
        pointer-events: none !important;
        min-height: 1000px !important;
        max-height: 1000px !important;
    }

    .chat-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999999 !important;
        width: 100vw !important;
        height: 80px !important;
        padding: 20px 16px 12px 16px !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    }

    .chat-input {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999999 !important;
        width: 100vw !important;
        padding: 20px !important;
        gap: 20px !important;
        height: auto !important;
    }

    .input-area {
        height: 60px !important;
    }

    #user-input {
        padding: 16px 54px 16px 16px !important;
        height: 60px !important;
        font-size: 1.1em !important;
    }

    .upload-btn {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        max-width: 18px !important;
        font-size: 18px !important;
        right: 20px !important;
        padding: 0 !important;
    }

    .upload-btn .icon-attach-1,
    .upload-btn i,
    .upload-btn .fa-plus {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .chat-body {
        position: fixed !important;
        top: 70px !important;
        bottom: 100px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: auto !important;
        margin: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .chat-message pre {
        font-size: 0.85em;
        overflow-x: scroll;
    }

    .chat-message h1 { font-size: 1.2em; }
    .chat-message h2 { font-size: 1.1em; }
    .chat-message h3 { font-size: 1.05em; }

    .info-content {
        width: 95%;
        max-height: 85vh;
    }

    .info-header {
        padding: 15px;
    }

    .info-header h3 {
        font-size: 1.1em;
    }

    .info-body {
        padding: 20px;
    }

    .info-body h4 {
        font-size: 1em;
        margin: 15px 0 8px 0;
    }

    .info-body li {
        margin: 8px 0;
        font-size: 0.95em;
    }

    .info-body p {
        font-size: 0.95em;
    }
}

@media screen and (max-width: 768px) and (max-height: 500px) {
    .chat-input {
        padding: 20px !important;
        height: auto !important;
    }

    #user-input {
        height: 60px !important;
        font-size: 1.1em !important;
        padding: 16px 54px 16px 16px !important;
    }
}

/* ===============================================
   IOS SAFARI SPECIFIC
   =============================================== */

@supports (-webkit-touch-callout: none) {
    /* iOS Safari Support */
    @media screen and (max-width: 768px) {
        .chat-input {
            bottom: env(safe-area-inset-bottom, 0) !important;
            padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0)) 20px !important;
        }

        .info-modal {
            padding: env(safe-area-inset-top, 20px) 20px env(safe-area-inset-bottom, 20px) 20px;
        }

        .info-content {
            max-height: calc(85vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        }
    }
}
