/* --- GENEL AYARLAR --- */
body {
font-family: 'Inter', sans-serif;
background-color: #f0f4f8;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 20px;
padding-top: 80px;
transition: background-color 0.3s, color 0.3s;
overflow-x: hidden;
-webkit-user-select: none;
user-select: none;
}

/* --- BİRLEŞTİRİLMİŞ MODERN HEADER --- */
.app-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 60px;
background: rgba(255, 255, 255, 0.90);
backdrop-filter: blur(12px);
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
border-bottom: 1px solid rgba(0,0,0,0.05);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 15px;
z-index: 1000;
box-sizing: border-box;
}

.header-left-group {
display: flex;
align-items: center;
gap: 12px;
}

.header-user {
font-weight: 600;
color: #0091ce;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
}

/* --- MODERN HAMBURGER İKONU (MOBİL ODAKLI) --- */
.modern-hamburger { width: 36px; height: 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; cursor: pointer; background: transparent; border: none; padding: 0 4px; -webkit-tap-highlight-color: transparent; }
.hamburger-line { height: 3px; border-radius: 10px; background: linear-gradient(90deg, #333 0%, #555 100%); transition: transform 0.1s, background 0.1s; }
.hamburger-line:nth-child(1) { width: 26px; }
.hamburger-line:nth-child(2) { width: 18px; }
.hamburger-line:nth-child(3) { width: 26px; }
.modern-hamburger:active .hamburger-line { transform: scale(0.9); background: #0091ce; }

/* Logo Yazısı */
.header-brand-text {
font-family: 'Righteous', cursive;
font-size: 1.2rem;
background: linear-gradient(45deg, #0091ce, #9c27b0);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
cursor: pointer;
letter-spacing: 0.5px;
}

/* Mini Hava Durumu Kapsülü */
.header-weather-capsule {
display: flex;
align-items: center;
gap: 6px;
background: #f0f7ff;
padding: 6px 12px;
border-radius: 20px;
cursor: pointer;
border: 1px solid #e1f0fa;
transition: all 0.2s ease;
}
.header-weather-capsule:active { transform: scale(0.95); background: #e1f0fa; }
.hw-icon { font-size: 1.1rem; line-height: 1; }
.hw-temp { font-weight: 800; color: #0091ce; font-size: 0.9rem; }
.hw-city {
font-size: 0.75rem; font-weight: 600; color: #888; text-transform: uppercase;
border-left: 1px solid #ddd; padding-left: 6px; margin-left: 2px;
}

.container {
background: white;
padding: 2rem;
border-radius: 20px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
text-align: center;
box-sizing: border-box;
margin-bottom: 20px;
transition: background 0.3s, box-shadow 0.3s;
position: relative;
z-index: 10;
}

/* --- BİRLEŞTİRİLMİŞ MODERN SIDEBAR MENU --- */
.sidebar-menu {
position: fixed;
top: 0;
left: -100%;
width: 85%;
max-width: 320px;
height: 100%;
background: #f8f9fa;
box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
z-index: 2000;
transition: left 0.3s ease;
padding: 0 !important;
display: flex;
flex-direction: column;
box-sizing: border-box;
}

.sidebar-menu.active { left: 0; }

.sidebar-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.5); z-index: 1500; display: none;
}
.sidebar-overlay.active { display: block; }

.sidebar-header-fancy {
background: linear-gradient(135deg, #0091ce 0%, #9c27b0 100%);
padding: 40px 20px 25px 20px;
color: white;
border-bottom-right-radius: 40px;
box-shadow: 0 10px 20px rgba(0, 145, 206, 0.3);
margin-bottom: 20px;
position: relative;
overflow: hidden;
}
.sidebar-header-fancy::before {
content: ''; position: absolute; top: -30px; right: -30px;
width: 100px; height: 100px; background: rgba(255,255,255,0.1); border-radius: 50%;
}
.sidebar-header-fancy::after {
content: ''; position: absolute; bottom: -20px; left: 20px;
width: 60px; height: 60px; background: rgba(255,255,255,0.1); border-radius: 50%;
}
.sidebar-profile-area { display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; }
.sidebar-avatar {
width: 55px; height: 55px; background: white; color: #0091ce; border-radius: 50%;
display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: bold;
box-shadow: 0 4px 10px rgba(0,0,0,0.2); border: 3px solid rgba(255,255,255,0.3);
}
.sidebar-user-info h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: white; font-family: 'Righteous', cursive; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.sidebar-user-info p { margin: 2px 0 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); }

#menuContent { flex: 1; overflow-y: auto; padding: 0 20px 20px 20px; }
.sidebar-footer { padding: 10px 15px; background: white; border-top: 1px solid #eee; margin-top: auto; }

/* --- KART TASARIMLARI --- */
h1.app-title {
font-family: 'Righteous', cursive; font-size: 1.8rem; margin-bottom: 0.5rem; margin-top: 0;
background: linear-gradient(45deg, #0091ce, #9c27b0); -webkit-background-clip: text;
-webkit-text-fill-color: transparent; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); line-height: 1.3;
}

.home-card {
background-color: #f8f9fa; padding: 20px; border-radius: 15px; margin-bottom: 15px; cursor: pointer;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
border-left: 5px solid #0091ce; text-align: left; position: relative; overflow: hidden;
}
.home-card:active { transform: scale(0.98); }
.home-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); }
.home-card h3 { margin: 0 0 5px 0; font-weight: 600; }
.home-card p { margin: 0; font-size: 0.9rem; color: #6c757d; }

.home-card.brita-card { border-left-color: #0091ce; }
.home-card.water-card { border-left-color: #28a745; }
.home-card.devices-card { border-left-color: #f0ad4e; }
.home-card.personal-card { border-left-color: #e91e63; }
.home-card.movies-card { border-left-color: #673AB7; }
.home-card.settings-card { border-left-color: #607d8b; }
.home-card.reading-card { border-left-color: #ff5722; }
.home-card.finance-card { border-left-color: #2ecc71; }
.home-card.shopping-card { border-left-color: #ff9800; }
.home-card.digiup-card { border-left-color: #6f42c1; }
.home-card.notes-card { border-left-color: #ffeb3b; }
.home-card.dictionary-card { border-left-color: #00bcd4; }

/* --- SUPER CARDS (WIDGETS) --- */
.widget-grid { display: grid; gap: 15px; width: 100%; }
.widget-card {
background: white; border-radius: 15px; padding: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); text-align: left; transition: background-color 0.3s; overflow: hidden;
}
.widget-card.reminder-widget {
background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%); color: white; border-left: none !important; cursor: pointer;
}
.widget-card.reminder-widget .widget-header, .widget-card.reminder-widget .widget-sub { color: rgba(255, 255, 255, 0.9); }
.widget-card.reminder-widget .widget-content { color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; color: #555; font-size: 0.9rem; }
.widget-content { font-size: 1.3rem; font-weight: bold; color: #333; }
.widget-sub { font-size: 0.85rem; color: #888; margin-top: 5px; }

.widget-scroll-container { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 8px; width: 100%; scrollbar-width: thin; }
.widget-scroll-container::-webkit-scrollbar { height: 4px; }
.widget-scroll-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.widget-scroll-container::-webkit-scrollbar-thumb { background: #0091ce; border-radius: 4px; cursor: pointer; }

.widget-movie-item { min-width: 90px; max-width: 90px; cursor: pointer; flex-shrink: 0; transition: transform 0.2s; }
.widget-movie-item:active { transform: scale(0.95); }
.widget-movie-item img { width: 100%; border-radius: 8px; aspect-ratio: 2/3; object-fit: cover; background: #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.widget-reading-item { min-width: 130px; max-width: 130px; cursor: pointer; flex-shrink: 0; display: flex; flex-direction: column; transition: transform 0.2s; }
.widget-reading-item:active { transform: scale(0.95); }
.widget-reading-item img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; background: #eee; margin-bottom: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.widget-reading-item span { font-size: 0.75rem; color: #555; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; font-weight: 500; }

/* --- BİLEŞENLER --- */
.auth-input { width: 100%; padding: 12px; margin: 8px 0; border: 1px solid #ddd; border-radius: 10px; box-sizing: border-box; font-size: 1rem; }
.auth-btn { width: 100%; padding: 12px; border: none; border-radius: 10px; background: linear-gradient(45deg, #0091ce, #00d2ff); color: white; font-weight: bold; font-size: 1rem; cursor: pointer; margin-top: 10px; }
.auth-link { display: block; margin-top: 15px; color: #0091ce; cursor: pointer; text-decoration: underline; font-size: 0.9rem; }
.logout-btn { background: #ffebee; color: #c62828; border: none; padding: 12px; border-radius: 10px; font-size: 1rem; cursor: pointer; font-weight: bold; width: 100%; margin-top: 20px; }

.landing-hero { text-align: center; margin-bottom: 30px; }
.landing-title { font-family: 'Righteous', cursive; font-size: 2.2rem; background: linear-gradient(45deg, #0091ce, #9c27b0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; line-height: 1.2; }
.landing-desc { color: #666; line-height: 1.5; font-size: 1rem; margin-bottom: 20px; }

.status-circle { width: 160px; height: 160px; border-radius: 50%; background: conic-gradient(#0091ce 0%, #e0e0e0 0); display: flex; align-items: center; justify-content: center; margin: 20px auto; box-shadow: 0 5px 15px rgba(0, 145, 206, 0.2); }
.status-inner { width: 130px; height: 130px; background: white; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.percentage { font-size: 2.2rem; font-weight: bold; color: #0091ce; }
.liters { font-size: 0.9rem; color: #666; margin-top: 5px; }

.btn { background-color: #0091ce; color: white; border: none; padding: 15px; border-radius: 12px; font-size: 1rem; cursor: pointer; width: 100%; margin-bottom: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.1s; }
.btn:active { transform: scale(0.95); }
.btn-secondary { background-color: #6c757d; }
.btn-history { background-color: #17a2b8; margin-top: 5px; }
.btn-calendar { background-color: #fd7e14; margin-top: 5px; }
.btn-reminder { background-color: #673AB7; margin-top: 5px; font-size: 0.9rem; padding: 10px; }
.btn-reset { background-color: white; color: #dc3545; border: 1px solid #dc3545; margin-top: 20px; font-size: 0.8rem; padding: 10px; }
.btn-back-home { background-color: #333; margin-bottom: 20px; width: auto; padding: 10px 20px; font-size: 0.9rem; }

.input-group { margin-bottom: 10px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.quick-add-buttons { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; margin-bottom: 10px; width: 100%; }
.quick-add-btn { padding: 12px 5px !important; font-size: 0.85rem !important; flex: 1; margin-bottom: 0; }

input, select, textarea { padding: 10px; border-radius: 12px; border: 1px solid #ddd; width: 70px; text-align: center; font-size: 1rem; font-family: inherit; }
input[type="date"] { width: 100%; height: 45px; }
input[type="text"], input[type="password"], input[type="email"], textarea { width: 100%; text-align: left; box-sizing: border-box; }
textarea { resize: vertical; min-height: 60px; }

.history-container { margin-top: 15px; text-align: left; display: none; background: #f8f9fa; border-radius: 12px; padding: 10px; max-height: 250px; overflow-y: auto; }
.history-item { font-size: 0.85rem; padding: 10px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.history-item:last-child { border-bottom: none; }
.history-info { display: flex; flex-direction: column; width: 100%; padding-right: 10px; }
.date { color: #888; font-size: 0.75rem; margin-top: 2px; }
.btn-delete-entry { background: #ffebee; color: #c62828; border: none; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 0.75rem; margin-left: 10px; font-weight: bold; flex-shrink: 0; }

.device-card { background: white; padding: 15px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); border: 1px solid #eee; text-align: left; }
.device-card h3 { margin-top: 0; font-size: 1.1rem; text-align: center; }
.days-passed { font-size: 2.5rem; font-weight: bold; color: #333; text-align: center; }
.last-empty { font-size: 0.9rem; color: #888; margin-bottom: 15px; text-align: center; }

/* --- FINTECH VE HARCAMA --- */
.fintech-list { background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); overflow: hidden; margin-top: 10px; }
.fintech-item { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; transition: background 0.2s; cursor: pointer; }
.fintech-item:last-child { border-bottom: none; }
.fintech-item:active { background-color: #f9f9f9; }
.fintech-icon-box { width: 44px; height: 44px; border-radius: 50%; background-color: #f5f7fa; display: flex; align-items: center; justify-content: center; margin-right: 15px; border: 1px solid #eee; overflow: hidden; flex-shrink: 0; }
.fintech-logo-img { width: 100%; height: 100%; object-fit: contain; }
.fintech-cat-icon { font-size: 1.2rem; }
.fintech-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.fintech-name { font-weight: 600; color: #333; font-size: 0.95rem; }
.fintech-meta { font-size: 0.75rem; color: #999; display: flex; align-items: center; gap: 5px; }
.fintech-meta .receipt-indicator { display: none !important; }
.fintech-amount-box { text-align: right; }
.fintech-amount { font-weight: 700; color: #333; font-size: 1rem; }

.expense-card { background: white; border: 1px solid #eee; border-radius: 10px; padding: 10px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.receipt-thumb { width: 50px; height: 50px; border-radius: 5px; object-fit: cover; cursor: pointer; border: 1px solid #ddd; }
.receipt-modal-img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }

.analysis-card { background: #f8f9fa; border-radius: 12px; padding: 15px; margin-bottom: 15px; border: 1px solid #eee; text-align: center; }
.analysis-grand-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3); }
.analysis-big-num { font-size: 1.8rem; font-weight: bold; font-family: 'Righteous', cursive; color: #333; }
.analysis-grand-card .analysis-big-num { color: white; }
.analysis-sub { font-size: 0.8rem; color: #666; }
.analysis-grand-card .analysis-sub { color: rgba(255,255,255,0.8); }

.chart-container { margin-top: 15px; }
.chart-row { display: flex; align-items: center; margin-bottom: 8px; font-size: 0.8rem; }
.chart-label { width: 80px; text-align: right; margin-right: 10px; color: #666; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chart-bar-bg { flex: 1; background: #eee; height: 12px; border-radius: 6px; overflow: hidden; position: relative; }
.chart-bar-fill { height: 100%; background: #ff9800; border-radius: 6px; }
.chart-value { width: 70px; margin-left: 10px; font-weight: bold; color: #333; text-align: right; }

.budget-row { margin-bottom: 12px; text-align: left; }
.budget-header { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 3px; color: #555; }
.budget-track { background: #eee; height: 10px; border-radius: 5px; overflow: hidden; }
.budget-fill { height: 100%; border-radius: 5px; }
.budget-safe { background: #2ecc71; }
.budget-warn { background: #f1c40f; }
.budget-danger { background: #e74c3c; }

/* --- FİLM VE DİZİ --- */
.netflix-tabs { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; margin-bottom: 20px; scrollbar-width: none; }
.netflix-pill { background: white; border: 1px solid #eee; padding: 10px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 600; color: #555; white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.netflix-pill.active { background: #e50914; color: white; border-color: #e50914; box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4); }
.netflix-pill.active[data-type="series"] { background: #673AB7; border-color: #673AB7; }
.netflix-pill.active[data-type="wishlist"] { background: #0091ce; border-color: #0091ce; }
.netflix-pill.active[data-type="discover"] { background: linear-gradient(45deg, #ff00cc, #333399); border:none; }

.netflix-search-box { display: flex; align-items: center; gap: 10px; background: white; padding: 6px 8px; border-radius: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; margin-bottom: 25px; }
.netflix-search-btn { background: #e50914; color: white; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; }

.my-movie-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.movie-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); position: relative; border: 1px solid #eee; text-align: left; display: flex; flex-direction: column; transition: transform 0.2s; }
.movie-card img { width: 100%; height: 180px; object-fit: cover; pointer-events: none; background: #eee; }
.movie-info { padding: 8px; flex: 1; display: flex; flex-direction: column; pointer-events: none; }
.movie-title { font-size: 0.85rem; font-weight: bold; margin-bottom: 4px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.movie-desc { font-size: 0.7rem; color: #666; margin-bottom: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.badges-row { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.badge { font-size: 0.65rem; padding: 2px 5px; border-radius: 4px; color: white; font-weight: bold; }
.badge-tmdb { background: #01b4e4; }
.badge-year { background: #6c757d; }
.badge-domain { background: #ffccbc; color: #d84315; font-weight: normal; }
.badge-trending { background: #ff4081; color: white; }
.user-rating { color: #f1c40f; font-size: 0.85rem; margin-bottom: 4px; }
.user-note { font-size: 0.75rem; color: #555; font-style: italic; background: #f9f9f9; padding: 4px; border-radius: 4px; margin-bottom: 5px; border-left: 2px solid #ddd; }
.movie-date { font-size: 0.7rem; color: #888; margin-top: auto; }
.star-rating-input { display: flex; justify-content: center; gap: 5px; margin: 10px 0; }
.star-item { font-size: 2rem; color: #ddd; cursor: pointer; }
.star-item.active { color: #f1c40f; }

.search-results { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 10px; margin-bottom: 15px; scroll-behavior: smooth; }
.search-item { min-width: 100px; max-width: 100px; background: #f8f9fa; border-radius: 8px; overflow: hidden; font-size: 0.75rem; text-align: center; border: 1px solid #ddd; display: flex; flex-direction: column; justify-content: space-between; }
.search-item img { width: 100%; height: 150px; object-fit: cover; }
.search-item-title { padding: 5px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-movie-btn { background: #28a745; color: white; border: none; padding: 5px; cursor: pointer; width: 100%; }

/* --- WEB ARŞİVİ --- */
.fancy-title { font-family: 'Righteous', cursive; font-size: 2.5rem; background: linear-gradient(to right, #0091ce, #9c27b0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 5px; }
.category-scroll-container { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 10px; margin-bottom: 15px; scrollbar-width: none; }
.cat-chip { background: white; border: 1px solid #eee; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; color: #666; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.cat-chip.active { background: #222; color: white; border-color: #222; }

#readingListGrid { display: flex !important; flex-direction: column !important; gap: 25px !important; }
#readingListGrid .movie-card { width: 100% !important; margin: 0 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.reading-card-img { height: 140px !important; cursor: pointer; pointer-events: auto !important; }
.clickable-reading-title { cursor: pointer; pointer-events: auto !important; }

.movie-search-box { display: flex; gap: 10px; background: white; padding: 5px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee; }
#readingInputUrl { flex: 1; border: none; outline: none; padding: 12px 15px; font-size: 1rem; background: transparent; }
#readingBtnText { background: linear-gradient(135deg, #ff9800, #f57c00); color: white; border: none; padding: 0 24px; font-weight: 700; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; }

.pomodoro-compact { background: rgba(255, 255, 255, 0.9); border-radius: 50px; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.5); }
.pomodoro-container { background: #fff3e0; border-left: 4px solid #ff9800; padding: 15px; border-radius: 10px; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; }
.pomodoro-timer { font-size: 3rem; font-weight: bold; color: #e65100; font-family: 'Righteous', cursive; margin: 10px 0; }

/* --- GAZETE --- */
.newspaper-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; margin-top: 5px; }
.newspaper-title { font-size: 0.9rem; font-weight: 800; color: #333; background: white; padding: 6px 12px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 5px; }
.lang-group { display: flex; gap: 5px; }
.lang-btn { border: 1px solid #ddd; background: white; padding: 6px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; color: #666; cursor: pointer; }
.lang-btn.active { background: #0091ce; color: white; border-color: #0091ce; }
.newspaper-scroll { display: flex; overflow-x: auto; gap: 15px; padding: 10px 5px; margin-bottom: 20px; scrollbar-width: none; }
.news-icon-item { display: flex; flex-direction: column; align-items: center; min-width: 70px; cursor: pointer; }
.news-avatar { width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0091ce; object-fit: contain; margin-bottom: 8px; }
.news-name { font-size: 0.7rem; color: #555; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }

/* --- SÖZLÜK --- */
/* --- SÖZLÜK SEKMELERİ (ARA / KELİMELERİM) --- */
.movie-tabs { display: flex; gap: 10px; margin-bottom: 20px; width: 100%; }
.tab-btn { flex: 1; padding: 12px 5px; background: #e0e0e0; border: none; border-radius: 12px; cursor: pointer; font-weight: 700; color: #666; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-size: 0.9rem; }
.tab-btn.active { background: #00bcd4; color: white; box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4); transform: translateY(-2px); }

/* --- KAYDEDİLEN KELİMELER LİSTESİ (YAN YANA DÜZEN) --- */
.sub-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: #fff; border-radius: 14px; margin-bottom: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.04); transition: transform 0.2s; }
.sub-item:active { transform: scale(0.98); }
.sub-info { text-align: left; flex: 1; }
.sub-name { color: #00838f; font-size: 1.1rem; display: flex; align-items: center; gap: 6px; font-weight: 800; }

/* --- SÖZLÜK VE ÇEVİRİ KARTI --- */
.dict-result-card { display: none; background: #fff; padding: 0; border-radius: 16px; text-align: left; margin-bottom: 20px; border: 1px solid #e0e0e0; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.dict-header-row { background: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%); padding: 20px; color: white; position: relative; }
.dict-word-lg { font-size: 2rem; font-weight: 800; font-family: 'Inter', sans-serif; margin-bottom: 5px; }
.dict-phonetic { font-family: 'Courier New', monospace; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 6px; font-size: 0.9rem; display: inline-block; }
.dict-audio-play { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: white; color: #00bcd4; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.2s; border: none; }
.dict-audio-play:active { transform: translateY(-50%) scale(0.9); }
.dict-body { padding: 20px; }
.dict-trans-box { background: #e0f7fa; color: #006064; padding: 12px; border-radius: 10px; font-weight: bold; font-size: 1.1rem; margin-bottom: 20px; border-left: 5px solid #00bcd4; display: flex; align-items: center; gap: 10px; }
.dict-pos-tag { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; margin-bottom: 8px; background: #333; color: #fff; }
.dict-add-btn { width: 100%; background: #00acc1; color: white; border: none; padding: 12px; border-radius: 10px; font-weight: bold; font-size: 1rem; margin-top: 10px; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 172, 193, 0.3); transition: transform 0.1s, box-shadow 0.2s; }
.dict-add-btn:active { transform: scale(0.98); box-shadow: 0 2px 5px rgba(0, 172, 193, 0.2); }

/* --- FLASHCARD --- */
.flashcard-container { perspective: 1000px; width: 100%; height: 200px; margin-bottom: 20px; display: none; }
.flashcard-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; cursor: pointer; }
.flashcard-inner.flipped { transform: rotateY(180deg); }
.flashcard-front, .flashcard-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex-direction: column; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid #ddd; padding: 20px; box-sizing: border-box; }
.flashcard-front { background-color: white; color: #333; }
.flashcard-back { background-color: #00acc1; color: white; transform: rotateY(180deg); }

/* --- MODALLAR --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 2500; backdrop-filter: blur(3px); }
.modal-content { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3); max-width: 320px; width: 95%; text-align: center; }
.modal-message { margin-bottom: 20px; font-size: 1.1rem; color: #333; }
.modal-btn { padding: 10px 20px; border: none; border-radius: 10px; cursor: pointer; margin: 5px; font-weight: 600; width: 40%; }
.modal-confirm { background-color: #0091ce; color: white; }
.modal-cancel { background-color: #dc3545; color: white; }

#expenseDetailModal { z-index: 10000 !important; }
#receiptModal, #customModal { z-index: 20000 !important; }
#expenseDetailModal .modal-content { border-radius: 24px; max-width: 350px; max-height: 85vh; overflow-y: auto; }
.modal-close-btn-top { position: absolute; top: 15px; left: 15px; background: #f0f0f0; color: #333; border: none; padding: 8px 15px; border-radius: 8px; font-weight: 600; cursor: pointer; }

.reader-modal { padding: 0 !important; }
.reader-header { width: 100%; height: 60px; background: #fff3e0; border-bottom: 2px solid #ff9800; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; box-sizing: border-box; }
.reader-top-bar { position: relative; height: 65px; background: #f8f9fa; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
.reader-left-group { display: flex; align-items: center; gap: 15px; }
.reader-site-name { font-size: 1rem; font-weight: 700; color: #333; display: flex; align-items: center; gap: 8px; }
.reader-pomo-badge { position: absolute; left: 50%; transform: translateX(-50%); background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; padding: 5px 12px; border-radius: 20px; font-size: 1.2rem; font-weight: 800; font-family: 'Righteous', cursive; display: flex; align-items: center; gap: 5px; }
.reader-back-btn { background: white; border: 1px solid #ccc; color: #333; padding: 8px 16px; border-radius: 12px; font-size: 0.95rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 5px; }

.tmdb-detail-modal-content { background: #fff; padding: 0; width: 90%; max-width: 350px; border-radius: 15px; overflow: hidden; text-align: left; }
.tmdb-backdrop { width: 100%; height: 180px; background: #eee; position: relative; }
.tmdb-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.tmdb-content-body { padding: 15px; max-height: 60vh; overflow-y: auto; }
.tmdb-title-lg { font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; color: #333; }
.tmdb-meta-lg { font-size: 0.8rem; color: #666; margin-bottom: 10px; }
.tmdb-overview { font-size: 0.9rem; line-height: 1.5; color: #444; margin-bottom: 15px; }
.provider-logo { width: 40px; height: 40px; border-radius: 8px; margin-right: 8px; }

/* --- EDİTÖR BUTONLARINI KİBARLAŞTIRMA --- */
#noteEditorModal .modal-footer, .modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; border-top: 1px solid #eee; }
#noteEditorModal button, #saveNoteBtn, #closeNoteBtn { width: auto !important; padding: 8px 16px !important; font-size: 0.9rem !important; border-radius: 8px !important; font-weight: 600 !important; text-transform: none !important; box-shadow: none !important; cursor: pointer; transition: background 0.2s; }
#saveNoteBtn { background: #e8f5e9 !important; color: #2e7d32 !important; border: 1px solid #a5d6a7 !important; }
#closeNoteBtn { background: #f5f5f5 !important; color: #616161 !important; border: 1px solid #e0e0e0 !important; }
.editor-action-btn { background: transparent !important; border: none !important; color: #78909c !important; font-size: 1.1rem !important; padding: 5px !important; }

/* ==========================================
   COLORNOTE SİSTEMİ: NOTLAR & GÖRÜNÜM MODLARI
========================================== */
#notesList { display: grid; gap: 12px; align-items: start; }
/* Görünüm Modları */
.notes-view-list { grid-template-columns: 1fr !important; } .notes-view-list .note-card { min-height: 50px !important; padding: 10px 15px !important; flex-direction: row !important; align-items: center; justify-content: space-between; } .notes-view-list .note-body-wrapper { display: none; }
.notes-view-details { grid-template-columns: 1fr !important; } .notes-view-details .note-content-preview { -webkit-line-clamp: 8 !important; }
.notes-view-grid { grid-template-columns: repeat(2, 1fr) !important; }
.notes-view-large { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }

/* Not Kartı Genel */
.note-card { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; min-height: 90px; cursor: pointer; transition: transform 0.2s; position: relative; }
.note-card:active { transform: scale(0.98); }
.note-top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.note-title { font-size: 0.95rem; font-weight: 800; color: #2c3e50; line-height: 1.3; word-break: break-word; }
.note-pin-badge { background: #fff8e1; color: #fbc02d; font-size: 0.75rem; padding: 2px 6px; border-radius: 6px; border: 1px solid #ffecb3; display: flex; align-items: center; flex-shrink: 0; }
.note-body-wrapper { flex-grow: 1; margin-bottom: 10px; }
.note-content-preview { font-size: 0.85rem; color: #546e7a; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.note-date-footer { align-self: flex-end; font-size: 0.7rem; color: #b0bec5; font-weight: 700; background: rgba(0,0,0,0.02); padding: 2px 8px; border-radius: 10px; }

/* ColorNote Tarzı Seçim Ekranı & Araç Çubuğu */
.note-selection-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 3000; backdrop-filter: blur(5px); }
.selection-card { background: white; border-radius: 20px; padding: 25px; display: flex; gap: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.sel-btn { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: transform 0.2s; padding: 15px; border-radius: 15px; background: #f8f9fa; border: 1px solid #eee; width: 100px; }
.notes-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 5px; }
.tool-btn { background: white; border: 1px solid #eee; padding: 6px 10px; border-radius: 10px; font-size: 0.8rem; cursor: pointer; font-weight: 700; color: #555; display: flex; align-items: center; gap: 4px; }

/* Checklist ve Strike-through Efekti */
.checklist-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cl-item-text { cursor: pointer; transition: all 0.2s; flex: 1; text-align: left; font-size: 0.95rem; }
.cl-item-text.completed { text-decoration: line-through; opacity: 0.5; color: #888; }
.btn-remove-item { background: transparent; border: none; color: #ff5252; font-size: 1.2rem; cursor: pointer; padding: 0 5px; }

/* Editor & Renk Paleti (Sabit Kalanlar) */
.note-type-tabs { display: flex; margin-bottom: 15px; border-bottom: 2px solid #eee; }
.note-tab { flex: 1; padding: 10px; text-align: center; cursor: pointer; color: #999; font-weight: 600; border-bottom: 2px solid transparent; }
.note-tab.active { color: #fbc02d; border-bottom-color: #fbc02d; }
.color-circle { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #eee; cursor: pointer; }
.color-circle.active { border-color: #333; transform: scale(1.1); }
.note-bg-white { background-color: #ffffff; border-color: #e0e0e0; } .note-bg-red { background-color: #ffebee; border-color: #ffcdd2; } .note-bg-orange { background-color: #fff3e0; border-color: #ffe0b2; } .note-bg-yellow { background-color: #fffde7; border-color: #fff9c4; } .note-bg-green { background-color: #e8f5e9; border-color: #c8e6c9; } .note-bg-teal { background-color: #e0f2f1; border-color: #b2dfdb; } .note-bg-blue { background-color: #e3f2fd; border-color: #bbdefb; } .note-bg-purple { background-color: #f3e5f5; border-color: #e1bee7; } .note-bg-gray { background-color: #f5f5f5; border-color: #eeeeee; } .note-bg-brown { background-color: #efebe9; border-color: #d7ccc8; }

/* --- SAYFALAMA VE DİĞER --- */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 20px; align-items: center; }
.pagination-container { display: flex; justify-content: center; gap: 15px; margin-top: 15px; padding-top: 10px; border-top: 1px solid #eee; }
.page-btn { background: white; border: 1px solid #ddd; padding: 6px 15px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; color: #555; }
.page-btn.active { background: #0091ce; color: white; border-color: #0091ce; }
.page-btn:hover:not(:disabled) { background: #f0f7ff; border-color: #0091ce; color: #0091ce; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; background: #f9f9f9; }
.reading-page-active { background: #ff5722 !important; border-color: #ff5722 !important; color: white !important; }

#backupArea { border: 2px dashed #ccc; padding: 20px; border-radius: 10px; margin-top: 10px; }
.footer { margin-top: 15px; font-size: 0.75rem; color: #999; text-align: center; padding-bottom: 20px; }

/* --- MOBİL OPTİMİZASYON --- */
@media (max-width: 480px) {
body { padding: 10px; padding-top: 70px; }
.container { padding: 15px; width: 100%; max-width: 100%; border-radius: 16px; }
.widget-card { padding: 12px 15px; border-radius: 12px; }
.widget-grid { gap: 10px; }
.widget-card > div[style*="justify-content:space-between"] { justify-content: space-between !important; gap: 2px; }
.widget-card strong[id^="time"] { font-size: 0.95rem; }
.widget-card div[style*="font-size:0.7rem"] { font-size: 0.65rem !important; opacity: 0.8; }
.btn, .auth-input, .input-group input, .input-group select { width: 100%; }
.app-header { padding: 0 15px; height: 55px; }
.header-user { font-size: 0.9rem; }
.home-card { padding: 15px; margin-bottom: 10px; }
.home-card h3 { font-size: 1rem; }
}

/* Sinema Kulübü Kırmızı Arama Butonu */
.netflix-search-btn { background: linear-gradient(135deg, #ff0f1a, #b20710); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3); }
.netflix-search-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(229, 9, 20, 0.5); filter: brightness(1.1); }
.netflix-search-btn:active { transform: scale(0.9); box-shadow: 0 2px 5px rgba(229, 9, 20, 0.3); }

/* Web Arşivi Akıllı Ekle Butonu */
#readingBtnText { background: linear-gradient(135deg, #ff9800, #f57c00); color: white; border: none; padding: 0 24px; font-weight: 700; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3); }
#readingBtnText:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 152, 0, 0.5); filter: brightness(1.1); }
#readingBtnText:active { transform: scale(0.95); box-shadow: 0 2px 5px rgba(255, 152, 0, 0.3);
}

/* --- NOTLAR MODERN ARAMA VE MENÜ --- */
.note-search-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.note-search-input { flex: 1; padding: 12px 15px; border-radius: 12px; border: 1px solid #ddd; background: white; font-size: 0.95rem; outline: none; transition: border-color 0.2s; height: 45px; box-sizing: border-box; }
.note-search-input:focus { border-color: #0091ce; }
.note-menu-btn { background: white; border: 1px solid #ddd; border-radius: 12px; padding: 0 15px; height: 45px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #555; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.note-menu-btn:active { background: #f0f4f8; transform: scale(0.95); }

/* --- NOT AYARLARI MODALI --- */
.menu-section-title { font-size: 0.8rem; color: #888; font-weight: 700; text-transform: uppercase; margin: 15px 0 10px 0; letter-spacing: 0.5px; }
.menu-opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-opt-btn { background: #f8f9fa; border: 1px solid #eee; padding: 10px; border-radius: 10px; color: #555; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.menu-opt-btn.active { background: #e3f2fd; color: #0091ce; border-color: #0091ce; box-shadow: 0 2px 8px rgba(0, 145, 206, 0.15); }

/* --- KART ALTI (YEŞİL TİCK VE TARİH) --- */
.checklist-footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(0,0,0,0.06); }
.checklist-badge { background: #e8f5e9; color: #4caf50; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid #c8e6c9; }

/* --- YENİ: FANCY SAVED WORDS GRID --- */
.saved-words-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; padding-bottom: 20px; }
.saved-word-card { background: white; border-radius: 16px; padding: 15px; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05); transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.saved-word-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 145, 206, 0.15); border-color: #b3e5fc; }
.saved-word-card:active { transform: scale(0.98); }
.sw-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.sw-flag { font-size: 1.5rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.sw-word { font-size: 1.1rem; font-weight: 800; color: #2c3e50; margin-bottom: 4px; word-break: break-word; line-height: 1.2; }
.sw-trans { font-size: 0.85rem; color: #0091ce; font-weight: 600; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px dashed #eee; padding-top: 8px; }
.sw-date { font-size: 0.65rem; color: #90a4ae; font-weight: 500; }
.sw-audio-btn { background: #f0f7ff; color: #0091ce; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.sw-audio-btn:hover { background: #e1f5fe; }
.sw-delete-btn { position: absolute; top: 10px; right: 10px; background: rgba(255, 235, 238, 0.8); color: #c62828; border: none; width: 28px; height: 28px; border-radius: 8px; font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.saved-word-card:hover .sw-delete-btn { opacity: 1; }

/* Mobilde silme butonu hep görünsün */
@media (max-width: 768px) { .sw-delete-btn { opacity: 1; background: #fff; border:1px solid #ffebee; box-shadow: 0 2px 5px rgba(0,0,0,0.05); } }

/* --- SÖZLÜK AUTOCOMPLETE & KAPAT BUTONU --- */
.dict-search-wrapper { position: relative; z-index: 10; }
.dict-suggestions-box { position: absolute; top: 100%; left: 0; right: 0; background: white; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); border: 1px solid #eee; max-height: 250px; overflow-y: auto; z-index: 100; margin-top: 5px; display: none; }
.dict-suggestion-item { padding: 12px 15px; border-bottom: 1px solid #f5f5f5; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background 0.2s; }
.dict-suggestion-item:last-child { border-bottom: none; }
.dict-suggestion-item:hover { background: #f0f7ff; }
.dict-sugg-word { font-weight: bold; color: #333; }
.dict-sugg-trans { font-size: 0.85rem; color: #777; }
.dict-sugg-flag { font-size: 1.2rem; }
.dict-close-result-btn { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.3); color: white; border: 1px solid rgba(255,255,255,0.5); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; transition: all 0.2s; z-index: 5; }
.dict-close-result-btn:hover { background: rgba(255, 255, 255, 0.9); color: #c62828; }

/* --- CYBER-MODERN DICTIONARY UI (GÜÇLENDİRİLMİŞ & SIKIŞTIRILMIŞ) --- */
.saved-words-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; padding-bottom: 80px; }
.saved-word-card { background: #ffffff; border-radius: 16px; padding: 15px; position: relative; box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.05); border-bottom: 4px solid #00bcd4; transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 110px; }
.saved-word-card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(0, 188, 212, 0.2); border-color: #b2ebf2; }
.saved-word-card:active { transform: scale(0.97); }
.saved-word-card.memorized-card { border-bottom-color: #4caf50; background: linear-gradient(to bottom right, #f1f8e9, #ffffff); }
.saved-word-card.memorized-card:hover { box-shadow: 0 12px 20px rgba(76, 175, 80, 0.25); }
.sw-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.sw-flag { font-size: 1.5rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)); }
.sw-note-badge { font-size: 0.75rem; color: #ff9800; background: #fff3e0; padding: 2px 6px; border-radius: 6px; border: 1px solid #ffe0b2; display: flex; align-items: center; }
.sw-word { font-size: 1.2rem; font-weight: 800; color: #2c3e50; margin-bottom: 4px; word-break: break-word; line-height: 1.1; letter-spacing: -0.5px; }
.sw-trans { font-size: 0.9rem; color: #00838f; font-weight: 600; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: 0.9; }
.sw-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(0,0,0,0.04); }
.sw-date { font-size: 0.65rem; color: #b0bec5; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.sw-audio-btn { background: #e0f7fa; color: #006064; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.sw-audio-btn:hover { background: #00bcd4; color: white; transform: rotate(15deg); }
.sw-delete-btn { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; border: none; background: rgba(255,255,255,0.8); color: #ff5252; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.sw-delete-btn:hover { background: #ff5252; color: white; }
.saved-word-card:hover .sw-delete-btn { opacity: 1; }
@media (max-width: 768px) { .sw-delete-btn { opacity: 1; background: #fafafa; border: 1px solid #eee; } }
/* --- 3'LÜ MENÜ VE TURUNCU BUTON STİLİ (MINIFIED) --- */
.sub-tabs-container { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 20px; background: #f1f3f4; padding: 5px; border-radius: 16px; width: 100%; box-sizing: border-box; }
.sub-tab-pill { flex: 1; padding: 10px 0; border-radius: 12px; border: none; background: transparent; color: #666; font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: all 0.3s; text-align: center; white-space: nowrap; }
.sub-tab-pill.active { background: white; color: #0091ce; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.sub-tab-pill.active.memorized { color: #4caf50; }
.sub-tab-pill.flashcard-pill { color: #ef6c00; background-color: rgba(255, 152, 0, 0.1); }
.sub-tab-pill.flashcard-pill:hover { background-color: rgba(255, 152, 0, 0.2); }
.sub-tab-pill.flashcard-pill.active { background: #ff9800; color: white; box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3); }
.dict-note-area { width: 100%; border: 1px solid #e0e0e0; background: #fafafa; border-radius: 10px; padding: 10px; font-family: inherit; font-size: 0.95rem; resize: vertical; min-height: 70px; margin-top: 10px; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.dict-note-area:focus { border-color: #00bcd4; background: white; box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1); }
.memorized-badge { background: linear-gradient(135deg, #4caf50, #2e7d32); color: white; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }

/* X butonu çakışmasını önlemek için */
#wdModalWord { position: relative; } 
#wdModalWord button { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   YOUTUBE MODÜLÜ ÖZEL FANCY TASARIMLARI
   ========================================================================== */
.yt-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 30px;
}

.yt-fancy-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    border-bottom: 3px solid #ff0000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s;
}

.yt-fancy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.15);
}

.yt-fancy-card:active {
    transform: scale(0.97);
}

.yt-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

.yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.yt-fancy-card:hover .yt-thumb {
    opacity: 1;
    transform: scale(1.05);
}

.yt-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.yt-fancy-card:hover .yt-play-overlay {
    opacity: 1;
}

.yt-badge-added {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

.yt-badge-wish {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 145, 206, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

.yt-card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.yt-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-channel {
    font-size: 0.75rem;
    color: #ff0000;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-note-box {
    background: #fff5f5;
    border-left: 2px solid #ff0000;
    padding: 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #555;
    font-style: italic;
    margin-bottom: 6px;
}

.yt-date-footer {
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
    margin-top: auto;
    text-align: right;
}

.yt-add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 5;
}

.yt-add-btn:active {
    transform: scale(0.9);
}

/* Mobilde tek sütun olsun dersen bu eklenebilir: */
@media (max-width: 480px) {
    .yt-grid-container {
        grid-template-columns: 1fr;
    }
}

/* ================= YOUTUBE KÜRATÖR V3 EKLENTİLERİ ================= */
.yt-stats-row {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.yt-duration-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.yt-star-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(3px);
    transition: all 0.2s;
    z-index: 10;
}
.yt-star-btn.active {
    color: #f1c40f;
    background: rgba(0, 0, 0, 0.8);
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.8);
}
.yt-star-btn:hover { transform: scale(1.1); }

.yt-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.yt-minitag {
    background: #e3f2fd;
    color: #1565c0;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #bbdefb;
}

.yt-folder-badge {
    background: #fff3e0;
    color: #ef6c00;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #ffe0b2;
}

/* Gelişmiş Pagination Stilleri */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    padding: 10px;
    flex-wrap: wrap; /* Ekrana sığmazsa alt satıra geçer, taşmayı önler */
}

.page-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
    white-space: nowrap; /* Metnin alt satıra kaymasını veya kopmasını engeller */
    flex-shrink: 0;
}

.page-btn:hover:not(.disabled) { 
    background: #f0f0f0; 
    border-color: #ccc;
}

.page-btn.active {
    background: #ff0000; /* Kırmızı tema, isteğine göre değiştirebilirsin */
    color: white;
    border-color: #ff0000;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #fafafa;
}

.page-dots {
    padding: 0 4px;
    color: #888;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5px;
    letter-spacing: 2px;
}

/* ==========================================================================
   YAPAY ZEKA CHAT MODÜLÜ (SAAS UI)
   ========================================================================== */

/* Sol Menü (Geçmiş) */
.chat-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.3s;
}

/* Sağ Alan (Sohbet Ekranı) */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
}

/* Mesajların Aktığı Alan */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Mesaj Balonları */
.chat-msg-row { display: flex; width: 100%; }
.chat-msg-row.user { justify-content: flex-end; }
.chat-msg-row.ai { justify-content: flex-start; }

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-msg-row.user .chat-bubble {
    background: #0091ce;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg-row.ai .chat-bubble {
    background: #f1f3f4;
    color: #333;
    border-bottom-left-radius: 4px;
    border: 1px solid #eee;
}

/* Giriş Kutusu */
.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-input-area textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 12px 15px;
    font-size: 0.95rem;
    outline: none;
    resize: none;
    max-height: 120px;
    min-height: 20px;
    background: #fafafa;
    transition: border-color 0.2s;
}
.chat-input-area textarea:focus { border-color: #0091ce; }

#chatSendBtn {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.1s;
}
#chatSendBtn:active { transform: scale(0.9); }

/* Geçmiş Sohbet Kartları */
.chat-history-item {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    margin-bottom: 5px;
    border: 1px solid transparent;
}
.chat-history-item:hover { background: #e9ecef; }
.chat-history-item.active { background: #e1f5fe; border-color: #b3e5fc; font-weight: bold; color: #0091ce; }

.chat-history-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.chat-history-menu {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}
.chat-history-menu:hover { background: rgba(0,0,0,0.05); color: #333; }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    #aiChatPage { height: 100vh; border-radius: 0; margin: 0; max-width: 100%; border:none; }
    .chat-sidebar {
        position: absolute;
        top: 0;
        left: -100%;
        height: 100%;
        z-index: 100;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    .chat-sidebar.active { left: 0; }
}

/* Yükleniyor (Typing) Animasyonu */
.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #888;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite both;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
