/* Dungeon Crawler Carl Themed Chatbot UI */
/* Inspired by the apocalyptic dungeon-crawling adventure */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto+Mono:wght@400;500;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 48, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ff7730, transparent),
        radial-gradient(2px 2px at 40px 70px, #7877c6, transparent),
        radial-gradient(1px 1px at 90px 40px, #ff7730, transparent),
        radial-gradient(1px 1px at 130px 80px, #7877c6, transparent),
        radial-gradient(2px 2px at 160px 30px, #ff7730, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Chat container */
.chat-container {
    width: 100%;
    max-width: 900px;
    height: 700px;
    background: 
        linear-gradient(145deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    border: 2px solid #ff7730;
    border-radius: 20px;
    box-shadow: 
        0 0 30px rgba(255, 119, 48, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 119, 48, 0.03) 2px,
            rgba(255, 119, 48, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* Header */
.chat-header {
    background: 
        linear-gradient(135deg, #ff7730 0%, #ff4757 50%, #ff7730 100%);
    color: #0f0f23;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 2px solid #ff4757;
    z-index: 2;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.1) 10px,
            rgba(0, 0, 0, 0.1) 20px
        );
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
    position: relative;
}

.logo svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-text h1 {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.header-text p {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

/* Header controls group (TTS toggle + status) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    position: relative;
}

/* User info bar */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
}

.user-email {
    font-size: 12px;
    font-weight: 700;
    color: #0f0f23;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-button {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    color: #0f0f23;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Roboto Mono', monospace;
}

.logout-button:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

/* TTS toggle button */
.tts-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: #0f0f23;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.tts-toggle:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: scale(1.1);
}

.tts-toggle.speaking {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    color: #0f0f23;
    animation: ttsPulse 1.4s ease-in-out infinite;
}

.tts-toggle.muted {
    opacity: 0.55;
}

@keyframes ttsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff88;
    animation: dungeonPulse 1.5s infinite;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes dungeonPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 10px #00ff88;
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.2);
        box-shadow: 0 0 20px #00ff88;
    }
}

/* Messages area */
.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: 
        radial-gradient(circle at 10% 20%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 119, 48, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, rgba(15, 15, 35, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
    position: relative;
    z-index: 2;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.5);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff7730 0%, #ff4757 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff4757 0%, #ff7730 100%);
}

/* Message styles */
.message {
    display: flex;
    gap: 16px;
    max-width: 85%;
    animation: dungeonSlideIn 0.4s ease-out;
}

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

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

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

.message-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    position: relative;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #ff7730 0%, #ff4757 100%);
    border-color: #ff4757;
    box-shadow: 
        0 0 15px rgba(255, 119, 48, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #7877c6 0%, #5a67d8 100%);
    border-color: #5a67d8;
    box-shadow: 
        0 0 15px rgba(120, 119, 198, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.message-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: avatarShine 3s linear infinite;
}

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

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

.message-text {
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    position: relative;
    border: 1px solid;
    backdrop-filter: blur(5px);
}

.user-message .message-text {
    background: 
        linear-gradient(135deg, rgba(255, 119, 48, 0.9) 0%, rgba(255, 71, 87, 0.9) 100%);
    color: #ffffff;
    border-color: #ff4757;
    box-shadow: 
        0 4px 15px rgba(255, 119, 48, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.bot-message .message-text {
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 35, 0.95) 100%);
    color: #e2e8f0;
    border-color: #7877c6;
    box-shadow: 
        0 4px 15px rgba(120, 119, 198, 0.2),
        inset 0 1px 0 rgba(120, 119, 198, 0.3);
}

.message-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.02) 20px,
            rgba(255, 255, 255, 0.02) 40px
        );
    pointer-events: none;
}

.message-time {
    font-size: 11px;
    color: #7877c6;
    margin-top: 6px;
    padding: 0 8px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.user-message .message-time {
    text-align: right;
    color: #ff7730;
}

/* Input area */
.chat-input-container {
    background: 
        linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    border-top: 2px solid #ff7730;
    padding: 24px;
    position: relative;
    z-index: 2;
}

.chat-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7730 0%, #ff4757 50%, #ff7730 100%);
    animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { box-shadow: 0 0 5px rgba(255, 119, 48, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 119, 48, 0.8); }
}

.chat-input-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

#messageInput {
    flex: 1;
    border: 2px solid #7877c6;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 15px;
    font-family: 'Roboto Mono', monospace;
    resize: none;
    outline: none;
    overflow: hidden;
    transition: all 0.3s ease;
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 35, 0.8) 100%);
    color: #e2e8f0;
    backdrop-filter: blur(5px);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 0 rgba(120, 119, 198, 0);
}

#messageInput:focus {
    border-color: #ff7730;
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 35, 0.9) 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 119, 48, 0.2),
        0 0 20px rgba(255, 119, 48, 0.3);
}

#messageInput::placeholder {
    color: #7877c6;
    font-style: italic;
}

#messageInput.invalid {
    border-color: #ff4757;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 71, 87, 0.2);
}

.send-button {
    width: 52px;
    height: 52px;
    border: 2px solid #ff7730;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff7730 0%, #ff4757 100%);
    color: #0f0f23;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(255, 119, 48, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.send-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.send-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 119, 48, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.send-button:hover:not(:disabled)::before {
    left: 100%;
}

.send-button:active {
    transform: translateY(0);
}

.send-button:disabled {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-color: #4a5568;
    cursor: not-allowed;
    box-shadow: none;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #7877c6;
    padding: 0 8px;
    font-weight: 500;
}

.character-count {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.character-count.valid {
    color: #00ff88;
}

.character-count.invalid {
    color: #ff4757;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #ff7730;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 35, 0.95) 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #ff7730;
    box-shadow: 
        0 0 30px rgba(255, 119, 48, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(120, 119, 198, 0.3);
    border-top: 4px solid #ff7730;
    border-radius: 50%;
    animation: dungeonSpin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(255, 119, 48, 0.3);
}

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

.loading-spinner p {
    color: #e2e8f0;
    font-weight: 700;
    margin: 0;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .chat-container {
        height: calc(100vh - 20px);
        border-radius: 16px;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 16px 20px;
    }
    
    .header-text h1 {
        font-size: 20px;
    }
    
    .header-text p {
        font-size: 13px;
    }
    
    .chat-messages {
        padding: 16px 20px;
        gap: 16px;
    }
    
    .message {
        max-width: 90%;
        gap: 12px;
    }
    
    .chat-input-container {
        padding: 20px;
    }
    
    .message-avatar {
        width: 40px;
        height: 40px;
    }
    
    .message-text {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .send-button {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 12px;
    }
    
    .logo svg {
        width: 28px;
        height: 28px;
    }
    
    .header-text h1 {
        font-size: 18px;
    }
    
    .header-text p {
        font-size: 12px;
    }
    
    .status-indicator {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .message-avatar {
        width: 36px;
        height: 36px;
    }
    
    .message-avatar svg {
        width: 18px;
        height: 18px;
    }
    
    .input-wrapper {
        gap: 12px;
    }
    
    .send-button {
        width: 44px;
        height: 44px;
    }
}

/* Special effects for enhanced immersion */
.message-text:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.bot-message .message-text:hover {
    box-shadow: 
        0 6px 20px rgba(120, 119, 198, 0.3),
        inset 0 1px 0 rgba(120, 119, 198, 0.4);
}

.user-message .message-text:hover {
    box-shadow: 
        0 6px 20px rgba(255, 119, 48, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Glitch effect for error states */
.error-message {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Mic button */
.mic-button {
    width: 52px;
    height: 52px;
    border: 2px solid #7877c6;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.2) 0%, rgba(90, 103, 216, 0.2) 100%);
    color: #7877c6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.mic-button:hover:not(:disabled) {
    border-color: #ff7730;
    color: #ff7730;
    background: linear-gradient(135deg, rgba(255, 119, 48, 0.15) 0%, rgba(255, 71, 87, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 119, 48, 0.3);
}

.mic-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mic-button.recording {
    border-color: #ff4757;
    color: #ff4757;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2) 0%, rgba(255, 71, 87, 0.3) 100%);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6);
    animation: micPulse 1.2s ease-out infinite;
}

@keyframes micPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Voice status bar */
.voice-status {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #ff4757;
    padding: 6px 12px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    animation: fadeIn 0.2s ease;
}

.voice-status.show {
    display: flex;
}

.voice-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.image-message .message-content {
    max-width: 400px;
}

.image-container {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 15, 35, 0.8);
    border: 2px solid #7877c6;
    position: relative;
    opacity: 1;
    transition: all 0.3s ease;
}

.image-container.loaded {
    opacity: 1;
}

.image-container:hover {
    border-color: #ff7730;
    box-shadow: 0 0 20px rgba(255, 119, 48, 0.3);
}

.generated-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.generated-image:hover {
    transform: scale(1.02);
}

.download-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 119, 48, 0.9);
    color: #0f0f23;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.image-container:hover .download-button {
    opacity: 1;
}

.download-button:hover {
    background: #ff7730;
    transform: scale(1.05);
}

.image-error {
    padding: 20px;
    text-align: center;
    color: #ff4757;
    font-weight: bold;
}

/* Image modal styles */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.image-modal {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    border: 2px solid #ff7730;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 119, 48, 0.5);
}

.modal-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-button:hover {
    background: #ff4757;
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}