
body {
    background-color: #1F2024;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    position: relative;
    overflow: hidden;
    user-select: none; 
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 15px;
    padding: 10px 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(20, 20, 20, 0.4);
    width: 412px;
    z-index: 2;
}

.material-icons {
    color: #ffffff79;
    margin-right: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    background-color: transparent;
    color: #ffffff;
    font-size: 16px;
    user-select: text;
}
.shortcuts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.shortcut-row {
    display: flex;
    gap: 15px; 
}
.shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(20, 20, 20, 0.4);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
    perspective: 1000px;
    transition: transform 0.2s ease-out;
}

.shortcut.tilted {
    transition: transform 0.1s ease-out;
}

.shortcut img {
    width: 28px;
    height: 28px;
}
.shortcut .material-icons {
    font-size: 24px;
    color: #ffffff;
    display: block;
    margin: 0 auto;
}

.weather-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(20, 20, 20, 0.4);
    width: 200px;
    height: 150px;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    z-index: 2;
    perspective: 1000px;
    transition: transform 0.2s ease-out;
}

.weather-widget.tilted {
    transition: transform 0.1s ease-out;
}

.weather-widget .material-icons {
    font-size: 48px;
    color: inherit;
    display: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#weather-icon {
    display: inline-block;
    color: inherit;
    margin-bottom: 2px;
    opacity: 1;
    transform: scale(1);
}

.weather-info {
    text-align: center;
}

.temperature-container, .condition-container, .location-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.temperature {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.condition {
    font-size: 14px;
    color: #ffffffb3;
    margin-bottom: 5px;
}

.location {
    font-size: 16px;
    color: #ffffffb3;
}

.skeleton-icon, .skeleton-text {
    background-color: #333;
    border-radius: 4px;
    display: inline-block;
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite;
}

.skeleton-text {
    width: 100px;
    height: 20px;
    margin: 5px 0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.settings-icon {
    position: fixed;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;

}

.settings-icon:hover {
    transform: scale(1.1) rotate(15deg);
}

.settings-modal {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 200px;
    max-width: 90%;
    height: auto;
    max-height: 90vh;
    background: rgba(20, 20, 20, 0.5); 
    backdrop-filter: blur(10px); 
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.027);
    display: none;
    z-index: 101;
    overflow-y: auto;
    overflow-x: hidden; 
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(-20px);
    opacity: 0; 
}

.settings-modal.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.settings-content {
    position: relative;
    color: #fff;
}

.settings-content h2 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.option {
    margin-bottom: 10px;
}

.option label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.option select,
.option input[type="text"] {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 14px;
    transition: background 0.3s ease;
}

.option select:focus,
.option input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(5px); 
    outline: none;
}

.option select:focus,
.option select:active {
    background: rgba(255, 255, 255, 0.2);
    outline: none; 
    backdrop-filter: blur(10px); 
}
.option select,
.option select:focus,
.option select:active {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px); 
    color: #fff; 
    border: none; 
    border-radius: 5px; 
    padding: 8px; 
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.option select option {
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(5px); 
    color: #000; 
}
.option input[type="text"] {
    width: 80px; 
}

.option input[type="text"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
}

.option input[type="text"],
.custom-color-input {
    width: 92%; 
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    transition: background 0.3s ease;
}
.hex-input-container {
    display: flex;
    align-items: center;
}

.hex-symbol {
    margin-right: 5px;
    color: #ffffff;
    font-size: 16px;
}
.custom-color-input {
    display: none; 
    margin-top: 10px; 
}

.custom-color-input.show {
    display: block; 
}

.close-modal {
    position: absolute;
    top: 0px; 
    right: 0px; 
    cursor: pointer;
    font-size: 18px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff0000;
}
.tooltip {
    position: absolute;
    background: rgba(20, 20, 20, 0.5); 
    backdrop-filter: blur(5Xpx);
    color: white;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(20, 20, 20, 0.4);
    white-space: nowrap;
    font-size: 14px;
    z-index: 2;
}
.credits {
    margin-top: 10px;
    text-align: center;
}

.credits-link {
    display: block;
    margin-top: -15px; 
    color: #749ff5;
    text-decoration: none;
}

.credits-link:hover {
    text-decoration: underline;
}
.clock-widget {
    display: none;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 15px;
    padding: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(20, 20, 20, 0.4);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 24px;
    text-align: center;
    position: fixed;
    top: 80px; 
    left: 20px;
    z-index: 2;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease, transform 1s ease;
}

.clock-widget.show {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.switch {
    margin-top: 12px;
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: auto;
    margin-right: auto;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: rgba(0, 123, 255, 0.5);
}

input:checked + .slider:before {
    transform: translate(26px, -50%);
}
.date-widget {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 15px;
    padding: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(20, 20, 20, 0.4);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 20px;
    text-align: center;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2;
    opacity: 0; 
    transform: translateX(-100%); 
    transition: opacity 1s ease, transform 1s ease; 
}

.date-widget.show {
    display: block;
    opacity: 1; 
    transform: translateX(0); 
}
.custom-tooltip {
    position: absolute;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 14px;
    z-index: 100; 
    display: none;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.custom-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}
.custom-context-menu {
    position: absolute;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.custom-context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-context-menu ul li {
    padding: 8px 16px;
    color: white;
    cursor: pointer;
}

.custom-context-menu ul li:hover {
    color: #bebebe;
}
.notification .version-title {
    display: block;
    margin-bottom: 10px;
}

.notification {
    display: none; 
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(20, 20, 20, 0.5);
    color: white;
    z-index: 100;
    width: 400px;
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    position: fixed !important;
    transition: background 0.3s ease, border 0.3s ease;
}

.notification:hover {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification ul {
    margin-top: 8px;
    padding-left: 15px;
    list-style-type: disc;
}

.notification button {
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    position: absolute;
    top: 5px;
    right: 10px;
}
.notification button {
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    position: absolute;
    top: 5px;
    right: 10px;
    transition: color 0.3s ease;
}

.notification button:hover::after {
    background: rgba(30, 30, 30, 0.7);  
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 10px;
    padding: 5px;
    content: "Don't show again"; 
    font-size: 12px;
    color: white;
    position: absolute;
    top: -35px; 
    right: -10px;
    white-space: nowrap;
}
.quick-notes-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    width: 40px; 
    transition: width 0.3s ease;
}

.quick-notes-wrapper.expanded {
    width: 250px;
}

.quick-notes-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    cursor: pointer;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: background 0.3s ease, opacity 0.5s ease;
    position: relative;
    overflow: hidden; 
    padding: 0 10px;
    opacity: 0;
}

.quick-notes-button:hover {
    background: rgba(20, 20, 20, 0.9); 
}

#notes-icon {
    font-size: 24px;
    color: #ffffffb3;
    transition: opacity 0.3s ease;
    margin: 0 auto; 
}

#new-note-input {
    display: none; 
    flex: 1; 
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: none; 
    color: white;
    font-size: 14px;
    transition: opacity 0.3s ease;
    border-radius: 8px; 
}

.quick-notes-wrapper.expanded #notes-icon {
    opacity: 0;
}

.quick-notes-wrapper.expanded #new-note-input {
    display: block; 
    opacity: 1;
}
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-notes-modal {
    position: fixed;
    bottom: 80px; 
    left: 20px;
    width: 250px;
    max-height: 400px; 
    min-height: 20px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;
    display: none; 
    z-index: 101;
    animation: slideUpFadeIn 0.3s ease; 
}

.quick-note-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0;
    margin-bottom: 8px;
    animation: slideUpFadeIn 0.3s ease;
}

.quick-note-item:last-child {
    margin-bottom: 0;
}
.pin-button {
    display: none;
    background: rgba(255, 255, 255, 0);
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 1px;
    margin-left: 8px; 
    transition: background 0.3s;
}

.quick-note-item:hover .pin-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0); 
}
.quick-note-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px; 
    max-width: 20px;
    margin-right: 10px;
    border: 2px solid white;
    border-radius: 6px;
    outline: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.quick-note-item input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 4px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.quick-note-item input[type="checkbox"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.quick-note-item label {
    color: white;
    flex: 1;
    margin: 0;
    white-space: normal; 
    word-wrap: break-word; 
    font-size: 0.9em; 
    font-family: 'Playfair Display', sans-serif, monospace;
}
.quick-note-item:hover label {
    color: #ccc; 
}
.quick-note-item.fade-out {
    animation: fadeOutAnimation 2s forwards;
}

@keyframes fadeOutAnimation {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
#pinned-messages-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: left;
    display: flex;
    flex-direction: column-reverse;
    gap: 5px;
}

#pinned-messages-container .pinned-note {
    display: inline-flex;
    align-items: center;
    color: white;
    font-size: 1rem;
    text-align: left;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 15px;
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: fit-content;
}
#pinned-messages-container .pinned-note .emoji-selector {
    margin-right: 5px; 
}

@media (min-width: 1200px) {
    #pinned-messages-container {
        max-width: 900px;
    }
}
.emoji-menu {
    position: absolute;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    padding: 5px;
    border-radius: 10px;
    display: flex;
    gap: 5px;
    margin-top: 5px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(20, 20, 20, 0.4);
}
#emoji-selector-container {
    position: absolute;
    z-index: 1001;
    top: 100%; 
    left: 0;
    display: none; 
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.027);
}
.emoji-menu span {
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: transform 0.2s ease; 
}

.emoji-menu span:hover {
    transform: scale(1.2); 
}
.emoji-selector.blinking {
    animation: blinking-animation 1s infinite;
}

@keyframes blinking-animation {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.glow {
    animation: glow-animation 3s infinite alternate ease-in-out;
    box-shadow: inset 0 0 8px rgba(255, 239, 186, 0.6), inset 0 0 12px rgba(255, 223, 150, 0.4);
}

@keyframes glow-animation {
    0% { 
        box-shadow: inset 0 0 5px rgba(255, 239, 186, 0.4), inset 0 0 10px rgba(255, 223, 150, 0.3); 
    }
    50% { 
        box-shadow: inset 0 0 6px rgba(255, 239, 186, 0.5), inset 0 0 11px rgba(255, 223, 150, 0.4);
    }
    100% { 
        box-shadow: inset 0 0 8px rgba(255, 239, 186, 0.6), inset 0 0 12px rgba(255, 223, 150, 0.4); 
    }
}
.emoji-selector.celebration {
    animation: celebration-bounce 1s infinite ease-in-out;
}

@keyframes celebration-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.emoji-selector.focus-ring {
    position: relative;
    z-index: 1;
}

.emoji-selector.focus-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px; 
    height: 30px; 
    background: radial-gradient(circle, rgba(0, 123, 255, 0.5), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0.8;
    z-index: -1;
    animation: focus-ring-pulse 2s infinite linear;
}

@keyframes focus-ring-pulse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.8;
    }
}
.pulse {
    position: relative;
    z-index: 1;
}

.pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px; 
    height: 20px;
    background: radial-gradient(circle at center, rgba(255, 69, 0, 0.7), rgba(255, 140, 0, 0.3), transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse-glow 1.5s infinite alternate;
}

@keyframes pulse-glow {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
        filter: blur(8px);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
        filter: blur(12px);
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.8;
        filter: blur(16px);
    }
}
/* Floating Bounce Effect for 📅 */
.emoji-selector.wave {
    animation: floating-bounce 1.8s infinite ease-in-out;
}

@keyframes floating-bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}
.blob-c {
    min-height: 100vh;
    overflow: hidden;
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: blur(40px);
}

.shape-blob {
    background: #26C3F9;
    border-radius: 40% 50% 30% 40%;
    animation: transform 18s ease-in-out infinite both alternate,
               movement_one 12s ease-in-out infinite both,
               random_movement 20s ease-in-out infinite,
               fade_in 0.5s ease-in forwards;
    opacity: 0;
    position: absolute;
}

.shape-blob.one {
    background: #0066CC;
    height: 180px;
    width: 240px;
    transform: translate(-180px, -180px) rotate(-180deg);
    animation: transform 8s ease-in-out infinite alternate, 
               movement_one 20s ease-in-out infinite alternate, 
               random_move 18s ease-in-out infinite alternate, 
               fade_in 0.5s ease-in forwards 0.1s;
}

.shape-blob.two {
    background: #3399FF;
    height: 160px;
    width: 210px;
    transform: translate(230px, -230px) rotate(-180deg);
    animation: transform 10s ease-in-out infinite alternate, 
               movement_two 18s ease-in-out infinite alternate, 
               random_move 22s ease-in-out infinite alternate, 
               fade_in 0.5s ease-in forwards 0.15s;
}

.shape-blob.three {
    background: #33CCFF;
    height: 140px;
    width: 190px;
    transform: translate(-250px, 250px) rotate(-180deg);
    animation: transform 7s ease-in-out infinite alternate, 
               movement_three 23s ease-in-out infinite alternate, 
               wave_movement 19s ease-in-out infinite alternate, 
               fade_in 0.5s ease-in forwards 0.2s;
}

.shape-blob.four {
    background: #00BFFF;
    height: 120px;
    width: 160px;
    transform: translate(280px, 280px) rotate(-180deg);
    animation: transform 17s ease-in-out infinite alternate, 
               movement_four 20s ease-in-out infinite alternate, 
               bounce_movement 25s ease-in-out infinite alternate, 
               fade_in 0.5s ease-in forwards 0.25s;
}

.shape-blob.five {
    background: #0099FF;
    height: 100px;
    width: 140px;
    transform: translate(-330px, 130px) rotate(-180deg);
    animation: transform 12s ease-in-out infinite alternate, 
               movement_one 18s ease-in-out infinite alternate, 
               random_move 16s ease-in-out infinite alternate, 
               fade_in 0.5s ease-in forwards 0.3s;
}

.shape-blob.six {
    background: #66CCFF;
    height: 90px;
    width: 120px;
    transform: translate(330px, -130px) rotate(-180deg);
    animation: transform 5s ease-in-out infinite alternate, 
               movement_two 14s ease-in-out infinite alternate, 
               random_move 21s ease-in-out infinite alternate, 
               fade_in 0.5s ease-in forwards 0.35s;
}

.shape-blob.seven {
    background: #99CCFF;
    height: 80px;
    width: 110px;
    transform: translate(-380px, 230px) rotate(180deg);
    animation: transform 11s ease-in-out infinite alternate, 
               float_movement 18s ease-in-out infinite alternate, 
               fade_in 0.5s ease-in forwards 0.4s;
}

.shape-blob.eight {
    background: #1E90FF;
    height: 70px;
    width: 100px;
    transform: translate(380px, 230px) rotate(-180deg);
    animation: transform 14s ease-in-out infinite alternate, 
               movement_four 9s ease-in-out infinite alternate, 
               random_move 17s ease-in-out infinite alternate, 
               fade_in 0.5s ease-in forwards 0.45s;
}

.shape-blob.nine {
    background: #4682B4;
    height: 60px;
    width: 80px;
    transform: translate(-430px, -330px) rotate(-180deg);
    animation: transform 9s ease-in-out infinite alternate, 
               movement_one 22s ease-in-out infinite alternate, 
               random_move 25s ease-in-out infinite alternate, 
               fade_in 0.5s ease-in forwards 0.5s;
}

@keyframes transform {
    0%, 100% { border-radius: 33% 67% 70% 30% / 30% 40% 70% 70%; }
    20% { border-radius: 37% 63% 51% 49% / 37% 35% 35% 63%; }
    40% { border-radius: 36% 64% 64% 36% / 64% 48% 52% 26%; }
    60% { border-radius: 37% 63% 51% 49% / 30% 30% 70% 73%; }
    80% { border-radius: 40% 60% 42% 58% / 51% 51% 49% 59%; }
}

@keyframes movement_one {
    0%, 100% { transform: none; }
    50% { transform: translate(50%, 20%) rotateY(10deg) scale(1); }
}

@keyframes movement_two {
    0%, 500% { transform: none; }
    50% { transform: translate(50%, 20%) rotate(-200deg) scale(1.3); }
}

@keyframes random_movement {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-5px, 10px) rotate(10deg); }
    40% { transform: translate(10px, -5px) rotate(-10deg); }
    60% { transform: translate(-10px, 15px) rotate(5deg); }
    80% { transform: translate(5px, -10px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes wave_movement {
    0% { transform: translate(-250px, 250px) rotate(0deg) scale(1); }
    10% { transform: translate(-260px, 240px) rotate(-10deg) scale(1.05); }
    20% { transform: translate(-240px, 260px) rotate(15deg) scale(1.1); }
    30% { transform: translate(-250px, 240px) rotate(-20deg) scale(1.15); }
    40% { transform: translate(-260px, 250px) rotate(10deg) scale(1.2); }
    50% { transform: translate(-240px, 240px) rotate(-15deg) scale(1.25); }
    60% { transform: translate(-250px, 260px) rotate(20deg) scale(1.2); }
    70% { transform: translate(-260px, 240px) rotate(-10deg) scale(1.15); }
    80% { transform: translate(-240px, 250px) rotate(10deg) scale(1.1); }
    90% { transform: translate(-250px, 260px) rotate(-5deg) scale(1.05); }
    100% { transform: translate(-250px, 250px) rotate(0deg) scale(1); }
}
@keyframes float_movement {
    0% { transform: translate(-380px, 230px) rotate(180deg) scale(1); }
    15% { transform: translate(-370px, 225px) rotate(182deg) scale(1.05); }
    30% { transform: translate(-390px, 240px) rotate(178deg) scale(1.1); }
    45% { transform: translate(-365px, 235px) rotate(185deg) scale(1.15); }
    60% { transform: translate(-380px, 250px) rotate(175deg) scale(1.2); }
    75% { transform: translate(-370px, 220px) rotate(180deg) scale(1.1); }
    90% { transform: translate(-385px, 240px) rotate(178deg) scale(1.05); }
    100% { transform: translate(-380px, 230px) rotate(180deg) scale(1); }
}

@keyframes bounce_movement {
    0% { transform: translate(280px, 280px) rotate(0deg) scale(1); }
    15% { transform: translate(282px, 275px) rotate(-2deg) scale(1.02); }
    30% { transform: translate(278px, 285px) rotate(3deg) scale(0.98); }
    45% { transform: translate(284px, 278px) rotate(-3deg) scale(1.01); }
    60% { transform: translate(276px, 282px) rotate(2deg) scale(1.03); }
    75% { transform: translate(281px, 276px) rotate(-1deg) scale(0.99); }
    90% { transform: translate(279px, 283px) rotate(1deg) scale(1.01); }
    100% { transform: translate(280px, 280px) rotate(0deg) scale(1); }
}
@keyframes fade_in {
    0% { opacity: 0; }
    100% { opacity: 0.7; }
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    margin: 10% auto;
    padding: 30px;
    width: 400px;
    max-width: 90%;
    border-radius: 12px;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 20px;
}

.close {
    color: #bbb;
    font-size: 24px;
    cursor: pointer;
    align-self: flex-end;
}

.modal-content label {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    align-self: flex-start;
}

.modal-content input[type="url"] {
    width: 100%;
    max-width: 95%; 
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    text-align: center; 
}

.modal-content input[type="checkbox"] {
    margin-right: 10px;
}

.modal-content button {
    padding: 10px 20px; 
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: center; 
    width: auto; 
}

.modal-content button:hover {
    background: rgba(255, 255, 255, 0.5);
}
.custom-search-engine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 2px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.search-engine-favicon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    pointer-events: none; 
}
.search-engine-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}
.show-checkbox {
    font-size: 20px; 
    color: #444; 
    background: rgba(51, 51, 51, 0.8); 
    border: 1px solid rgba(68, 68, 68, 0.8); 
    border-radius: 4px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    box-sizing: border-box;
    cursor: pointer;
    transition: color 0.2s;
}

.show-checkbox.active {
    color: #fff;
}

.delete-icon {
    font-size: 20px;
    color: #fff;
    background: rgba(51, 51, 51, 0.8); 
    border: 1px solid rgba(68, 68, 68, 0.8);
    border-radius: 4px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    box-sizing: border-box;
    cursor: pointer;
}
.icon-group {
    display: flex;
    align-items: center;
    gap: 1px;
}
.button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px; 
}

.add-search-engine-button {
    background: #333;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
    display: inline-block;
}

.add-search-engine-button:hover {
    background: #555;
}
.secondary-search-bars-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse; 
    gap: 5px; 
}

.secondary-search-bar {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.027);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 5px 10px;
    color: #ffffff;
    width: 150px;
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 1s ease forwards; 
}

.secondary-search-bar img.secondary-search-favicon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}
.secondary-search-favicon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    pointer-events: none; 
}

.secondary-search-bar input[type="text"] {
    border: none;
    outline: none;
    font-size: 12px;
    padding: 3px;
    flex: 1;
    color: #ffffff;
    background: transparent;
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
/* custom background image (R2) — behind everything, above the body colour */
#bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    pointer-events: none;
}

/* with a photo background the animated blobs would only smear it */
body.has-bg .blob-c {
    display: none;
}

/* settings rows added by patch.py */
#bg-upload-btn, #bg-remove-btn { margin-right: 8px; }
#sync-status { font-size: 13px; }
