/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header h1 {
    color: #4f46e5;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header p {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid #e5e7eb;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: #10b981;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Content */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 2rem;
    position: relative;
}

/* Mind Map Container */
.mindmap-container {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    min-height: 80vh;
    overflow: hidden;
}

.mindmap-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.center-node {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.center-node:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

.center-node i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

/* Node Groups */
.node-group {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Positioning das etapas */
.etapa-1 {
    top: 10%;
    left: 20%;
}

.etapa-2 {
    top: 10%;
    right: 20%;
}

.etapa-3 {
    top: 35%;
    left: 5%;
}

.cenarios {
    top: 35%;
    right: 5%;
}

.perguntas {
    bottom: 25%;
    left: 15%;
}

.fechamento {
    bottom: 25%;
    right: 15%;
}

.followup {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

/* Main Nodes */
.main-node {
    width: 140px;
    height: 100px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.main-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-node:hover::before {
    opacity: 1;
}

.main-node:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-node i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.node-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Cores específicas para cada etapa */
.etapa-1 .main-node {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.etapa-2 .main-node {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.etapa-3 .main-node {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.cenarios .main-node {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.perguntas .main-node {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.fechamento .main-node {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.followup .main-node {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.main-node.special {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4); }
    to { box-shadow: 0 6px 20px rgba(255, 107, 107, 0.8); }
}

/* Sub Nodes */
.sub-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 200px;
}

.sub-node {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sub-node:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: #4f46e5;
}

.sub-node i {
    font-size: 0.8rem;
}

/* Content Panel */
.content-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.panel-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.script-box {
    background: #f8fafc;
    border-left: 4px solid #4f46e5;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.instruction-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.warning-box {
    background: #fee2e2;
    border: 1px solid #ef4444;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.success-box {
    background: #d1fae5;
    border: 1px solid #10b981;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

/* Progress Tracker */
.progress-tracker {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    z-index: 50;
}

.progress-header {
    margin-bottom: 1rem;
}

.progress-header h4 {
    color: #4f46e5;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: #4f46e5;
    color: white;
}

.step.completed .step-circle {
    background: #10b981;
    color: white;
}

.step span {
    font-size: 0.7rem;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.step.active span {
    color: #4f46e5;
    font-weight: 600;
}

.step.completed span {
    color: #10b981;
    font-weight: 600;
}

/* Connecting Lines */
.connections {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        z-index: 200;
        display: none;
    }
    
    .content-panel.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .mindmap-container {
        padding: 1.5rem;
        min-height: 60vh;
    }
    
    .progress-tracker {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        min-width: auto;
    }
    
    .main-node {
        width: 100px;
        height: 80px;
        font-size: 0.7rem;
    }
    
    .center-node {
        width: 80px;
        height: 80px;
        font-size: 0.7rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-blue { color: #4f46e5; }
.text-green { color: #10b981; }
.text-red { color: #ef4444; }
.text-orange { color: #f59e0b; }