:root {
    --site-font: 'Inter', sans-serif; 
    --accent-color: #dce4e6;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--site-font);
}
body {
    background-color: #20212400;
    color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color 0.5s ease, color 0.5s ease, opacity 0.3s ease; /* Animasyon süresi ve türü */
    overflow: hidden;
}
body.light {
    background-color: #fff;
    color: #000;
    transition: background-color 0.5s ease, color 0.5s ease, opacity 0.3s ease; /* Açık tema için de animasyon */
}
body.dark {
    background-color: #202124;
    color: #e8eaed;
    transition: background-color 0.5s ease, color 0.5s ease, opacity 0.3s ease; /* Açık tema için de animasyon */
}
body.light .search-bar input,
body.light .buttons button,
body.light .favorite-item,
body.light #menuPanel,
body.light #accountModalInner,
body.light .weather-widget {
    background-color: #f1f3f4;
    color: #000;
    transition: background-color 0.5s ease, color 0.5s ease; /* Alt bileşenler için de geçiş */
}
body.light .favorite-item a { color: #000; }
body.light .favorite-item img {
    background: rgba(0, 0, 0, 0);
}
body.light #suggestions {
    background-color: #f1f3f4;
    color: #000;
}
body.light #suggestions li:hover {
    background-color: #e0e0e0;
}
body.light #suggestions li.selected {
    background-color: #d1d1d1;
}
body.light .logo .logo-name {
    color: #000 !important;
}
.weather-widget {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgb(48, 49, 52);
    color: #e8eaed;
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid transparent;
    font-size: 14px;
    font-family: var(--site-font);
    max-width: 250px;
    z-index: 1001;
    white-space: normal;
    word-wrap: break-word;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}
body.light .weather-widget {
    background-color: rgba(241, 243, 244, 0.9);
    color: #000;
}
.weather-widget:hover {
    border: 1px solid var(--accent-color);
}
body.light .weather-widget:hover {
    border: 1px solid var(--accent-color);
}
.weather-widget.hidden { display: none; }
.weather-error {
    font-size: 12px;
    color: #ff4444;
    text-align: center;
    padding: 5px 10px;
    background-color: rgba(245, 40, 145, 0);
    border-radius: 5px;
    display: inline-block;
}
body.light .weather-error {
    background-color: rgba(255, 68, 68, 0);
    color: #cc0000;
}
#voiceSearchModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: rgb(48, 49, 52);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10010;
    color: #e8eaed;
    width: 320px;
    text-align: center;
    animation: scaleIn 0.18s ease-out forwards;
}
body.light #voiceSearchModal {
    background-color: rgb(255, 255, 255);
    color: #000;
}
#voiceSearchModal.show {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
#voiceTranscript {
    width: 100%;
    min-height: 0px;
    max-height: 200px;
    padding: 0.75rem;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 20px;
    background: rgb(48, 49, 52);
    color: #fff;
    margin-bottom: 10px;
    font-size: 1rem;
}
body.light #voiceTranscript {
    color: #000000;
    background: rgba(241, 243, 244, 0.9);
}
#voiceSearchModal .accent {
    color: white;
    background-color: #202124;
    padding: 0.5rem 2rem;
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.5rem;
}
#voiceSearchModal .accent:hover {
    transform: scale(1.08);
    background-color: #202124;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
body.light #voiceSearchModal .accent:hover {
    background-color: #e0e0e0;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
#voiceIcon {
    color: white;
    transition: color 0.3s ease;
}
#voiceIcon.active {
    color: red;
}
.voice-icon.active {
    color: red;
}
.accent {
    background-color: #4CAF99;
    color: white;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}
.info-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(48, 49, 52);
    color: #e8eaed;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
}
body.light .info-bar {
    background-color: rgba(241, 243, 244, 0.9);
    color: #000;
}
.info-bar.hidden { display: none; }
.url-sidebar {
    position: fixed;
    width: 200px;
    height: calc(100vh - 40px);
    background-color: rgba(48, 49, 52, 0.9);
    color: #e8eaed;
    padding: 10px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
    overflow-y: auto;
}
.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1000;
}
.logo {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo.hidden { display: none; }
.logo img {
    max-height: 80px;
    cursor: pointer;
}
.logo .logo-name {
    font-size: 36px;
    font-weight: bold;
    color: #e8eaed;
}
.search-bar {
    width: 100%;
    max-width: 580px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1002;
}
.search-bar input {
    width: 100%;
    padding: 14px 50px 14px 44px;
    border-radius: 25px;
    border: none;
    background-color: #303134;
    color: #e8eaed;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    will-change: transform, box-shadow;
}
.search-bar input:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
body.light .search-bar input {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
body.light .search-bar input:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.icon-left, .icon-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}
.icon-left {
    left: 12px;
}
.icon-right {
    right: 12px;
}
.icon-left img, .icon-right img {
    width: 24px;
    height: 24px;
}
.buttons {
    margin-bottom: 0;
    z-index: 1001;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.buttons button {
    background-color: #303134;
    color: #e8eaed;
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    will-change: transform, box-shadow;
}
.buttons button:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}
.buttons button:hover {
    transform: scale(1.08);
    background-color: #303134;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
body.light .buttons button:hover {
    background-color: #f1f3f4;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
.favorites {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 19px;
    flex-wrap: wrap;
    z-index: 1000;
    position: relative;
}
.favorites.hidden { display: none; }
.favorite-item {
    border-radius: 40%;
    width: 60px;
    height: 60px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: move;
    background-color: #3a3b3c;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.favorite-item:hover, #addFavoriteBtn:hover {
    transform: scale(1.08);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
}
.favorite-item:hover a, #addFavoriteBtn:hover {
    color: #ffffff !important;
}
/* Fix: In light mode, keep favorite name black on hover */
body.light .favorite-item:hover a,
body.light #addFavoriteBtn:hover {
    color: #000 !important;
}
.favorite-item:active, #addFavoriteBtn:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}
.favorite-item:hover span {
    opacity: 1;
}
.favorite-item img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(245, 40, 145, 0);
    margin-top: 20px;
}
.favorite-item span { 
    position: absolute;
    top: 40px;
    right: 19px;
    background: rgba(245, 40, 145, 0);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}
.favorite-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.favorite-item a img {
    margin-bottom: 6px;
}
.favorite-item a span, .favorite-item a {
    position: relative;
    top: 12px;
}
.favorite-item:hover span {
    opacity: 1;
}
.favorite-item a {
    text-decoration: none;
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #e8eaed;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#addFavoriteBtn {
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 40%;
    width: 60px;
    height: 60px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    will-change: transform, box-shadow;
    margin-left: 8px;
    margin-right: 8px;
}
#addFavoriteModalBtn.accent {
    margin-right: 10px;
}

#addFavoriteBtn:hover {
    color: #ffffff !important;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
#addFavoriteBtn:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}
#menuButton {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #303134;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 15px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1001;
    transition: transform 0.2s, box-shadow 0.2s;
    will-change: transform, box-shadow;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}
#menuButton:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
#menuButton:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}
#menuButton img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
body.light #menuButton {
    background-color: #f1f3f4;
    color: #000;
}
#accountButton {
    position: fixed;
    top: 20px;
    right: 80px; /* menuButton’dan sonra */
    background: #303134;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    padding: 0;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s;
    z-index: 1001;
}
#accountButton:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
body.light #accountButton {
    background: #f1f3f4;
    color: #000;
}
body.light #accountButton:hover {
    background: #e0e0e0;
    color: #000;
}
#accountModal
#accountButton img {
    width: 20px;
    height: 20px;
    display: block;
    margin: auto;
}
#menuPanel {
    display: none;
    position: fixed;
    padding: 0 20px 20px 20px;
    top: 85px;
    right: 20px;
    background-color: #303134;
    color: white;
    border-radius: 20px;
    width: 350px;
    text-align: left;
    z-index: 1005;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #5c5e60 #ffffff00;
    animation: modalFadeIn 0.18s;
    contain: content; /* İçeriğin taşmasını engeller */
}
#menuPanel::-webkit-scrollbar {
    width: 8px;
}
#menuPanel::-webkit-scrollbar-track {
    background: #303134;
}
#menuPanel::-webkit-scrollbar-thumb {
    background: #5c5e60;
}
#menuPanel::-webkit-scrollbar-thumb:hover {
    background: #7a7c80;
}
body.light #menuPanel {
    background-color: #f1f3f4;
    color: #000;
    scrollbar-color: #d1d1d1 #f1f3f400;
}
body.light #menuPanel::-webkit-scrollbar-track {
    background: #f1f3f4;
}
body.light #menuPanel::-webkit-scrollbar-thumb {
    background: #d1d1d1;
}
body.light #menuPanel::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
.tab-menu {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%; /* Tam genişlik, taşma yok */
    margin-left: 0;
    margin-right: 0;
    display: flex;
    justify-content: center; 
    align-items: center;
    background-color: #303134;
    z-index: 99999;
    gap: 20px;
    padding: 15px 0;
    box-sizing: border-box;
    border-bottom: 2px solid #444;
}
body.light .tab-menu {
    border-bottom: 2px solid #ccc; /* Açık tema için çizgi rengi */
    background-color: #f1f3f4;
}

.tab-button {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #e8eaed;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    position: relative; /* Aktif çizgi için konumlandırma */
}

.tab-button.active {
    color: #303134;
    border: 1px solid var(--accent-color);
    position: relative;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Çizgiyi butondan uzaklaştırmak için (border-bottom ile çakışmaması için) */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color ); /* Aktif butonun altında vurgu çizgisi */
}

/* Açık tema için aktif buton rengi */
body.light .tab-button {
    color: #e0e0e0; /* Açık tema için buton rengi */
}

body.light .tab-button.active {
    color: #e0e0e0;
}
body.light .tab-button {
    color: #000;
}
.tab-button.active {
    color: #303134;
    border: 1px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}
body.light .tab-button.active {
    color: #000;
    background-color: #e0e0e0;
    border: 1px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}
.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}
body.light .tab-button:hover {
    background: #e0e0e0;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
#menuPanel h3 {
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 20px;
    border-bottom: 2px solid #444;
    padding-bottom: 8px;
    font-weight: 600;
}
body.light #menuPanel h3 {
    border-bottom: 2px solid #ccc;
}
#menuPanel label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-size: 14px;
}
#menuPanel input,
#menuPanel select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 10px;
    border: none;
    background-color: #202124;
    color: white;
    font-size: 14px;
}
body.light #menuPanel input,
body.light #menuPanel select {
    background-color: #e0e0e0;
    color: #000;
}
#menuPanel button {
    margin-top: 10px;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 50px;
    background-color: #202124;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    will-change: transform, box-shadow;
    pointer-events: auto;
}
body.light  #menuPanel button {
    background-color: #e0e0e0;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
#menuPanel button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}
#menuPanel button:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}
#colorPalette .color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}
.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}
.color-option:hover {
    border: 2px solid #fff;
}
body.light .color-option:hover {
    border: 2px solid #000;
}
#menuPanel input[type="color"] {
    height: 40px;
    padding: 4px;
    cursor: pointer;
    margin-top: 10px;
}
#recentBgList {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#recentBgList .bg-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 15px;
    background-color: #202124;
    transition: background-color 0.2s;
}
#recentBgList .bg-preview:hover {
    background-color: #3c4043;
}
body.light #recentBgList .bg-preview {
    background-color: #e0e0e0;
}
body.light #recentBgList .bg-preview:hover {
    background-color: #d1d1d1;
}
#recentBgList .bg-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
}
#recentBgList .bg-preview span {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
#historyList {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #5c5e60 #ffffff00;
}
#historyList::-webkit-scrollbar {
    width: 8px;
}
#historyList::-webkit-scrollbar-track {
    background: #303134;
    border-radius: 10px;
}
#historyList::-webkit-scrollbar-thumb {
    background: #5c5e60;
    border-radius: 10px;
}
#historyList::-webkit-scrollbar-thumb:hover {
    background: #7a7c80;
}
body.light #historyList {
    scrollbar-color: #d1d1d1 #f1f3f4;
}
body.light #historyList::-webkit-scrollbar-track {
    background: #f1f3f4;
}
body.light #historyList::-webkit-scrollbar-thumb {
    background: #d1d1d1;
}
body.light #historyList::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
#historyList .history-item {
    padding: 10px;
    background-color: #202124;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}
#historyList .history-item:hover {
    background-color: #3c4043;
}
body.light #historyList .history-item {
    background-color: #e0e0e0;
}
body.light #historyList .history-item:hover {
    background-color: #d1d1d1;
}
#suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    width: 100%;
    background-color: #303134;
    color: #e8eaed;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow-x: hidden;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1003;
    opacity: 0;
    transition: opacity 0.3s ease;
    scrollbar-color: #ffffff41 #ffffff00;
    scrollbar-width: thin;
}
#suggestions[style*="block"] {
    opacity: 1;
}
#suggestions::-webkit-scrollbar {
    width: 8px;
}
#suggestions::-webkit-scrollbar-track {
    background: #303134;
    border-radius: 10px;
}
#suggestions::-webkit-scrollbar-thumb {
    background: #5c5e60;
    border-radius: 10px;
}
#suggestions::-webkit-scrollbar-thumb:hover {
    background: #7a7c80;
}
body.light #suggestions {
    scrollbar-color: #d1d1d1 #f1f3f4;
}
body.light #suggestions::-webkit-scrollbar-track {
    background: #f1f3f4;
}
body.light #suggestions::-webkit-scrollbar-thumb {
    background: #d1d1d1;
}
body.light #suggestions::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
#suggestions li {
    padding: 12px 16px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
}
#suggestions li:hover {
    background-color: #3c4043;
    transform: scale(1.02);
}
#suggestions li.selected {
    background-color: #4a4e52;
    font-weight: 500;
}
#suggestions li::before {
    content: "";
}
#addFavoriteModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #303134;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    color: #e8eaed;
    width: 320px;
    text-align: center;
    animation: scaleIn 0.18s ease-out forwards;
}
body.light #addFavoriteModal {
    background-color: #f1f3f4;
    color: #000;
}
body.light #addFavoriteModal input {
    background-color: #e0e0e0;
    color: #000;
}
body.light #addFavoriteModal button {
    color: #000;
}
#addFavoriteModal label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
#addFavoriteModal input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 20px;
    border: 1px solid transparent;
    background-color: #202124;
    color: white;
}
#addFavoriteModal button {
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 30px;
    background-color: #202124;
    margin-top: 2%;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    will-change: transform, box-shadow;
}
body.light #addFavoriteModal button {
    background-color: #e0e0e0;
    color: #000;
}
body.light #addFavoriteModal button:hover {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
#addFavoriteModal button:hover {
    transform: scale(1.05);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
#addFavoriteModal button:active {
    transform: scale(0.95);
}
#addFavoriteModal .close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #e8eaed;
}
#addFavoriteModal .close:hover {
    color: var(--accent-color);
}
body.light #addFavoriteModal .close {
    color: #050505;
}
body.light #addFavoriteModal .close:hover {
    color: var(--accent-color);
}
#accountModal {
    display: none;
    position: fixed;
    top: 78px;
    right: 20px;
    z-index: 1005;
    width: 320px;
    max-width: 95vw;
    background: none;
    transition: none;
}
#accountModal .accent {
    background-color: #202124;
    border-radius: 20px;
}
#accountModal .accent:hover {
    transform: scale(1.08);
    background-color: #202124;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
body.light #accountModal .accent {
    background-color: #e0e0e0;
    color: #000;
}
body.light #accountModal .accent:hover {
    background-color: #e0e0e0;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
#accountModal.active {
    display: block;
}
#accountModalTitle {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
}
#accountModalInner {
    background-color: #303134;
    color: #fff;
    padding: 20px;
    top: 5px;
    border-radius: 20px;
    width: 100%;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #5c5e60 #303134;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    min-width: 0;
    max-width: 100%;
    animation: modalFadeIn 0.18s;
}
body.light #accountModalInner {
    background-color: #f1f3f4;
    color: #000;
    scrollbar-color: #d1d1d1 #f1f3f4;
}
#accountModalInner::-webkit-scrollbar {
    width: 8px;
}
#accountModalInner::-webkit-scrollbar-track {
    background: #303134;
    border-radius: 10px;
}
#accountModalInner::-webkit-scrollbar-thumb {
    background: #5c5e60;
    border-radius: 10px;
}
#accountModalInner::-webkit-scrollbar-thumb:hover {
    background: #7a7c80;
}
body.light #accountModalInner::-webkit-scrollbar-track {
    background: #f1f3f4;
}
body.light #accountModalInner::-webkit-scrollbar-thumb {
    background: #d1d1d1;
}
body.light #accountModalInner::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
#accountModalInner .close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.7rem;
    color: #e8eaed;
    cursor: pointer;
    transition: color 0.15s;
    z-index: 2;
}
body.light #accountModalInner .close {
    color: #050505;
}
#accountModalInner .close:hover {
    color: var(--accent-color);
}
body.light #accountModalInner .close:hover {
    color: var(--accent-color);
}
#accountForm {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#accountForm input[type="text"],
#accountForm input[type="password"] {
    padding: 8px 12px;
    border-radius: 17px;
    font-size: 1rem;
    outline: none;
    background: #202124;
    color: #ffffff;
    transition: border 0.15s;
}
#accountForm input[type="text"]:focus,
#accountForm input[type="password"]:focus {
    border-color: var(--accent-color);
}
body.light #accountForm input[type="text"],
body.light #accountForm input[type="password"] {
    background: #fff;
    color: #222;
}
#accountForm > div {
    display: flex;
    gap: 8px;
    justify-content: center;
}
#accountForm .accent {
    min-width: 90px;
    margin-top: 10px;
}
#accountLoggedIn {
    display: none;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
#accountLoggedIn .accent {
    min-width: 90px;
    margin-top: 10px;
}
#accountWelcome {
    font-weight: 600;
    font-size: 1.1rem;
}
.error-message {
    color: #ff4444;
    font-size: 0.98rem;
    margin-top: 2px;
    display: none;
    text-align: center;
}
body.light .error-message {
    color: #cc0000;
}
@media (max-width: 480px) {
    #accountModalInner {
        min-width: 0;
        width: 98vw;
        padding: 18px 6vw 18px 6vw;
    }
    #accountModal {
        right: 1vw;
        width: 98vw;
        max-width: 98vw;
        top: 60px;
    }
}
@media (max-width: 600px) {
    .tab-menu {
        padding: 10px 0;
        gap: 10px;
        width: 100%;
    }
}
#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
#backgroundYouTube {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}
.history-item {
    padding: 10px;
    background-color: #202124;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.light .history-item {
    background-color: #e0e0e0;
}
body.light .history-item:hover {
    background-color: #d1d1d1;
}
.history-engine {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
}
body.light .history-engine {
    color: #555;
}
.history-remove-btn {
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
}
body.light .history-remove-btn {
    color: #363333;
}
.history-remove-btn:hover {
    color: var(--accent-color);
}
body.light .history-remove-btn:hover {
    color: var(--accent-color);
}
@media (forced-colors: active) {
    :root {
        --accent-color: CanvasText; /* Sistem renklerini kullan */
        --site-font: system-ui, sans-serif; /* Sistem fontuyla uyumluluk */
    }
    body {
        background-color: Canvas;
        color: CanvasText;
    }
    body.light {
        background-color: Canvas;
        color: CanvasText;
    }
    .search-bar input,
    .buttons button,
    .favorite-item,
    #menuPanel,
    #accountModalInner,
    .weather-widget {
        background-color: Canvas;
        color: CanvasText;
        border: 1px solid ButtonBorder;
    }
    .favorite-item a,
    .logo .logo-name,
    #suggestions,
    #suggestions li:hover,
    #suggestions li.selected {
        color: CanvasText;
        background-color: ButtonFace;
    }
    .weather-error {
        color: CanvasText;
        background-color: transparent;
    }
    button:hover,
    .favorite-item:hover,
    #addFavoriteBtn:hover {
        background-color: ButtonFace;
        color: CanvasText;
    }
}
input#bgUrlInput:focus {
    outline: none;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}
input#searchInput:focus {
    outline: none;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}
input#accountUsername:focus {
    outline: none;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}
input#accountPassword:focus {
    outline: none;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}
input#modalName:focus {
    outline: none;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}
input#modalUrl:focus {
    outline: none;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}
div#voiceTranscript.transcript:focus {
    outline: none;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}
#recentBgList {
    background-color: #303134;          /* Koyu arka plan */
    color: white;                       /* Yazılar beyaz */
    padding: 10px;                      /* İç boşluk genişletildi */
    border-radius: 13px;                /* Daha yuvarlak köşeler */
    width: 300px;                       /* Standart genişlik */
    text-align: left;                   /* Yazılar sola hizalı */
    z-index: 1005;                      /* Üste çıksın */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Derin gölge */
    max-height: 60%;                   /* Çok uzarsa ekrana sığsın */
    overflow-y: auto;                   /* Kaydırılabilir */
    scrollbar-width: thin;              /* İnce kaydırma çubuğu */
    scrollbar-color: #5c5e60 #303134;   /* Modern scrollbar */
}
.recent-bg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
    background-color: #202124;
    transition: background-color 0.2s, box-shadow 0.2s;
    max-height: 50px;
}
body.light #recentBgList {
    background-color: #f1f3f4; /* Açık arka plan */
    color: #000000; /* Koyu yazı */
}
.recent-bg-item:hover {
    background: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#recentBgList .recent-bg-item img {
    width: 40px !important;
    height: 30px !important;
    border-radius: 10px !important;
}

#recentBgList .recent-bg-item span {
    color: #e8eaed; 
    font-size: 14px;
    max-height: 40px;
    word-break: break-word;
    overflow: hidden;
}
body.light #recentBgList .recent-bg-item span {
    color: #000000; 
}

.recent-bg-preview {
    display: flex;
    gap: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 15px;
    background-color: #202124;
    transition: background-color 0.2s;
}
.recentBgList .remove-bg-btn {
    margin-left: auto;
    color: var(--accent-color);
}
.recentBgList .remove-bg-btn.hover {
    color: var(--accent-color);
}
#bgFileInput {
    background-color: #303134;          /* Koyu arka plan */
    color: #e8eaed;                     /* Açık yazı */
    border: 1px solid #5c5e60;          /* İnce gri çerçeve */
    border-radius: 12px;                /* Yuvarlatılmış köşeler */
    padding: 10px 16px;                 /* İç boşluk genişletildi */
    font-size: 14px;                     /* Yazı boyutu */
    width: 100%;                          /* Tam genişlik */
    cursor: pointer;                      /* El işareti */
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; /* Geçişler */
}
#bgFileInput::-webkit-file-upload-button {
    background-color: #303134;
    color: #e8eaed;
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 5px 10px;
    cursor: pointer;
}
body.light #bgFileInput::-webkit-file-upload-button {
    background-color: #e0e0e0;
    color: #000000;
    border: 1px solid var(--accent-color);
}
body.light .recent-bg-item {
    background-color: #e0e0e0;       /* Açık arka plan */
    color: #000000;                   /* Koyu yazı */
}
#bgFileInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}
.remove-bg-btn {
    cursor: pointer;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 16px;
    padding: 0 8px;
    transition: color 0.2s;
}

.remove-bg-btn:hover {
    color: var(--accent-color);

}
.hidden {
    display: none !important;
}
#feedbackForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

#feedbackForm label {
    font-weight: bold;
    font-size: 14px;
    color: #e8eaed;
}

body.light #feedbackForm label {
    color: #000;
}
#feedbackForm input[type="text"],
#feedbackForm textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background-color: #202124;
    color: #e8eaed;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#feedbackForm input[type="text"]:focus,
#feedbackForm textarea:focus {
    outline: none;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}
body.light #feedbackForm input[type="text"],
body.light #feedbackForm textarea {
    background-color: #e0e0e0;
    color: #000;
}

#feedbackForm input[type="file"] {
    padding: 8px;
    background-color: #202124;
    color: #e8eaed;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

body.light #feedbackForm input[type="file"] {
    background-color: #e0e0e0;
    color: #000;
}

#feedbackForm button.accent {
    background-color: #202124;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 12px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

#feedbackForm button.accent:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

#feedbackForm button.accent:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

#feedbackStatus {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

#feedbackStatus.success {
    color: #00cc00;
}

body.light #feedbackStatus.success {
    color: #009900;
}
#accentColor::-webkit-color-swatch-wrapper {
    padding: 0;
}

#accentColor::-webkit-color-swatch {
    border-radius: 6px;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
#resetBrowserBtn {
    background-color: #202124;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
#resetBrowserBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}
body.light #resetBrowserBtn {
    background-color: #e0e0e0;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
#resetBrowserBtn:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}
#favoriteContextMenu {
    display: none;
    position: absolute;
    background-color: #303134;
    color: #e8eaed;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    min-width: 150px;
    overflow: hidden;
}
body.light #favoriteContextMenu {
    background-color: #f1f3f4;
    color: #000;
}
