:root {
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-color: #ffffff;
    --accent-color: #4CAF50;
    --danger-color: #f44336;
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    /* Prevent text selection on touch */
}

#status-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    z-index: 1000;
    display: none;
}

.status-error {
    background-color: #f44336;
    color: white;
}

.status-success {
    background-color: #4CAF50;
    color: white;
}

.status-info {
    background-color: #2196F3;
    color: white;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* Fixed screen size */
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    /* Larger title */
    margin-left: 10px;
}

#date-display {
    font-size: 1.5rem;
    /* Larger date */
    margin-right: 10px;
}

#children-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    /* Tighter gap to fit 5 cols, but cards will be fuller */
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    /* Space for button */
}

.child-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 10px;
    /* Slightly less padding to maximize content */
    display: flex;
    flex-direction: column;
    border-top: 8px solid transparent;
    /* Thicker border */
}

.child-header {
    display: flex;
    flex-direction: column;
    /* Stack name and age */
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.child-name {
    font-size: 1.8rem;
    /* Much larger names */
    font-weight: 700;
}

.child-age {
    font-size: 1rem;
    opacity: 0.7;
}

.task-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.task-item {
    background: rgba(255, 255, 255, 0.08);
    /* Higher contrast */
    margin-bottom: 12px;
    padding: 15px;
    /* Larger touch area */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    /* Center content */
    text-align: center;
    /* Center text */
    transition: all 0.3s ease;
}

.task-desc {
    font-size: 1.3rem;
    /* Larger task text */
    line-height: 1.4;
    margin-bottom: 15px;
    /* Space between text and button */
    width: 100%;
}

.task-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-check {
    width: 60px;
    /* Even larger buttons */
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-done {
    background-color: var(--accent-color);
    color: white;
}

.btn-todo {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-panel {
    position: fixed;
    /* Fixed at bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#btn-generate {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 15px 60px;
    /* Wider button */
    font-size: 1.8rem;
    /* Larger text */
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.6);
    transition: transform 0.2s;
}

#btn-generate:active {
    transform: scale(0.95);
}

.admin-info {
    position: absolute;
    right: 0;
    font-size: 0.8rem;
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}