﻿:root {
    --bg: #1d2b3f;
    --panel: #2c4260;
    --panel-2: #365173;
    --ink: #e8f1ff;
    --muted: #c2d3ea;
    --accent: #1f6fb8;
    --danger: #d45c5c;
    --border: #1a2638;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Fira Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #243550 0%, #1c2a3f 100%);
    min-height: 100vh;
    padding-bottom: 76px;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    width: min(430px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--panel);
    border-left: 1px solid #0f1724;
    border-right: 1px solid #0f1724;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 70px;
}

.app-header {
    text-align: center;
    padding: 18px 16px 10px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.app-content {
    padding: 10px 16px 20px;
    flex: 1;
}

.app-footer {
    margin: 8px 16px 10px;
    padding: 12px;
    display: grid;
    gap: 8px;
    border: 1px solid #182437;
    border-radius: 12px;
    background: #223550;
}

.app-footer .btn {
    text-align: center;
}

.home-screen {
    display: grid;
    gap: 16px;
    padding: 18px 4px 10px;
}

.home-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.home-buttons {
    display: grid;
    gap: 12px;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: #314862;
    border: 1px solid #1a2a40;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-icon {
    font-size: 18px;
}

h1, h2, h3 {
    margin: 0 0 12px 0;
    font-weight: 600;
}

p {
    margin: 0 0 10px 0;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.card {
    border: 1px solid #1a2a40;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--panel-2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.notify-card {
    display: grid;
    gap: 8px;
}

.notify-title {
    font-weight: 600;
    font-size: 14px;
}

.notify-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notify-hint {
    font-size: 12px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.list-item-actions {
    margin-left: auto;
}

.list-item-title {
    font-weight: 600;
    font-size: 14px;
}

.badge {
    font-size: 12px;
    color: var(--muted);
}

.btn {
    border: 1px solid #162338;
    background: #314862;
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: #155a95;
}

.btn.danger {
    background: var(--danger);
    color: #fff;
    border-color: #a84545;
}

.btn.ghost {
    background: transparent;
}

.btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fab {
    position: fixed;
    right: calc((100vw - 430px) / 2 + 16px);
    bottom: 110px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

button.fab,
a.fab {
    display: grid !important;
}

@media (max-width: 480px) {
    .app-shell {
        width: 100%;
        border: none;
    }
    .fab {
        right: 18px;
        bottom: 110px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

label {
    color: var(--muted);
    font-size: 13px;
}

input[type="text"],
input[type="password"],
textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #c9d6ea;
    font-size: 14px;
    font-family: inherit;
    background: #f2f5fb;
    color: #1b2738;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.notice {
    background: #f6e6c7;
    border: 1px solid #e5c68c;
    color: #6b4b1a;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.inline-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

[data-hoje-list] {
    position: relative;
}

.drag-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #1a2a40;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #3a5678;
    touch-action: none;
}

.drag-item.dragging {
    opacity: 0.9;
    z-index: 5;
    cursor: grabbing;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.drag-placeholder {
    border: 1px dashed #5b7aa1;
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.drag-item input[type="text"] {
    display: none;
    flex: 1;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #c9d6ea;
    font-size: 13px;
    background: #f2f5fb;
    color: #1b2738;
}

.drag-item.is-editing input[type="text"] {
    display: block;
}

.drag-item.is-editing .drag-content {
    display: none;
}

.drag-handle {
    cursor: grab;
    color: var(--muted);
    font-size: 12px;
}

.drag-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.item-date {
    font-size: 11px;
    color: var(--muted);
}

.icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
}

.icon-btn.danger {
    color: #ffb3b3;
}

.inline-actions {
    margin-left: auto;
}

.login-box {
    max-width: 360px;
    margin: 10vh auto 0;
    padding: 26px;
    border: 1px solid #162338;
    border-radius: 14px;
    background: #2f4665;
    box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

.quickbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(430px, 100%);
    background: rgba(36, 53, 80, 0.95);
    border-top: 1px solid #182437;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 6px 8px 8px;
    box-shadow: 0 -10px 24px rgba(0,0,0,0.22);
    z-index: 20;
}

.quick-btn {
    border: 1px solid #1a2a40;
    background: #2f4564;
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 6px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    gap: 4px;
    place-items: center;
}

.quick-btn.is-active {
    background: #3d5b82;
}

.quick-btn.quick-exit {
    background: #2a3e5c;
    color: #ffb8b8;
}

.dragging-body {
    user-select: none;
}
.quick-icon {
    font-size: 14px;
    line-height: 1;
}

.quick-notify {
    color: #98a5b7;
}

.quick-notify.is-enabled {
    color: #6fe08f;
    border-color: #2c7a44;
}
