/* the whole code is pretty self explanatory */
:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --dark-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    min-height: 100vh;
    transition: background 0.3s ease;
}

.dark body {
    background: var(--dark-gradient);
}

#clock {
    font-size: 5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

#greeting {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#searchBar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#searchBar::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchBar:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#settingsModal {
    z-index: 1000;
}

#settingsModal > div {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

[data-bg="dark"] {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

[data-bg="purple"] {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

[data-bg="blue"] {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

input, select {
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

input:focus, select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}

select option {
    background-color: #1a1a1a;
    color: white;
    padding: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

#bgColorPicker {
    background: none;
    border: 2px solid #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: border 0.2s;
}

#bgColorPicker:focus {
    border: 2px solid #6366f1;
}

#bgImageUploadBtn {
    cursor: pointer;
}

#bgImagePreviewContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#bgImagePreview {
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 0.5rem;
    max-width: 100%;
    object-fit: cover;
}

#removeBgImage {
    background: #dc2626;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

#removeBgImage:hover {
    background: #b91c1c;
}