/* Archivo: style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.app-container {
    width: 375px;
    height: 667px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

header {
    padding: 15px 20px;
    display: flex;
    align-items: center; /* Centra los items verticalmente */
    justify-content: space-between; /* <-- ESTA ES LA LÍNEA MÁGICA */
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

header .admin-link {
    font-size: 44px;
    text-decoration: none;
    color: #333;
    padding-bottom: 5px; 
}

.date-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.date-nav a {
    text-decoration: none;
    color: #888;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
}

.date-nav a.active {
    background-color: #007aff;
    color: white;
}

.task-list {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.task-item .checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.task-item .task-text {
    flex-grow: 1;
    color: #333;
    font-size: 18px;
}

/* Estilo para tarea completada */
.task-item.done .checkbox {
    background-color: #34c759;
    border-color: #34c759;
}

.task-item.done .checkbox::after {
    content: '✔';
    color: white;
    font-size: 16px;
}

.task-item.done .task-text {
    text-decoration: line-through;
    color: #aaa;
}

/* Estilo para Admin */
.admin-actions {
    display: flex;
    align-items: center;
}

.delete-btn {
    background-color: #ff3b30;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
}

.add-task-form {
    display: flex;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.add-task-form input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-right: 10px;
}

.add-task-form button {
    padding: 10px 15px;
    border: none;
    background-color: #007aff;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Formulario de Login */
.login-form {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
}
.login-form input {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.login-form button {
    padding: 12px;
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
.error-msg {
    color: #ff3b30;
    margin-bottom: 15px;
    text-align: center;
}

/* Estilo para el nuevo logo */
.logo {
    height: 50px; /* Puedes ajustar este valor si quieres el logo más grande o pequeño */
    width: auto;
}