* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    background-image: url('https://images.unsplash.com/photo-1739477021967-e14dc3938e56?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    color: #0078d7;
    margin-bottom: 20px;
}

#search-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

#search-input {
    width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
}

#search-form button {
    padding: 10px 20px;
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
}

#search-form button:hover {
    background-color: #005bb5;
}

.gear-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #0078d7;
    transition: transform 0.3s ease;
}

.gear-icon:hover {
    transform: rotate(90deg);
}

.theme-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

.theme-panel.open {
    right: 0;
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ccc;
}

.theme-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
}

.theme-options {
    padding: 15px;
    overflow-y: auto;
    height: calc(100% - 60px);
}

.theme-card {
    margin-bottom: 15px;
    cursor: pointer;
    text-align: center;
}

.theme-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.theme-card p {
    margin: 10px 0 0;
    font-size: 1rem;
}

#widgets-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.widget {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
    pointer-events: auto;
}

.widget-header {
    padding: 10px;
    background-color: #0078d7;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: bold;
    cursor: move;
}

.widget-content {
    padding: 10px;
}

.clock-widget #clock {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-item {
    font-size: 24px;
    cursor: pointer;
    color: #0078d7;
    transition: transform 0.3s ease;
}

.toolbar-item:hover {
    transform: scale(1.1);
}

.toolbar .edit-widgets-btn,
.toolbar .gear-icon {
    font-size: 24px;
    cursor: pointer;
    color: #0078d7;
    transition: transform 0.3s ease;
}

.toolbar .edit-widgets-btn:hover,
.toolbar .gear-icon:hover {
    transform: scale(1.1);
}

.widget-header {
    padding: 10px;
    background-color: #0078d7;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: bold;
    cursor: default;
}

.editing .widget-header {
    cursor: move;
}

.editing .widget {
    border: 2px dashed #0078d7;
}

.toggle-widget-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    margin-left: auto;
}

.toggle-widget-btn:hover {
    color: #ffcc00;
}

#hidden-widgets-container {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

#hidden-widgets-container.visible {
    display: block;
}

.editing #widgets-container .widget {
    border: 2px dashed #0078d7;
}

.editing .toggle-widget-btn {
    pointer-events: auto;
}

.toggle-widget-btn {
    pointer-events: none;
}

.weather-widget #temperature {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.weather-widget #weather-info {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    color: #333;
}