/* Shared style for TODO app - RTL, mobile-friendly, matches bills-manager look/feel */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background: #0f1720;
    color: #e6edf3;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
}
header.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #161f2b;
    border-bottom: 1px solid #253243;
    position: sticky;
    top: 0;
    z-index: 10;
}
header.topbar h1 {
    font-size: 20px;
    margin: 0;
}
header.topbar a.back {
    color: #7db3ff;
    text-decoration: none;
    font-size: 15px;
}
.card {
    background: #161f2b;
    border: 1px solid #253243;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}
.big-link {
    display: block;
    background: #1c2a3d;
    border: 1px solid #2c3e56;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #e6edf3;
}
.big-link .title { font-size: 18px; font-weight: 600; }
.big-link .sub { font-size: 13px; color: #93a3b8; margin-top: 4px; }
.big-link.shopping { border-color: #2f6b3f; background: linear-gradient(135deg,#16321f,#1c2a3d); }
form.add-form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
textarea, input[type=text] {
    flex: 1;
    background: #0f1720;
    border: 1px solid #2c3e56;
    color: #e6edf3;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    resize: none;
}
textarea { min-height: 46px; }
button {
    background: #2f81f7;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 16px;
    cursor: pointer;
}
button.secondary {
    background: #253243;
}
.view-toggle {
    margin: 4px 0 16px;
}
.view-toggle button {
    width: 100%;
    height: 40px;
}
button.danger {
    background: #7a2b2b;
}
.mic-btn {
    background: #253243;
    border: 1px solid #2c3e56;
    border-radius: 10px;
    width: 46px;
    min-width: 46px;
    font-size: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mic-btn.recording {
    background: #7a2b2b;
    border-color: #b23b3b;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(178,59,59,0.6); }
    70% { box-shadow: 0 0 0 8px rgba(178,59,59,0); }
    100% { box-shadow: 0 0 0 0 rgba(178,59,59,0); }
}
.category-block {
    margin-bottom: 18px;
}
.category-title {
    font-size: 14px;
    font-weight: 700;
    color: #7db3ff;
    margin-bottom: 6px;
    padding-right: 4px;
}
.item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #161f2b;
    border: 1px solid #253243;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}
.item-row.done { opacity: 0.45; text-decoration: line-through; }
.item-row .txt { flex: 1; font-size: 16px; }
.checkbox {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #2f81f7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
    color: transparent;
    font-size: 15px;
}
.checkbox.checked {
    background: #2f81f7;
    color: white;
}
.del-btn {
    background: none;
    border: none;
    color: #7a8699;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}
.empty {
    color: #7a8699;
    text-align: center;
    padding: 30px 0;
}
.footer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.small-link { color: #93a3b8; font-size: 13px; text-decoration: none; }
