:root {
    --bg: #0f1115;
    --surface: #1a1d24;
    --surface-2: #22262f;
    --text: #e8e9ec;
    --text-muted: #9aa0ab;
    --accent: #5b8def;
    --danger: #e2555b;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.navbar {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid #2a2e37;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}

.navbar a:hover,
.navbar a:active {
    background: var(--surface-2);
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.25rem;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn-danger {
    background: var(--danger);
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.entry-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.entry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
}

.entry-info {
    display: flex;
    flex-direction: column;
}

.entry-weight {
    font-size: 1.25rem;
    font-weight: 700;
}

.entry-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.entry-remove-form button {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.entry-remove-form button:hover {
    background: var(--danger);
    color: #fff;
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="number"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #2a2e37;
    background: var(--surface-2);
    color: var(--text);
    font-size: 1rem;
}

input:focus {
    outline: 2px solid var(--accent);
}
