:root {
    --primary-color: #3a7bfd;
    --secondary-color: #28a745; /* For scrape button */
    --background-color: #f0f2f5;
    --card-background: #ffffff;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px var(--shadow-color);
}

#bookmark-form {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#url-input {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px var(--shadow-color);
    flex-grow: 1;
}

#scrape-btn {
    padding: 1rem 1.5rem;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
    background-color: var(--secondary-color);
    border-radius: 0 8px 8px 0;
}

#scrape-btn:hover {
    transform: translateY(-2px);
    background-color: #218838;
}

#status-area {
    text-align: center;
    margin: 1rem 0 2rem 0;
    font-weight: 500;
    color: var(--text-color);
    min-height: 1.5em;
}

#bookmarks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
