@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-color: #fafafa;
    --text-primary: #111;
    --text-secondary: #666;
    --text-tertiary: #999;
    --accent-color: #000;
    --border-color: #eaeaea;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.06);
    --radius-sm: 6px;
    --radius-md: 12px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(200, 200, 200, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(200, 200, 200, 0.1) 0px, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 1.5rem;
    /* More understated */
    font-weight: 600;
    letter-spacing: -0.03em;
}

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

#unified-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2rem 0;
    padding: 0.75rem 0;
}

.nav-group {
    display: flex;
    gap: 0.5rem;
}

.nav-tab {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    border: none;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: #f0f0f0;
}

.nav-tab.active {
    background: #e5e5e5;
    color: var(--text-primary);
    font-weight: 600;
}

.nav-tab .count {
    margin-left: 0.4rem;
    opacity: 0.6;
    font-size: 0.8rem;
    font-weight: 400;
}

.nav-tab.active .count {
    opacity: 0.8;
}

nav {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

nav a {
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

nav a:hover {
    color: var(--text-primary);
}

nav a.active {
    background: var(--text-primary);
    color: #fff;
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

/* Lists */
.item-list {
    list-style: none;
}

.item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
}

.item:nth-child(1) {
    animation-delay: 0.05s;
}

.item:nth-child(2) {
    animation-delay: 0.1s;
}

.item:nth-child(3) {
    animation-delay: 0.15s;
}

.item:nth-child(4) {
    animation-delay: 0.2s;
}

.item:nth-child(5) {
    animation-delay: 0.25s;
}

.item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.item-meta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.item-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.4rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-color);
}

/* Buttons */
.btn-minimal {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-minimal:hover {
    border-color: #bbb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-minimal:active {
    transform: translateY(0);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.modal input,
.modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fcfcfc;
    text-align: left;
}

.modal input:focus,
.modal textarea:focus {
    border-color: var(--text-primary);
    background: #fff;
}

/* Utilities */
.hidden {
    display: none !important;
}

.category-header {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

footer {
    margin-top: 5rem;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--text-tertiary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}