* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    width: 100%;
    flex-grow: 1;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 10px;
}

.search-header h1 span {
    color: #2c6bed;
}

.search-header p {
    color: #666;
    font-size: 16px;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #2c6bed;
    box-shadow: 0 0 10px rgba(44, 107, 237, 0.2);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 8px;
    background-color: #2c6bed;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #1a56d6;
}

.search-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-option {
    background: none;
    border: none;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.2s;
}

.search-option:hover {
    background-color: #eee;
}

.search-option.active {
    color: #2c6bed;
    font-weight: 500;
    border-bottom: 2px solid #2c6bed;
}

.search-shortcuts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.shortcut-card {
    background-color: white;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 110px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.shortcut-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.shortcut-card i {
    font-size: 24px;
    color: #2c6bed;
    margin-bottom: 8px;
    display: block;
}

.shortcut-card span {
    font-size: 13px;
    color: #555;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}

.custom-settings {
    margin-top: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
}

.settings-toggle {
    background: none;
    border: none;
    color: #2c6bed;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.settings-header h3 {
    color: #333;
    font-size: 18px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.settings-option {
    margin-bottom: 15px;
}

.settings-option label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.settings-option select, .settings-option input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-history {
    margin-top: 20px;
    display: none;
}

.search-history h3 {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.history-list {
    list-style: none;
}

.history-item {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-query {
    color: #333;
    cursor: pointer;
}

.history-query:hover {
    color: #2c6bed;
}

.history-delete {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
}

.history-delete:hover {
    color: #f44336;
}

.clear-history {
    background: none;
    border: none;
    color: #2c6bed;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    margin-top: auto;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #2c6bed;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Dark mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .search-header h1 {
    color: #f0f0f0;
}

body.dark-mode .search-header p {
    color: #aaa;
}

body.dark-mode .search-input {
    background-color: #333;
    border-color: #444;
    color: #f0f0f0;
}

body.dark-mode .search-option {
    color: #aaa;
}

body.dark-mode .search-option.active {
    color: #5a8eff;
    border-bottom-color: #5a8eff;
}

body.dark-mode .shortcut-card {
    background-color: #333;
}

body.dark-mode .shortcut-card i {
    color: #5a8eff;
}

body.dark-mode .shortcut-card span {
    color: #ddd;
}

body.dark-mode .settings-toggle,
body.dark-mode footer a {
    color: #5a8eff;
}

body.dark-mode .custom-settings {
    background-color: #333;
}

body.dark-mode .settings-header h3 {
    color: #f0f0f0;
}

body.dark-mode .settings-option label {
    color: #ddd;
}

body.dark-mode .settings-option select,
body.dark-mode .settings-option input {
    background-color: #444;
    border-color: #555;
    color: #f0f0f0;
}

body.dark-mode .history-item {
    border-bottom-color: #444;
}

body.dark-mode .history-query {
    color: #ddd;
}

body.dark-mode .clear-history {
    color: #5a8eff;
}

body.dark-mode footer {
    color: #aaa;
}

/* Responsive styles */
@media (max-width: 600px) {
    .container {
        margin: 20px auto;
    }
    
    .search-header h1 {
        font-size: 32px;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .search-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .search-shortcuts {
        gap: 8px;
    }

    .shortcut-card {
        width: 90px;
        padding: 10px;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
    }
}