:root {
    --primary: #007AFF; /* Apple Blue */
    --bg: #F2F2F7;
    --card: #FFFFFF;
    --text: #1C1C1E;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 15px;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
}

header h1 { text-align: center; font-weight: 700; }

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input, button {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #C7C7CC;
    font-size: 16px; /* Prevence zoomování na iPhone */
}

input { flex-grow: 1; }

button {
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* Karty kategorií */
.category-card {
    background: var(--card);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E5E5EA;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Položky úkolů */
.todo-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F2F2F7;
}

.todo-info { display: flex; flex-direction: column; }
.todo-meta { font-size: 0.85em; color: #8E8E93; margin-top: 4px; }
.tag {
    background: #E5E5EA;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-left: 5px;
}

/* Modální okno */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center; justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Styl pro dokončený úkol */
.todo-item {
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #8E8E93;
}

.todo-item.completed {
    opacity: 0.6;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
}

/* Karta pro denní plán */
.today-card {
    background: #E5E5EA;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary);
}

.btn-del {
    background: #FF3B30;
    padding: 5px 10px;
}
