/* sprints.css - Team Learning Sprints Styles (Phase 4) */

/* Sprint Header & Filters */
.sprints-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sprints-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.btn-create-sprint {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-create-sprint:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.sprints-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: #f7fafc;
    padding: 8px;
    border-radius: 12px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Sprint Cards Grid */
.sprints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sprint-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.sprint-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sprint-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sprint-topic-emoji {
    font-size: 28px;
}

.sprint-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sprint-status.upcoming {
    background: #fef3c7;
    color: #92400e;
}

.sprint-status.active {
    background: #dcfce7;
    color: #14532d;
}

.sprint-status.completed {
    background: #e0e7ff;
    color: #3730a3;
}

.sprint-status.archived {
    background: #f3f4f6;
    color: #6b7280;
}

.sprint-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.sprint-description {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.5;
}

.sprint-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #a0aec0;
}

/* Empty States */
.sprints-empty,
.ideas-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f7fafc;
    border-radius: 16px;
}

.sprints-empty p,
.ideas-empty p {
    font-size: 18px;
    color: #718096;
    margin-bottom: 8px;
}

.sprints-empty-hint,
.ideas-empty-hint {
    font-size: 14px !important;
    color: #a0aec0 !important;
}

/* Sprint Details */
.sprint-details {
    max-width: 1200px;
    margin: 0 auto;
}

.btn-back {
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #e2e8f0;
}

.sprint-details-header {
    background: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sprint-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sprint-details-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.btn-invite-participants {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.btn-invite-participants:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.sprint-details-header p {
    font-size: 16px;
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.6;
}

.sprint-details-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #4a5568;
}

.btn-join-sprint {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-join-sprint:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Tabs */
.sprint-tabs {
    display: flex;
    gap: 8px;
    background: #f7fafc;
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ideas Section */
.ideas-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-add-idea {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-add-idea:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.idea-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.idea-card:hover {
    background: #edf2f7;
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.idea-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.idea-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.idea-status.proposed {
    background: #fef3c7;
    color: #92400e;
}

.idea-status.analyzing {
    background: #dbeafe;
    color: #1e3a8a;
}

.idea-status.analyzed {
    background: #dcfce7;
    color: #14532d;
}

.idea-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.idea-author {
    font-size: 13px;
    color: #718096;
}

.idea-voting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-btn {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    border-color: #667eea;
    transform: scale(1.1);
}

.vote-btn.upvote:hover {
    background: #dcfce7;
}

.vote-btn.downvote:hover {
    background: #fee2e2;
}

.votes-count {
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

/* AI Analysis */
.idea-ai-analysis {
    background: white;
    padding: 16px;
    border-radius: 10px;
    margin-top: 12px;
    border: 2px solid #e0e7ff;
}

.idea-ai-analysis strong {
    display: block;
    color: #667eea;
    margin-bottom: 8px;
}

.ai-scores {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 13px;
    color: #4a5568;
}

.ai-summary {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
}

.btn-analyze-idea {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.btn-analyze-idea:hover {
    opacity: 0.9;
}

.btn-analyze-idea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Chat Section */
.chat-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 12px;
}

.chat-loading,
.chat-empty {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-size: 14px;
}

.chat-message {
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message.ai_coach {
    background: #e0e7ff;
    border-left: 3px solid #667eea;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.message-header strong {
    font-size: 14px;
    color: #2d3748;
}

.message-time {
    font-size: 11px;
    color: #a0aec0;
}

.message-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

.chat-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#chat-message-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

#chat-message-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-send-message {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send-message:hover {
    opacity: 0.9;
}

/* Participants Section */
.participants-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.participant-card {
    background: #f7fafc;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-info strong {
    font-size: 15px;
    color: #2d3748;
}

.participant-role {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.participant-role.creator {
    background: #fef3c7;
    color: #92400e;
}

.participant-role.moderator {
    background: #dbeafe;
    color: #1e3a8a;
}

.participant-role.participant {
    background: #e0e7ff;
    color: #3730a3;
}

.participant-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #718096;
}

/* Create Sprint Form */
.create-sprint-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.create-sprint-form h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit-sprint {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit-sprint:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-submit {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #48bb78 0%, #2f855a 100%);
}

.toast-error {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .sprints-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-create-sprint {
        width: 100%;
    }

    .sprints-filters {
        width: 100%;
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .sprints-grid {
        grid-template-columns: 1fr;
    }

    .sprint-tabs {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .chat-section {
        height: 500px;
    }

    .ai-scores {
        flex-direction: column;
        gap: 8px;
    }

    .participant-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .kanban-board {
        flex-direction: column;
        gap: 16px;
    }

    .kanban-column {
        min-width: 100%;
    }

    .board-filters {
        flex-direction: column;
        gap: 12px;
    }

    .board-filters select {
        width: 100%;
    }
}

/* ========== SCRUM BOARD STYLES (Phase 4.1) ========== */

.scrum-board-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.board-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.btn-add-task {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-add-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.board-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.board-filters select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.board-filters select:focus {
    outline: none;
    border-color: #667eea;
}

/* Kanban Board Layout */
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.kanban-column {
    flex: 1;
    min-width: 280px;
    background: #f7fafc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.column-emoji {
    font-size: 20px;
}

.column-header h4 {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    padding: 0 8px;
}

.column-content {
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-loading,
.column-empty {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
    font-size: 14px;
}

.column-content.drag-over {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

/* Task Cards */
.task-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: grab;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.task-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-priority {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.task-menu-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-menu-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.task-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.task-description {
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.task-tag {
    padding: 4px 10px;
    background: #edf2f7;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #4a5568;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
}

.task-assignee {
    color: #4a5568;
    font-weight: 500;
}

.task-assignee-empty {
    color: #a0aec0;
    font-style: italic;
}

.task-deadline {
    color: #718096;
    white-space: nowrap;
}

.task-deadline.deadline-close {
    color: #e53e3e;
    font-weight: 700;
}

.task-time {
    margin-top: 8px;
    font-size: 12px;
    color: #718096;
}

/* Task Context Menu */
.task-context-menu {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    min-width: 180px;
    overflow: hidden;
}

.menu-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item:hover {
    background: #f7fafc;
}

.menu-item:last-child:hover {
    background: #fee2e2;
    color: #c53030;
}

/* Modal Wide (for Task Creation) */
.modal-wide {
    max-width: 700px;
}

/* Drag & Drop Visual Feedback */
.task-card[draggable="true"] {
    cursor: grab;
}

.task-card[draggable="true"]:active {
    cursor: grabbing;
}

/* ========== MIND MAPS STYLES (Phase 4.2) ========== */

.mindmaps-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mindmaps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mindmaps-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.btn-add-mindmap {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-add-mindmap:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.mindmaps-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mindmap-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mindmap-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.mindmap-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.mindmap-card-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.mindmap-template {
    padding: 4px 10px;
    background: #edf2f7;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.mindmap-description {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 16px;
}

.mindmap-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #718096;
}

.mindmap-author,
.mindmap-nodes-count,
.mindmap-date {
    white-space: nowrap;
}

/* Mind Map Canvas Editor */
.mindmap-editor {
    background: white;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mindmap-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
}

.mindmap-editor-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.btn-back {
    padding: 8px 16px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 16px;
}

.btn-back:hover {
    background: #667eea;
    color: white;
}

.mindmap-tools {
    display: flex;
    gap: 8px;
}

.btn-tool {
    padding: 8px 16px;
    background: white;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-tool:hover {
    border-color: #667eea;
    color: #667eea;
}

#mindmap-canvas {
    display: block;
    width: 100%;
    background: #fafafa;
    cursor: default;
}

.mindmap-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #718096;
}

/* Context Menu */
.context-menu {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    min-width: 200px;
    overflow: hidden;
}

.context-menu .menu-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu .menu-item:hover {
    background: #f7fafc;
}

.context-menu .menu-item.danger:hover {
    background: #fee2e2;
    color: #c53030;
}

.context-menu .menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.context-menu .menu-item.disabled:hover {
    background: transparent;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    margin: 8px 0;
}

.empty-hint {
    font-size: 14px;
    color: #cbd5e0;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .mindmaps-list {
        grid-template-columns: 1fr;
    }

    .mindmap-editor-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .mindmap-tools {
        width: 100%;
        justify-content: space-between;
    }

    .mindmap-legend {
        flex-direction: column;
        gap: 8px;
    }

    .mindmap-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
