body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    transition: background-color 0.5s, color 0.5s, background-image 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-image: none;
}

body.dark {
    background-color: #333;
    color: #ffffff;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-top-width: 0dvi;
}

.header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
    position: absolute;
    top: 10px;
}

.icon-button {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
    padding: 10px;
    color: #4285f4;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
}

.title {
    font-size: 32px;
    font-weight: bold;
    color: #4285f4;
    margin-bottom: 20px;
    font-family: 'Product Sans', Arial, sans-serif;
    text-align: center;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 10px;
}

.search-bar {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 0;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar:focus {
    border-color: #4285f4;
}

.search-button {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 24px;
    background-color: #4285f4;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.search-button:hover {
    background-color: #357ae8;
}

.bookmark-btn {
    background-color: #34a853;
    color: white;
    border-radius: 50%;
    margin-left: 0;
    padding: 10px;
    cursor: pointer;
    border: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.bookmark-btn:hover {
    background-color: #2c8c45;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.overlay.hidden {
    display: none;
}

.settings {
    background: #f1f1f1;
    padding: 20px;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
    width: 90%;
    max-width: 500px;
}

.settings label {
    margin-bottom: 10px;
}

.settings .bookmarks-list {
    margin-top: 10px;
}

.bookmark-item {
    display: block;
    margin-bottom: 5px;
    color: #4285f4;
    text-decoration: none;
}

#dropzone {
    width: 100%;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #aaa;
    transition: background-color 0.3s ease;
}

#dropzone.dragging {
    background-color: #eee;
}

input[type="file"] {
    display: none;
}

body.low-animation .navbar,
body.low-animation .settings {
    transition: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .header {
        padding-right: 10px;
    }
    
    .title {
        font-size: 24px;
    }

    .search-bar {
        font-size: 12px;
    }

    .search-button {
        font-size: 12px;
    }
}
