/* Global styles */
:root {
    /* Brand Colors */
    --brand-primary: #0066FF;
    --brand-secondary: #00B4FF;
    --brand-accent: #00FFE5;
    --brand-gradient: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    
    /* Main theme */
    --primary-color: #ffffff;
    --primary-dark: #f0f0f0;
    --sidebar-bg: #ffffff;
    --sidebar-active: #f0f0f0;
    --border-color: #e0e0e0;
    --text-color: #333333;
    --light-text: #666666;
    --task-completed: #999999;
    --hover-bg: #f5f5f5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --gradient-start: #ffffff;
    --gradient-end: #f0f0f0;
    --card-bg: #ffffff;
    --input-bg: #f5f5f5;

    /* AI Chat theme */
    --ai-primary: #2196F3;
    --ai-secondary: #1976D2;
    --ai-accent: #64B5F6;
    --ai-gradient-start: #2196F3;
    --ai-gradient-end: #1976D2;
    --ai-bg: #ffffff;
    --ai-text: #333333;
    --ai-border: #e0e0e0;

    /* Category Colors */
    --category-1: #FF5252;
    --category-2: #4CAF50;
    --category-3: #FFC107;
    --category-4: #9C27B0;
    --category-5: #00BCD4;
    --category-6: #FF9800;
}

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-color);
    height: 100vh;
    overflow: hidden;
}

/* Graph Visualization */
.graph-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.1s ease;
}

.graph-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    transition: all 0.3s ease;
    pointer-events: auto;
    animation: nodeAppear 0.3s ease-out;
    user-select: none;
}

.graph-node:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
}

.graph-node.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 122, 255, 0.5);
    z-index: 1000;
}

.graph-node.connected {
    border-color: var(--ai-primary);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.root-node {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 80px;
    height: 80px;
}

.node-content {
    color: var(--text-color);
    font-size: 12px;
    text-align: center;
    padding: 5px;
    word-break: break-word;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.node-controls {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.graph-node:hover .node-controls {
    opacity: 1;
}

.node-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.node-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.graph-line {
    position: absolute;
    background: var(--border-color);
    height: 2px;
    transform-origin: left center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.graph-line:hover {
    background: var(--primary-color);
    height: 3px;
}

.zoom-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    pointer-events: auto;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Add animation for new nodes */
@keyframes nodeAppear {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add glow effect for active nodes */
@keyframes nodeGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 122, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
    }
}

.graph-node.active {
    animation: nodeGlow 2s infinite;
}

/* Main Content Area */
.app-container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    backdrop-filter: blur(10px);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.create-btn {
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.create-btn:hover {
    background: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.create-btn i {
    margin-right: 8px;
}

.secondary-btn {
    width: 100%;
    padding: 12px 16px;
    margin-top: 10px;
    background: var(--category-2);
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.secondary-btn i {
    margin-right: 8px;
}

.sidebar-search {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.page-list {
    list-style-type: none;
    padding: 10px 0;
    overflow-y: auto;
    flex: 1;
}

.page-item {
    padding: 12px 16px;
    margin: 4px 12px;
    cursor: pointer;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.page-item.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    font-weight: 500;
    border: none;
}

.page-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.page-date {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 3px;
}

.ai-indicator {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--primary-color);
}

.delete-btn {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
}

.delete-btn:hover {
    opacity: 1;
    color: #ff4d4d;
}

.page-item:hover .delete-btn {
    display: block;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.sidebar-footer button, .import-label {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: background-color 0.15s;
}

.sidebar-footer button:hover, .import-label:hover {
    background-color: var(--hover-bg);
}

.sidebar-footer button:first-child {
    margin-right: 10px;
}

.sidebar-footer i {
    margin-right: 5px;
}

/* Chat sidebar styles */
.chat-sidebar {
    background: var(--ai-bg);
    border-left: 1px solid var(--ai-border);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 15px;
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.assistant {
    align-self: flex-start;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.user .message-content {
    background: var(--ai-primary);
    color: white;
    border-radius: 20px 20px 4px 20px;
}

.chat-message.assistant .message-content {
    background: var(--ai-secondary);
    color: white;
    border-radius: 20px 20px 20px 4px;
}

.message-timestamp {
    font-size: 11px;
    color: var(--light-text);
    margin-top: 4px;
    align-self: flex-end;
}

.chat-message.user .message-timestamp {
    margin-right: 5px;
}

.chat-message.assistant .message-timestamp {
    margin-left: 5px;
}

/* Typing indicator */
.chat-message.typing .message-content {
    display: none;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #e9e9eb;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: var(--light-text);
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.chat-input-container {
    background: var(--ai-bg);
    border-top: 1px solid var(--ai-border);
    padding: 15px;
    display: flex;
    align-items: center;
}

#chatInput {
    background: var(--input-bg);
    color: var(--ai-text);
    border: 1px solid var(--ai-border);
    border-radius: 20px;
    padding: 12px 20px;
    flex: 1;
    resize: none;
    font-size: 14px;
    max-height: 100px;
    min-height: 40px;
    font-family: inherit;
}

.chat-send-btn {
    background: var(--ai-primary);
    color: var(--ai-text);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: var(--ai-secondary);
    transform: scale(1.05);
}

/* Content area styles */
#content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.content-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#pageTitle {
    font-size: 22px;
    font-weight: 600;
    border: none;
    outline: none;
    width: 70%;
    padding: 5px 0;
}

.last-edited {
    font-size: 13px;
    color: var(--light-text);
}

.editor-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

#pageContent {
    width: 100%;
    height: 100%;
    padding: 24px;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    line-height: 1.6;
    font-family: inherit;
    overflow-y: auto;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 12px;
    margin: 12px;
    box-shadow: var(--shadow);
}

/* AI Controls */
.ai-controls {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--sidebar-bg);
}

.ai-buttons {
    display: flex;
    gap: 10px;
}

.ai-button {
    flex: 1;
    padding: 12px 16px;
    background: var(--brand-gradient);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.ai-button:hover {
    background: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.ai-button i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 16px;
}

.ai-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Charts container */
.charts-container {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    max-height: 350px;
    overflow-y: auto;
    display: none;
}

.chart-item {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.chart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--brand-gradient);
    border-bottom: 1px solid var(--border-color);
    color: white;
}

.chart-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.close-chart {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--light-text);
    opacity: 0.7;
}

.close-chart:hover {
    opacity: 1;
    color: #ff4d4d;
}

.chart-content {
    padding: 15px;
}

.chart-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.02);
}

.chart-timestamp {
    font-size: 12px;
    color: var(--light-text);
}

/* Data table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th {
    background-color: var(--primary-dark);
    color: var(--text-color);
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.data-table tr:nth-child(even) {
    background-color: rgba(0,0,0,0.02);
}

.data-table tr:hover {
    background-color: var(--hover-bg);
}

/* Specific table styles */
.topic-table td:first-child,
.budget-table td:first-child {
    font-weight: 500;
}

.topic-table td:nth-child(2),
.budget-table td:nth-child(2) {
    max-width: 300px;
}

.topic-summary-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.topic-summary-section h5 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.budget-prompt {
    font-style: italic;
    color: var(--light-text);
    font-size: 13px;
    margin-bottom: 15px;
    text-align: right;
}

/* Tasks container */
.tasks-container {
    padding: 20px;
    max-height: 30vh;
    overflow-y: auto;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tasks-header h3 {
    font-size: 18px;
    font-weight: 600;
}

#taskStats {
    font-size: 14px;
    color: var(--light-text);
}

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

.task-input:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.task-input i {
    color: var(--light-text);
    margin-right: 10px;
}

#newTask {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
}

#taskList {
    list-style-type: none;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.task-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.task-text {
    flex: 1;
    font-size: 14px;
}

.task-text.completed {
    text-decoration: line-through;
    color: var(--task-completed);
}

.delete-task {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

.task-item:hover .delete-task {
    opacity: 0.7;
}

.delete-task:hover {
    opacity: 1;
    color: #ff4d4d;
}

.empty-tasks {
    color: var(--light-text);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Modal dialog styles */
.modal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-text);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.full-width {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    margin-top: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.full-width:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
    outline: none;
}

.primary-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.secondary-button {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.15s;
}

.secondary-button:hover {
    background-color: var(--hover-bg);
}

/* Error container */
.error-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: none;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.error-message i {
    margin-right: 8px;
}

.close-error {
    background: none;
    border: none;
    color: #721c24;
    font-size: 18px;
    cursor: pointer;
    margin-left: 12px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 280px 1fr;
    }
    
    #chatSidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
    }
    
    #content {
        height: 60vh;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #pageTitle {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .ai-buttons {
        flex-direction: column;
    }
    
    .chat-sidebar {
        display: none;
    }
    
    .graph-node {
        width: 50px;
        height: 50px;
    }
    
    .root-node {
        width: 60px;
        height: 60px;
    }
    
    .node-content {
        font-size: 10px;
    }
}

/* Budget Recommendations */
.budget-recommendation {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.budget-recommendation:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.budget-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.budget-category:nth-child(1) { border-left: 4px solid var(--category-1); }
.budget-category:nth-child(2) { border-left: 4px solid var(--category-2); }
.budget-category:nth-child(3) { border-left: 4px solid var(--category-3); }
.budget-category:nth-child(4) { border-left: 4px solid var(--category-4); }
.budget-category:nth-child(5) { border-left: 4px solid var(--category-5); }
.budget-category:nth-child(6) { border-left: 4px solid var(--category-6); }

.budget-progress {
    flex: 1;
    height: 8px;
    background: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
}

.budget-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.budget-category:nth-child(1) .budget-progress-bar { background: var(--category-1); }
.budget-category:nth-child(2) .budget-progress-bar { background: var(--category-2); }
.budget-category:nth-child(3) .budget-progress-bar { background: var(--category-3); }
.budget-category:nth-child(4) .budget-progress-bar { background: var(--category-4); }
.budget-category:nth-child(5) .budget-progress-bar { background: var(--category-5); }
.budget-category:nth-child(6) .budget-progress-bar { background: var(--category-6); }

/* Modern Input Styles */
input, textarea {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Chart Styles */
.chart-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin: 15px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Task Styles */
.task-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
}

/* Modal Styles */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px;
}

/* Mind Map Styles */
.mind-map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.mind-map-container.active {
    display: block;
}

.mind-map-toolbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 1001;
}

.mind-map-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mind-map-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.mind-map-node {
    position: absolute;
    min-width: 120px;
    min-height: 80px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    cursor: move;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.mind-map-node:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mind-map-node.selected {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.mind-map-node-content {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
}

.mind-map-connection {
    position: absolute;
    background: var(--border-color);
    height: 2px;
    transform-origin: left center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mind-map-connection:hover {
    background: var(--brand-primary);
    height: 3px;
}

/* Brand Styles */
@font-face {
    font-family: 'Futuristic';
    src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');
}

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

.brand-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Update sidebar header styles */
.sidebar-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Update AI sidebar header styles */
.chat-sidebar .sidebar-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Add animation for brand elements */
@keyframes brandGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 102, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 102, 255, 0.2);
    }
}

.brand-logo:hover .brand-name {
    animation: brandGlow 2s infinite;
}