:root {
    --notion-bg: #ffffff;
    --notion-text: #37352f;
    --notion-gray: #f1f1ef;
    --notion-border: rgba(55, 53, 47, 0.16);
    --notion-hover: rgba(55, 53, 47, 0.08);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
    background: var(--notion-bg);
    color: var(--notion-text);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navbar */
.navbar {
    width: 100%;
    max-width: 720px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.nav-brand {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--notion-text);
    margin-left: 16px;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 720px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header/Hero */
.hero {
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 18px;
    opacity: 0.6;
    margin-bottom: 24px;
}

/* Dashboard Summary */
.summary-card {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.summary-item {
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--notion-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-item .label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.5;
}

.summary-item .value {
    font-size: 24px;
    font-weight: 600;
}

/* Recorder Section */
.recorder-section {
    margin-bottom: 64px;
}

.recorder-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.meal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    color: var(--notion-text);
    opacity: 0.5;
}

.tab-btn.active {
    background: var(--notion-gray);
    opacity: 1;
}

/* Input Area with Search */
.input-area {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--notion-border);
    font-size: 14px;
    outline: none;
}

.input-group button {
    background: #2383e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

/* Search Results Dropdown */
#search-results {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--notion-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.search-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.search-item:hover {
    background: var(--notion-gray);
}

/* Record List */
.record-list {
    display: flex;
    flex-direction: column;
}

.record-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--notion-gray);
    font-size: 14px;
}

.record-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.meal-tag {
    font-size: 11px;
    background: var(--notion-gray);
    padding: 2px 6px;
    border-radius: 3px;
    opacity: 0.7;
}

.record-calories {
    font-weight: 500;
}

.empty-msg {
    padding: 24px 0;
    opacity: 0.4;
    font-size: 14px;
}

/* Footer */
footer {
    width: 100%;
    max-width: 720px;
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--notion-gray);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.5;
}

footer a {
    color: var(--notion-text);
    text-decoration: none;
    margin-left: 12px;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .summary-card { flex-direction: column; }
}
