/* Mind Map Page Specific Styles */
.mindmap-page-content {
    display: flex;
    height: 100%;
    width: 100%;
    background-color: var(--bg-dark);
}

/* Mind Map Internal Sidebar */
.mindmap-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.mindmap-sidebar-header {
    padding: 20px;
}

.new-mindmap-btn {
    width: 100%;
    padding: 10px 14px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.new-mindmap-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

.mindmap-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mind Map Main Content Area */
.mindmap-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.mindmap-page-header {
    padding: 20px 0 10px;
    text-align: center;
    margin-bottom: 10px;
}

.mindmap-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.mindmap-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Mind Map Container */
.mindmap-container {
    width: 100%;
    max-width: none;
    margin: 0 auto 20px;
    height: 90vh;
    background: transparent;
    outline: none;
    overflow: hidden;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Input Section Styles */
.mindmap-input-section {
    width: 90%;
    max-width: 1400px;
    margin: 60px auto 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    align-items: center;
}

.mindmap-upload-area {
    width: 100%;
    max-width: 600px;
    /* Narrower upload area */
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--input-bg);
}

.mindmap-upload-area:hover {
    border-color: var(--text-secondary);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.upload-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.upload-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border-color);
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

.divider-text span {
    background: var(--bg-dark);
    padding: 0 12px;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Updated Text Area Styles */
#mindMapTextInput {
    width: 100%;
    min-height: 250px;
    padding: 25px;
    background-color: var(--bg-hover);
    border: 2px solid transparent;
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#mindMapTextInput:hover {
    background-color: var(--input-bg);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

#mindMapTextInput:focus {
    outline: none;
    background-color: var(--bg-sidebar);
    border-color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

#mindMapTextInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.generate-mindmap-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px 32px;
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    margin-top: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.generate-mindmap-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.generate-mindmap-btn svg {
    width: 24px;
    height: 24px;
}

/* Mind Map Canvas */
#mindMapCanvas {
    width: 100%;
    flex: 1;
    height: auto;
    min-height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-sidebar);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

/* Toast animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}