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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    padding: 2rem;
}

.app-header {
    text-align: center;
    margin-bottom: 2rem;
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.app-header p {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
}

.board-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.column {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.column-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.task-count {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.task-list {
    flex: 1;
    padding: 1rem;
    min-height: 200px;
}

.task-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: move;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    outline: none;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.task-card:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.task-card .delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.task-card:hover .delete-btn {
    display: flex;
}

.delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.task-card .ai-btn {
    position: absolute;
    top: 0.5rem;
    right: 2.5rem;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.task-card:hover .ai-btn {
    display: flex;
}

.ai-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

.task-card .circles-btn {
    position: absolute;
    top: 0.5rem;
    right: 4.5rem;
    width: 24px;
    height: 24px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.15s ease;
    z-index: 10;
}

.task-card:hover .circles-btn {
    display: flex;
}

.circles-btn:hover {
    background: #4f46e5;
    transform: scale(1.06);
}

.ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.ai-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.ai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.ai-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.ai-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ai-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.ai-modal-body {
    padding: 1.5rem;
}

.ai-ideas-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-ideas-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    transition: all 0.2s ease;
}

.ai-ideas-list li:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.ai-ideas-list li:last-child {
    margin-bottom: 0;
}

.task-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.task-category {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.task-schedule {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-section {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.task-list.drag-over {
    background: #f1f5f9;
    border: 2px dashed #3b82f6;
    border-radius: 8px;
}

/* Category color coding */
.task-category.medios { background: #ef4444; }
.task-category.producciones { background: #f97316; }
.task-category.diseño { background: #eab308; }
.task-category.sociales { background: #22c55e; }
.task-category.editorial { background: #06b6d4; }
.task-category.otros { background: #8b5cf6; }
.task-category.videos { background: #ec4899; }
.task-category.grupos { background: #10b981; }
.task-category.batalla { background: #f59e0b; }
.task-category.acciones { background: #3b82f6; }
.task-category.inversiones { background: #6366f1; }

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.category-btn {
    padding: 0.75rem 1.25rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
}

.category-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.clear-btn {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
}

.clear-btn:hover {
    background: #dc2626 !important;
}

.profit-estimate {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    text-align: center;
}

.profit-estimate h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.estimate-value {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.profit-paths h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-specific {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #0c4a6e;
    font-weight: 500;
}

.paths-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.paths-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    transition: all 0.2s ease;
    position: relative;
}

.paths-list li:before {
    content: "💡";
    position: absolute;
    left: 0.5rem;
    top: 1rem;
}

.paths-list li {
    padding-left: 3rem;
}

.paths-list li:hover {
    background: #f1f5f9;
    transform: translateX(4px);
    border-left-color: #059669;
}

.paths-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }
    
    .board-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .app-header h1 {
        font-size: 2rem;
    }
    
    .ai-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .ai-modal-header {
        padding: 1rem;
    }
    
    .ai-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .ai-modal-body {
        padding: 1rem;
    }
}