:root {
    --bg-color: #ffffff;
    --header-border: #e0e0e0;
    --search-bg: #f1f3f4;
    --text-main: #202124;
    --shadow: 0 1px 2px 0 rgba(60,64,67,0.302), 0 2px 6px 2px rgba(60,64,67,0.149);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    color: var(--text-main);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.product-name {
    font-size: 22px;
    color: #5f6368;
}

.search-container {
    flex-grow: 0.6;
    display: flex;
    justify-content: center;
}

#search-bar {
    width: 100%;
    max-width: 720px;
    height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background-color: var(--search-bg);
    font-size: 16px;
}

#search-bar:focus {
    background-color: white;
    box-shadow: 0 1px 1px rgba(65,69,73,0.3), 0 1px 3px rgba(65,69,73,0.15);
    outline: none;
}

.header-spacer {
    min-width: 150px;
}

/* Layout */
.app-container {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 240px;
    padding-top: 10px;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 0 25px 25px 0;
    color: #5f6368;
    font-weight: 500;
}

.menu-item:hover {
    background-color: #f1f3f4;
}

.menu-item.active {
    background-color: #feefc3;
    color: #202124;
}

/* Main content */
.main-content {
    flex-grow: 1;
}

/* Note Input */
#input-area {
    margin: 32px auto;
    width: 90%;
    max-width: 600px;
}

#keep-form {
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--header-border);
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}

#keep-form input,
#keep-form textarea {
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 0;
    resize: none;
}

#note-title {
    font-weight: 500;
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

#submit-btn {
    background: none;
    border: none;
    padding: 8px 24px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    color: #5f6368;
}

#submit-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Notes grid */
#notes-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.note-card {
    border: 1px solid var(--header-border);
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s;
    word-wrap: break-word;
    height: fit-content;
}

.note-card:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.note-title-display {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.note-text-display {
    font-size: 1rem;
    color: #3c4043;
}