/* Tipografía moderna */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #00274d, #004080); /* Azul oscuro */
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    background-color: white;
    border-bottom: 1px solid #ddd;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
    text-decoration: none;
    color: #00274d; /* Azul oscuro */
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #001f3d; /* Azul más oscuro */
}

main {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

section {
    margin-bottom: 3rem;
}

#banner {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(0, 39, 77, 0.8), rgba(0, 64, 128, 0.8)), 
                url('../img/mountain.jpg') no-repeat center center/cover; /* Azul oscuro */
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 2s ease-in-out;
}

#banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#banner p {
    font-size: 1.2rem;
}

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

#projects {
    text-align: center;
    padding: 2rem 1rem;
}

.project {
    margin: 2rem auto;
    padding: 1.5rem;
    max-width: 600px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project img {
    max-width: 250px; /* Ajustado a 250px de ancho */
    margin-bottom: 0.5rem; /* Reducido de 1rem a 0.5rem */
}

.project h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00274d; /* Azul oscuro */
}

.project p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #004080; /* Azul oscuro */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #00274d; /* Azul más oscuro */
}

#blog {
    text-align: center;
    padding: 2rem 1rem;
}

.post-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.post {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #00274d; /* Azul oscuro */
}

.post h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.post h3 a:hover {
    color: #004080; /* Azul más oscuro */
}

.post p {
    font-size: 1rem;
    color: #555;
}

/* Estilos para mensajes Flash */
.flash-messages {
    padding: 1rem;
    margin-bottom: 1rem;
}
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Estilos para el formulario de login */
#login-section {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#login-section h2 {
    margin-bottom: 1.5rem;
    color: #00274d;
}

.login-form .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form .btn-submit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #004080;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form .btn-submit:hover {
    background-color: #00274d;
}

/* Estilos para el Dashboard de Aplicaciones */
#dashboard {
    text-align: center;
    padding: 2rem 1rem;
}

#dashboard h2 {
    margin-bottom: 1rem;
    color: #00274d;
}

#dashboard p {
    margin-bottom: 2rem;
    color: #555;
}

.dashboard-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #004080;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    text-align: center;
}

.dashboard-button:hover {
    background-color: #00274d;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #00274d; /* Azul oscuro */
    color: white;
    font-size: 0.9rem;
    margin-top: 2rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
}

/* Estilos para Pomodoro Timer */
#pomodoro-app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 500px;
}

.pomodoro-timer-wrapper {
    font-family: 'Roboto', sans-serif;
    color: #333;
    text-align: center;
}

.pomodoro-timer-wrapper h1 {
    font-size: 2rem;
    color: #00274d;
    margin-bottom: 1.5rem;
}

.mode-selector button {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #004080;
    background-color: #fff;
    color: #004080;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.mode-selector button.active,
.mode-selector button:hover {
    background-color: #004080;
    color: #fff;
}

.timer-display {
    font-size: 4rem;
    font-weight: bold;
    margin: 2rem 0;
    color: #00274d;
}

.timer-controls button {
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border: none;
    background-color: #004080;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.timer-controls button:hover {
    background-color: #00274d;
}

.cycles-counter p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.settings-toggle button {
    margin-top: 1rem;
    background: none;
    border: none;
    color: #004080;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.settings-panel {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.settings-panel h2 {
    font-size: 1.2rem;
    color: #00274d;
    margin-bottom: 1rem;
}

.settings-panel div {
    margin-bottom: 0.75rem;
    text-align: left;
}

.settings-panel label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.settings-panel input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.settings-panel button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.settings-panel button:hover {
    background-color: #00274d;
}

/* Estilos para Planificador de Tareas Gamificado */
#planificador-app-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem; /* Ajustado para mejor visualización en pantallas pequeñas */
}

.task-manager-wrapper {
    font-family: 'Roboto', sans-serif;
    background-color: #fff; /* Fondo principal del contenedor del planificador */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px; 
    color: #333; /* Color de texto por defecto */
}

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

.task-manager-header h1 {
    font-size: 1.8rem; /* Ajustado */
    color: #00274d;
    margin-bottom: 0.5rem;
}

.task-manager-header p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.xp-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 9999px; /* Tailwind: rounded-full */
    height: 1rem; /* Tailwind: h-4 */
    margin-top: 1rem;
    overflow: hidden;
}

.xp-bar-progress {
    background-color: #004080; /* Azul oscuro */
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease-in-out;
}

.xp-to-next-level {
    font-size: 0.75rem; /* Tailwind: text-xs */
    color: #555;
    margin-top: 0.25rem;
}

.add-task-form {
    display: flex;
    margin-bottom: 1.5rem;
}

.add-task-form input[type="text"] {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px; /* Tailwind: rounded-l-md */
    outline: none;
}

.add-task-form input[type="text"]:focus {
    border-color: #004080;
    box-shadow: 0 0 0 2px rgba(0, 64, 128, 0.2); /* Simula focus:ring-2 focus:ring-blue-500 */
}

.add-task-form button {
    padding: 0.75rem 1rem;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0; /* Tailwind: rounded-r-md */
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-task-form button:hover {
    background-color: #00274d;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #ffffff; /* Fondo de cada tarea ahora es blanco puro */
    border: 1px solid #e0e0e0; /* Borde un poco más sutil */
    border-radius: 8px; 
    margin-bottom: 0.75rem; 
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: #a0a0a0; /* Texto de tarea completada un poco más claro */
}

.task-title {
    flex-grow: 1;
    color: #2c3e50; /* Texto de tarea un poco más oscuro para mejor contraste sobre blanco */
}

.task-actions {
    display: flex;
    gap: 0.5rem; /* Espacio entre botones */
}

.task-actions button {
    margin-left: 1rem; /* Tailwind: ml-4 */
    padding: 0.4rem 0.8rem; /* Tailwind: px-3 py-1 */
    border: none;
    border-radius: 4px; /* Tailwind: rounded-md */
    font-size: 0.8rem; /* Tailwind: text-sm */
    cursor: pointer;
    transition: background-color 0.3s;
}

.task-actions .complete-button {
    background-color: #28a745; /* Verde */
    color: white;
}
.task-actions .complete-button:hover:not(:disabled) {
    background-color: #218838;
}
.task-actions .complete-button:disabled {
    background-color: #ccc; /* Tailwind: bg-gray-300 */
    color: #666; /* Tailwind: text-gray-600 */
    cursor: not-allowed;
}

.task-actions .delete-button {
    background-color: #dc3545; /* Rojo */
    color: white;
}
.task-actions .delete-button:hover {
    background-color: #c82333;
}


.no-tasks-message {
    text-align: center;
    color: #777; /* Tailwind: text-gray-500 */
    padding: 1rem;
}
