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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1d2230 0%, #212033 100%);
    min-height: 100vh;
    color: #333;
}

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

.header h1 {
    text-align: center;
    color: #4a5568;
    font-size: 2rem;
    font-weight: 700;
}

/* Navegação por abas */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.tab-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tab-button.active {
    background: #6500c4;
    color: white;
    box-shadow: 0 6px 20px rgba(90, 66, 225, 0.4);
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Seções */
.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

/* Cabeçalho da seção */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
}

.add-button {
    background: #1d9e9e;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-button:hover {
    background: #22687e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 104, 104, 0.4);
}

/* Grid de balões */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Balões de ideias */
.idea-balloon {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.idea-balloon:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.balloon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.balloon-title {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.balloon-title:focus {
    background-color: #f7fafc;
    outline: 2px solid #4f46a7;
}

.delete-button {
    background: #f56565;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
    font-weight: bold;
}

.delete-button:hover {
    background: #e53e3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.balloon-content {
    width: 100%;
    min-height: 120px;
    border: none;
    background: transparent;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    padding: 0.8rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.balloon-content:focus {
    background-color: #f7fafc;
    outline: 2px solid #4299e1;
}

/* Cronograma específico */
.schedule-balloon {
    border-left: 4px solid #ed8936;
}

.date-input {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #744210;
    width: 100%;
}

.date-input:focus {
    outline: 2px solid #ed8936;
    border-color: #ed8936;
}

/* Botões de controle */
.data-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.export-button, .import-button, .clear-button {
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-button, .import-button {
    background: #7242e1;
}

.clear-button {
    background: #e53e3e;
}

.export-button:hover, .import-button:hover {
    background: #5e34be;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(114, 66, 225, 0.3);
}

.clear-button:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.import-input {
    display: none;
}

/* Estatísticas do projeto */
.project-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.saving-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.saving-indicator.show {
    opacity: 1;
}

/* Status de conexão */
.connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(72, 187, 120, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connection-status.offline {
    background: rgba(245, 101, 101, 0.9);
}

/* Responsividade */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .nav-tabs {
        gap: 0.5rem;
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .ideas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .idea-balloon {
        padding: 1rem;
    }
}