:root {
    --bg-color: #f9fafb;
    --text-color: #374151;
    --text-color-light: #6b7280;
    --card-bg-color: #ffffff;
    --border-color: #e5e7eb;
    --modal-bg-color: #ffffff;
    --modal-border-color: #d1d5db;
    --input-bg-color: #ffffff;
    --input-border-color: #d1d5db;
    --input-focus-ring-color: #4b5563; 
    --header-bg-color: #1f2937; 
    --header-text-color: #f3f4f6; 
    --button-primary-bg: #4b5563;
    --button-primary-text: #ffffff;
    --button-primary-hover-bg: #374151;
    --button-secondary-bg: #9ca3af;
    --button-secondary-text: #ffffff;
    --button-secondary-hover-bg: #6b7280;
    --tab-active-border: #4b5563;
    --tab-text-color: #6b7280;
    --tab-hover-text-color: #374151;
    --kanban-column-bg: #f3f4f6;
    --comment-bubble-bg: #f3f4f6;
    --comment-author-text: #4b5563;
    --placeholder-text-color: #9ca3af; 
    --gantt-weekend-bg: #f3f4f6;
    --icon-color: #6b7280;
    --icon-hover-color: #374151;
    --danger-text-color: #ef4444;
    --task-done-opacity: 0.6;
    --checkbox-border-color: #cbd5e1; 
    --checkbox-checked-bg-color: var(--button-primary-bg);
    --checkbox-checked-icon-color: var(--button-primary-text);
    --link-color: #4f46e5; 
    --activity-log-item-border: #e5e7eb;
    --reminder-icon-color: #fbbf24; 
    --animation-duration: 0.3s; /* Added for transitions */
    --animation-timing-function: ease-in-out; /* Added for transitions */
}

.dark-mode {
    --bg-color: #111827; 
    --text-color: #ffffff; 
    --text-color-light: #9ca3af;
    --card-bg-color: #1f2937; 
    --border-color: #374151; 
    --modal-bg-color: #1f2937;
    --modal-border-color: #4b5563; 
    --input-bg-color: #374151;
    --input-border-color: #4b5563;
    --input-focus-ring-color: #60a5fa; 
    --header-bg-color: #0f172a; 
    --header-text-color: #e5e7eb;
    --button-primary-bg: #3b82f6; 
    --button-primary-text: #ffffff;
    --button-primary-hover-bg: #2563eb;
    --button-secondary-bg: #4b5563;
    --button-secondary-text: #e5e7eb;
    --button-secondary-hover-bg: #374151;
    --tab-active-border: #3b82f6;
    --tab-text-color: #9ca3af;
    --tab-hover-text-color: #e5e7eb;
    --kanban-column-bg: #1a202c;
    --comment-bubble-bg: #2d3748;
    --comment-author-text: #a0aec0;
    --placeholder-text-color: #9ca3af; 
    --gantt-weekend-bg: #1a202c;
    --icon-color: #9ca3af;
    --icon-hover-color: #e5e7eb;
    --danger-text-color: #f87171;
    --checkbox-border-color: #4b5563; 
    --checkbox-checked-bg-color: var(--button-primary-bg);
    --link-color: #818cf8; 
    --activity-log-item-border: #374151;
    --reminder-icon-color: #fcd34d; 
}

@keyframes background-pan {
    from { background-position: 0% center; }
    to { background-position: -200% center; }
}

body {
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    /* Un gradiente estático es muchísimo más barato */
    background: linear-gradient(110deg, var(--border-color), var(--bg-color));
    /* Ya no necesitamos animation ni background-size grande */
    color: var(--text-color);
    background-color: var(--bg-color); /* Fallback por si el gradiente falla */
    transition: color 0.3s, background-color 0.3s;
}
body.dark-mode {
    /* Gradiente estático para modo oscuro */
    background: linear-gradient(110deg, var(--bg-color), var(--kanban-column-bg));
    background-color: var(--bg-color); /* Fallback */
}
p { 
    color: var(--text-color);
}
.dark-mode p.text-gray-500, .dark-mode p.text-gray-400 {
    color: var(--text-color-light);
}
 .dark-mode .auth-card p, .dark-mode #authView p {
    color: var(--text-color);
}
.dark-mode .auth-card p.text-sm {
    color: var(--text-color-light);
}
a.text-indigo-500 { color: var(--link-color); }
.dark-mode a.text-indigo-500 { color: var(--link-color); }

h1, h2, h3, h4, h5, h6, .font-montserrat-bold {
    font-family: 'Lexend', sans-serif;
    font-weight: 900;
    color: var(--text-color); 
}
.font-montserrat-semibold {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
}
.kanban-column, .spark-zone-item, .auth-card, .project-card, .contact-card, .dashboard-widget { 
    border-radius: 0.5rem; 
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    transition: transform var(--animation-duration) var(--animation-timing-function), 
                box-shadow var(--animation-duration) var(--animation-timing-function); /* Added for hover */
}
 .modal-content {
    border-radius: 0.5rem; 
    background-color: var(--modal-bg-color);
    border: 1px solid var(--modal-border-color);
    position: relative; padding: 20px; width: 90%; max-width: 600px; /* Increased max-width for task modal tabs */
    max-height: 90vh; 
    overflow-y: auto; 
    transition: opacity var(--animation-duration) var(--animation-timing-function), 
                transform var(--animation-duration) var(--animation-timing-function); /* For modal animation */
    opacity: 0; /* Initially hidden for animation */
    transform: scale(0.95) translateY(10px); /* Initial state for animation */
}
.modal.modal-visible .modal-content { /* For modal open animation */
    opacity: 1;
    transform: scale(1) translateY(0);
}

.kanban-card {
    cursor: grab;
    transition: transform var(--animation-duration) var(--animation-timing-function), 
                box-shadow var(--animation-duration) var(--animation-timing-function), 
                opacity var(--animation-duration) var(--animation-timing-function);
    background-color: var(--card-bg-color); 
    border-left-width: 4px; 
    border-color: var(--border-color); 
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.kanban-card-content {
    flex-grow: 1;
}
.kanban-card.task-done .kanban-card-content p,
.kanban-card.task-done .kanban-card-content div:not(.task-actions):not(.task-indicators) { 
    text-decoration: line-through;
    opacity: var(--task-done-opacity);
}
.kanban-card.task-done .kanban-card-content .tag-badge {
     opacity: var(--task-done-opacity);
}


.task-checkbox {
    min-width: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--checkbox-border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
    margin-top: 0.25rem;
}
.task-checkbox .fa-check {
    display: none;
    color: var(--checkbox-checked-icon-color);
    font-size: 0.7rem;
}
.kanban-card.task-done .task-checkbox {
    background-color: var(--checkbox-checked-bg-color);
    border-color: var(--checkbox-checked-bg-color);
}
.kanban-card.task-done .task-checkbox .fa-check {
    display: inline-block;
}

.kanban-card:hover, .contact-card:hover, .project-card:hover, .spark-zone-item:hover, .dashboard-widget:hover {
    transform: translateY(-2px); /* Un poco menos de transformacion */
    /* Una sombra más simple es más barata de renderizar */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}
@media (max-width: 768px) {
    .kanban-card:hover, .contact-card:hover, .project-card:hover, .spark-zone-item:hover, .dashboard-widget:hover {
        transform: translateY(-2px);
        box-shadow: none; /* Sin sombra en el hover en móviles */
    }
}
.dragging { opacity: 0.5; transform: rotate(2deg); }
.drag-over { border: 2px dashed var(--button-primary-bg); background-color: var(--border-color); }
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); 
    align-items: center; justify-content: center; 
    transition: opacity var(--animation-duration) var(--animation-timing-function); /* For backdrop fade */
}
.modal.modal-visible { /* Class to trigger modal visibility and animation */
    display: flex;
    opacity: 1;
}

.tab-button {
    color: var(--tab-text-color);
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s; /* Added transition */
}
.tab-button:hover {
    color: var(--tab-hover-text-color);
}
.tab-button.active {
    border-bottom-color: var(--tab-active-border); 
    color: var(--tab-active-border); 
    font-family: 'Montserrat', sans-serif; font-weight: 600; 
}
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
.modal-tab-button {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: var(--tab-text-color);
    font-size: 0.875rem;
    transition: color 0.2s, border-color 0.2s; /* Added transition */
}
.modal-tab-button.active {
    border-bottom-color: var(--tab-active-border);
    color: var(--tab-active-border);
    font-weight: 600;
}
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }

.gantt-chart-container { padding: 20px 0; }
.gantt-row { display: flex; align-items: center; margin-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.gantt-task-name { width: 150px; padding-right: 10px; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--text-color); }
.gantt-bar-area { position: relative; flex-grow: 1; height: 30px; }
.gantt-bar { 
    position: absolute; height: 20px; top: 5px; background-color: #6b7280; 
    border-radius: 4px; color: var(--button-primary-text); font-size: 0.75rem; line-height: 20px; 
    padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); 
}
.gantt-timeline { display: flex; margin-bottom: 10px; padding-left: 150px; }
.gantt-timeline-day { flex: 1; text-align: center; font-size: 0.75rem; color: var(--text-color-light); border-right: 1px solid var(--border-color); padding: 5px 0; min-width: 35px; }
.gantt-timeline-day:last-child { border-right: none; }
.gantt-timeline-day.weekend-day { 
     background-color: var(--gantt-weekend-bg);
}

#authView {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6; /* Un color de fondo simple */
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px),
                      radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}
.dark-mode #authView {
    background-color: #111827;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px),
                      radial-gradient(var(--border-color) 1px, transparent 1px);
}

.auth-card {
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    width: 100%; max-width: 400px;
    animation: fadeInSlideUp 0.6s ease-out forwards;
}
.auth-toggle-link { cursor: pointer; color: var(--link-color); font-weight: 600; }
.auth-toggle-link:hover { text-decoration: underline; }

#mainAppHeader, #projectsSectionContainer, #mainAppTabs, #mainAppContent { display: none; }

#mainAppHeader {
    background-color: var(--header-bg-color);
    color: var(--header-text-color);
}
#currentProjectDisplay { 
    background-color: rgba(255,255,255,0.1); 
    color: var(--header-text-color);
    display: flex; /* For icon alignment */
    align-items: center; /* For icon alignment */
}
.dark-mode #currentProjectDisplay {
    background-color: rgba(0,0,0,0.2); 
}


.profile-dropdown {
    position: absolute; right: 0; top: 100%; background-color: var(--modal-bg-color);
    border: 1px solid var(--modal-border-color); border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    z-index: 50; min-width: 180px; 
}
.profile-dropdown a, .profile-dropdown .theme-switch-wrapper, .profile-dropdown .language-switch-wrapper { 
    color: var(--text-color);
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
.profile-dropdown a:hover, .profile-dropdown .theme-switch-wrapper:hover, .profile-dropdown .language-switch-wrapper:hover {
    background-color: var(--border-color);
}
.language-switch-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.language-switch-wrapper em {
    margin-left: 10px;
    font-size: 0.875rem;
}

.project-card.active-project { box-shadow: 0 0 0 3px var(--button-primary-bg); border-color: var(--button-primary-bg); }
/* Project Icon Styles */
.project-icon-display, .project-icon-display-header {
    font-size: 1.1em; /* Adjust as needed */
    display: inline-block;
    width: 24px; /* Ensure space for FA icons */
    text-align: center;
}
.project-icon-display-header {
     font-size: 1em;
}

.btn-primary { background-color: var(--button-primary-bg); color: var(--button-primary-text); }
.btn-primary:hover { background-color: var(--button-primary-hover-bg); }
.btn-secondary { background-color: var(--button-secondary-bg); color: var(--button-secondary-text); }
.btn-secondary:hover { background-color: var(--button-secondary-hover-bg); }
.btn-danger { background-color: #ef4444; color: #ffffff; } 
.btn-danger:hover { background-color: #dc2626; }

.priority-alta { border-left-color: #4b5563; } 
.dark-mode .priority-alta { border-left-color: #60a5fa; } 
.priority-media { border-left-color: #9ca3af; } 
.dark-mode .priority-media { border-left-color: #a5b4fc; } 
.priority-baja { border-left-color: #d1d5db; } 
.dark-mode .priority-baja { border-left-color: #6b7280; } 

.gantt-bar-alta { background-color: #4b5563 !important; }
.dark-mode .gantt-bar-alta { background-color: #60a5fa !important; }
.gantt-bar-media { background-color: #9ca3af !important; }
.dark-mode .gantt-bar-media { background-color: #a5b4fc !important; }
.gantt-bar-baja { background-color: #d1d5db !important; color: #374151 !important; }
.dark-mode .gantt-bar-baja { background-color: #6b7280 !important; color: #e5e7eb !important; }

.comment-bubble {
    background-color: var(--comment-bubble-bg); border-radius: 0.5rem;
    padding: 0.5rem 0.75rem; font-size: 0.875rem;
}
.comment-author { font-weight: 600; color: var(--comment-author-text); font-size: 0.75rem; }
.comment-timestamp { font-size: 0.65rem; color: var(--text-color-light); opacity: 0.7; margin-left: 0.5rem; }

.tag-badge {
    font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 9999px;
    background-color: var(--border-color); color: var(--text-color);
    margin-right: 0.25rem; margin-bottom: 0.25rem; display: inline-block;
}

input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="date"], input[type="datetime-local"], textarea, select {
    background-color: var(--input-bg-color);
    border: 1px solid var(--input-border-color);
    color: var(--text-color);
    border-radius: 0.375rem;
    transition: border-color 0.2s, box-shadow 0.2s; /* Added transition */
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="url"]:focus, input[type="date"]:focus, input[type="datetime-local"]:focus, textarea:focus, select:focus {
    border-color: var(--input-focus-ring-color);
    box-shadow: 0 0 0 1px var(--input-focus-ring-color);
    outline: 2px solid transparent;
    outline-offset: 2px;
}
label {
    color: var(--text-color);
}
input::placeholder, textarea::placeholder {
    color: var(--placeholder-text-color);
    opacity: 1; 
}
input:-ms-input-placeholder, textarea:-ms-input-placeholder { 
    color: var(--placeholder-text-color);
}
 input::-ms-input-placeholder, textarea::-ms-input-placeholder { 
    color: var(--placeholder-text-color);
}
.markdown-support-note {
    font-size: 0.75rem;
    color: var(--text-color-light);
    margin-top: 0.25rem;
}
.rendered-markdown {
    font-size: 0.875rem;
    line-height: 1.5;
}
.rendered-markdown p { margin-bottom: 0.5em; }
.rendered-markdown ul, .rendered-markdown ol { margin-left: 1.5em; margin-bottom: 0.5em; }
.rendered-markdown li { margin-bottom: 0.25em; }
.rendered-markdown h1, .rendered-markdown h2, .rendered-markdown h3, .rendered-markdown h4 { margin-top: 0.5em; margin-bottom: 0.25em; font-weight: 600; }
.rendered-markdown h1 { font-size: 1.5em; }
.rendered-markdown h2 { font-size: 1.25em; }
.rendered-markdown h3 { font-size: 1.1em; }
.rendered-markdown blockquote { border-left: 3px solid var(--border-color); padding-left: 1em; margin-left: 0; font-style: italic; }
.rendered-markdown pre { background-color: var(--kanban-column-bg); padding: 0.5em; border-radius: 0.25em; overflow-x: auto;}
.rendered-markdown code { font-family: monospace; background-color: var(--kanban-column-bg); padding: 0.1em 0.3em; border-radius: 0.25em; }
.rendered-markdown pre code { background-color: transparent; padding: 0; }

.task-indicators {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.reminder-indicator {
    color: var(--reminder-icon-color);
    font-size: 0.8rem;
}
.reminder-indicator.overdue-not-done {
    color: var(--danger-text-color); /* Use danger color for overdue */
    animation: pulseReminder 1.5s infinite;
}
.reminder-indicator.overdue-done {
    color: var(--text-color-light); /* Muted color if overdue but done */
}
@keyframes pulseReminder { /* Animation for overdue reminder */
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.activity-log-container {
    max-height: 200px; /* Adjust as needed */
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}
.activity-log-item {
    font-size: 0.8rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--activity-log-item-border);
}
.activity-log-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.activity-log-item .user { font-weight: 600; color: var(--comment-author-text); }
.activity-log-item .timestamp { font-size: 0.7rem; color: var(--text-color-light); margin-left: 0.5rem; }
.activity-log-item .action { margin-top: 0.1rem; }

/* Quick Add Styles */
.quick-add-form input, .quick-add-spark-form input {
    font-size: 0.875rem; /* Tailwind 'text-sm' equivalent */
}
.quick-add-form button, #quickAddSparkButton {
    min-width: 32px; /* Ensure button is clickable */
}

/* Engaging Empty State Styles */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--text-color-light);
}
.empty-state-container i {
    font-size: 3rem; /* fa-3x */
    margin-bottom: 1rem; /* mb-4 */
}
.empty-state-container p {
    font-size: 1.125rem; /* text-lg */
}


.dark-mode .modal-content textarea,
.dark-mode .modal-content input[type="text"],
.dark-mode .modal-content input[type="email"],
.dark-mode .modal-content input[type="password"],
.dark-mode .modal-content input[type="url"],
.dark-mode .modal-content input[type="date"],
.dark-mode .modal-content input[type="datetime-local"],
.dark-mode .modal-content select {
    color: #ffffff; /* Forzar color de texto a blanco */
}

.text-gray-400 { color: var(--text-color-light); }
.text-gray-500 { color: var(--text-color-light); }
.text-gray-600 { color: var(--text-color); }
.text-gray-700 { color: var(--text-color); }
.text-gray-800 { color: var(--text-color); }
.text-blue-500 { color: var(--link-color); } 
.border-gray-200 { border-color: var(--border-color); }
.border-gray-300 { border-color: var(--modal-border-color); }
.bg-gray-50 { background-color: var(--bg-color); }
.bg-gray-100 { background-color: var(--kanban-column-bg); }
.bg-gray-700 { background-color: rgba(255,255,255,0.1); }
.dark-mode .bg-gray-700 { background-color: rgba(0,0,0,0.2); }
.text-red-500 { color: var(--danger-text-color); }

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.theme-switch-wrapper em {
    margin-left: 10px;
    font-size: 0.875rem;
}
.theme-switch {
    display: inline-block;
    height: 20px;
    position: relative;
    width: 36px;
}
.theme-switch input {
    display:none;
}
.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}
.slider:before {
    background-color: #fff;
    bottom: 2px;
    content: "";
    height: 16px;
    left: 2px;
    position: absolute;
    transition: .4s;
    width: 16px;
}
input:checked + .slider {
    background-color: var(--button-primary-bg);
}
input:checked + .slider:before {
    transform: translateX(16px);
}
.slider.round {
    border-radius: 20px;
}
.slider.round:before {
    border-radius: 50%;
}
.contact-card {
    padding: 1rem;
}
.contact-card p {
    margin-bottom: 0.25rem; 
    font-size: 0.875rem; 
}
.contact-card strong {
    font-weight: 600; 
}
.contact-card .actions {
    margin-top: 0.75rem; 
    text-align: right;
}
.contact-card .actions button {
    margin-left: 0.5rem; 
    font-size: 0.75rem; 
}
 .dashboard-widget {
    padding: 1.5rem; /* p-6 */
}
.dashboard-widget h3 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.75rem; /* mb-3 */
}
.dashboard-widget p, .dashboard-widget ul {
    font-size: 0.875rem; /* text-sm */
    color: var(--text-color-light);
}
.dashboard-widget ul {
    list-style-type: disc;
    padding-left: 1.25rem; /* pl-5 */
}
.dashboard-widget li {
    margin-bottom: 0.25rem; /* mb-1 */
}
 .dashboard-grid { /* For arranging widgets */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; /* gap-6 */
}
.go-home {
    position: fixed; /* Mantenemos el posicionamiento relativo al viewport */
    left: 50%;     /* Centrado horizontal */
    bottom: 20px;  /* Pegado al piso con un pequeño margen */
    transform: translateX(-50%); /* Solo centrado horizontal con transform */
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    padding: 0.5rem 1rem;
    border-radius: 9999px; /* full-rounded */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none; 
    font-size: 0.875rem; /* text-sm */
    transition: background-color 0.2s, box-shadow 0.2s;
}    

#searchResultsContainer .result-item { padding: 0.5rem 0.75rem; cursor: pointer; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 0.75rem; }
#searchResultsContainer .result-item:hover { background-color: var(--border-color); }
.dark-mode #searchResultsContainer .result-item:hover { background-color: #2d3748; }
#searchResultsContainer .result-item:last-child { border-bottom: none; }
#searchResultsContainer .result-category { padding: 0.75rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; background-color: var(--kanban-column-bg); }
.result-item i { width: 1.25rem; text-align: center; }


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

.pro-feature-lock {
    position: relative;
    cursor: not-allowed;
}

.pro-feature-lock .pro-badge {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background-color: #f59e0b; /* Color ámbar/oro */
    color: white;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 0.25rem;
    letter-spacing: 0.05em;
}

.dark-mode .pro-feature-lock .pro-badge {
    background-color: #fcd34d;
    color: #111827;
}

/* ============================================= */
/* TEMPLATES MODAL STYLES (NEW & IMPROVED)      */
/* ============================================= */

/* El contenedor principal de la lista */
#templatesListContainer {
    display: grid;
    grid-template-columns: 1fr; /* Una columna por defecto */
    gap: 0.75rem; /* Espacio entre tarjetas */
}

/* Las tarjetas de plantilla individuales */
.template-card {
    padding: 1.25rem; /* Más espacio interno */
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: var(--card-bg-color);
}

/* Efecto hover sutil */
.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--button-primary-bg);
}

/* Estilo para el título de la plantilla */
.template-card-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.template-card-title i {
    width: 2rem; /* Asegura espacio consistente para el icono */
    text-align: center;
    margin-right: 0.5rem;
    color: var(--button-primary-bg);
}

/* Estilo para la descripción */
.template-card-description {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-top: 0.25rem;
    padding-left: 2.5rem; /* Alinea la descripción con el texto del título */
    line-height: 1.4;
}

/* Mejoras para el modo oscuro */
.dark-mode .template-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==================================================== */
/* ESTILO PARA EL BOTÓN DE PLANTILLAS DESHABILITADO */
/* ==================================================== */
#templatesButton:disabled span {
    color: var(--text-color-light) !important;
}

.dark-mode #templatesButton:disabled span {
    color: #6b7280 !important; /* Un gris más oscuro para el modo noche */
}