/* Estilos Base */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background: #f8f9fa;
}

body {
    font-family: 'Segoe UI', system-ui;
    margin: 0;
    background-color: var(--background);
}

/* Barra de Herramientas */
.toolbar {
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary, .btn-success {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-success { background: #27ae60; color: white; }

#searchInput {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Grid de Prompts */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.prompt-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.prompt-card:hover {
    transform: translateY(-5px);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prompt-title {
    font-weight: 600;
    color: var(--primary-color);
}

.prompt-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Modal de Importación */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    width: 60%;
    border-radius: 10px;
}

.file-preview {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}