/* Map Generator Styles */
.map .image-container {
    border: none;
    margin: 0;
    padding: 0;
}

/* .map-item {
    background: linear-gradient(135deg, rgba(106, 252, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 12px;
} */

.map-item .map-preview {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.map-item .map-preview img.map-image {
    width: 100%;
    height: auto;
    display: block;
}

.map-item .map-preview .processing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #88aacc;
}

.map-item .map-preview .processing-indicator .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(106, 252, 255, 0.3);
    border-top: 3px solid #6afcff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.map-item .map-preview .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-size: 3em;
    opacity: 0.5;
}

.map-item .creation-prompt {
    padding: 12px 15px;
    font-size: 0.95em;
    color: #c8d4e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-item .llm-prompt-section {
    padding: 15px;
    margin: 10px 15px;
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
    border-radius: 0 8px 8px 0;
}

.map-item .llm-prompt-section .llm-prompt-label {
    font-weight: 600;
    color: #8b5cf6;
    display: block;
    margin-bottom: 8px;
}

.map-item .llm-prompt-section .llm-prompt-text {
    color: #c8d4e0;
    line-height: 1.6;
    margin: 0;
}

/* Browse view specific */
.map-item.browse-view {
    margin-bottom: 20px;
}

.map-item.browse-view .map-preview {
    max-height: 400px;
    overflow: hidden;
}

/* Single view specific */
.map-item.single-view .map-preview {
    max-height: none;
}

.map-item.single-view .map-preview img.map-image {
    max-width: 100%;
    height: auto;
}

/* Prompt input styling */
.prompt-input-wrap .input-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85em;
    color: #88aacc;
}

.prompt-input-wrap .input-hint .tip-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Map Lore Styles */
.map-lore-container {
    float: left;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(106, 252, 255, 0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.map-lore-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    color: #6afcff;
}

.map-lore-section {
    text-align: left;
}

.map-lore-title {
    color: #6afcff;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(106, 252, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-lore-title::before {
    content: '\1F4DC';
    /* Scroll emoji */
}

.map-lore-table-wrap {
    overflow-x: auto;
    margin: 15px 0;
}

.map-lore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.map-lore-table thead {
    background: rgba(106, 252, 255, 0.15);
}

.map-lore-table th {
    color: #6afcff;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(106, 252, 255, 0.3);
    white-space: nowrap;
}

.map-lore-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    vertical-align: top;
    line-height: 1.5;
}

.map-lore-table tbody tr:hover {
    background: rgba(106, 252, 255, 0.05);
}

.map-lore-table tbody tr:last-child td {
    border-bottom: none;
}

/* Location name column - make it stand out */
.map-lore-table td:first-child {
    color: #fff;
    font-weight: 500;
}

/* Danger level badges */
.map-lore-table .danger-low {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(68, 255, 136, 0.2);
    color: #44ff88;
    font-size: 0.85em;
    font-weight: 500;
}

.map-lore-table .danger-medium {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 200, 60, 0.2);
    color: #ffc83c;
    font-size: 0.85em;
    font-weight: 500;
}

.map-lore-table .danger-high {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    font-size: 0.85em;
    font-weight: 500;
}

.map-lore-table .danger-extreme {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(200, 60, 255, 0.2);
    color: #c83cff;
    font-size: 0.85em;
    font-weight: 500;
}

.map-lore-error {
    text-align: center;
    padding: 20px;
}

.map-lore-error .default-btn {
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-lore-container {
        padding: 15px;
    }

    .map-lore-table {
        font-size: 0.85em;
    }

    .map-lore-table th,
    .map-lore-table td {
        padding: 10px 12px;
    }

    .map-lore-table-wrap {
        margin: 10px -15px;
        padding: 0 15px;
    }
}