/* 
 * Explorer Tasarım Stilleri - Yönetici Girişi & Upload & Yüzen Pencereler
 * 
 * Bu CSS dosyası; pencerelerin masaüstü yerleşimlerini, Winamp temasını,
 * Not Defteri tasarımını, yönetici giriş rozetini ve dropzone alanını biçimlendirir.
 */

:root {
    /* Renk Değişkenleri */
    --header-dark: #3e505b;       /* Koyu barut mavisi başlık barı */
    --header-mid: #4e616c;        /* Alt navigasyon barı rengi */
    --sidebar-bg: #e9ecef;        /* Sol klasör listesi açık gri arka plan */
    --content-bg: #ffffff;        /* Dosya listesi temiz beyaz arka plan */
    
    --accent-blue: #15a0df;       /* Seçim ve aktif klasör canlı mavi rengi */
    --accent-blue-hover: #0d8bc4;
    --accent-light: #e0f2fe;      /* Seçili dosya hafif mavi arka planı */
    
    --border-grey: #cbd5e1;       /* İnce kenarlıklar için gri */
    --text-dark: #2c3e50;         /* Ana koyu metinler */
    --text-grey: #62727d;         /* İkincil gri metinler */
    --text-white: #ffffff;        /* Başlıklar ve beyaz metinler */

    --font-sans: 'Outfit', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --window-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Genel Sıfırlama ve Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none; /* Three.js tüpler için gerekli */
}

/* Arka Plan Görseli ve Blur */
.desktop-background {
    width: 100vw;
    height: 100vh;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1; /* Canvas’ın üzerinde */
    pointer-events: none; /* Boş alanlarda canvas olaylara cevap versin */
}

/* Interactive elements inside desktop-background need pointer-events: auto */
.desktop-icons-container, .desktop-window, .taskbar, .context-menu, #desktop-taskbar, .modal-overlay {
    pointer-events: auto;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    display: block;
    width: 100vw !important;
    height: 100vh !important;
    touch-action: none;
}

/* Kilit (Başlangıç) Ekranı */
#startup-login-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(15px);
    z-index: 99999; /* Herşeyin üzerinde */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    user-select: none;
    pointer-events: auto;
}

.startup-time {
    font-size: 64px;
    font-weight: 300;
    margin-bottom: 8px;
}

.startup-date {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 60px;
}

.startup-users {
    display: flex;
    gap: 40px;
}

.startup-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 20px;
    border-radius: 12px;
}

.startup-user:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.startup-user-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.startup-user-icon i {
    width: 40px;
    height: 40px;
}

.startup-user-name {
    font-size: 18px;
    font-weight: 500;
}

.inline-login-input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: #fff;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}
.inline-login-input:focus {
    border-color: #3b82f6;
}
.inline-login-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.inline-login-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #3b82f6;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.inline-login-btn:hover {
    background: #2563eb;
}

/* ANA PENCERE KONTEYNERİ */
.app-container {
    width: 100%;
    max-width: 100% !important;
    height: 100%;
    min-height: 100%;
    background: var(--content-bg);
    border-radius: 8px;
    box-shadow: var(--window-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 1. ÜST BAŞLIK BARI (HEADER) */
.window-header {
    background: var(--header-dark);
    display: flex;
    align-items: center;
    justify-content: space-between; /* İki uca yayılmayı sağlar */
    height: 40px;
    padding: 0 16px;
    user-select: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
}

.hamburger-menu {
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 16px;
    height: 16px;
    color: #a5b4fc;
}

.app-title {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Yönetici Girişi Header Alanları */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, border-color 0.15s;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.admin-badge {
    background: #10b981; /* Zümrüt yeşili yönetici modu */
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.badge-icon {
    width: 12px;
    height: 12px;
}

/* 2. NAVİGASYON BARI VE ADRES ÇUBUĞU */
.nav-bar {
    background: var(--header-mid);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn i {
    width: 16px;
    height: 16px;
}

.btn-back-circle {
    background: var(--content-bg) !important;
    color: var(--header-mid) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    width: 30px;
    height: 30px;
}

.btn-back-circle:disabled {
    opacity: 0.6 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    color: rgba(0,0,0,0.3) !important;
    box-shadow: none;
}

/* Adres Çubuğu */
.address-bar-container {
    flex: 1;
    background: var(--content-bg);
    border-radius: 4px;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    overflow: hidden;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb-list::-webkit-scrollbar {
    display: none;
}

.breadcrumb-item {
    cursor: pointer;
    color: var(--text-grey);
    transition: color 0.15s;
}

.breadcrumb-item:hover {
    color: var(--accent-blue);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 700;
    pointer-events: none;
}

.breadcrumb-separator {
    color: var(--text-grey);
    display: flex;
    align-items: center;
}

.breadcrumb-separator i {
    width: 12px;
    height: 12px;
}

/* Arama ve Görünüm Kontrolleri */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-container {
    position: relative;
    width: 180px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-grey);
}

.search-container input {
    width: 100%;
    background: var(--content-bg);
    border: none;
    outline: none;
    height: 32px;
    border-radius: 4px;
    padding: 0 10px 0 30px;
    font-size: 13px;
    color: var(--text-dark);
    font-family: var(--font-sans);
}

.clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-grey);
    cursor: pointer;
}

.clear-btn i {
    width: 12px;
    height: 12px;
}

.view-toggles {
    display: flex;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 2px;
}

.view-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 28px;
    height: 28px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--content-bg);
    color: var(--header-mid);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.view-btn i {
    width: 14px;
    height: 14px;
}

/* 3. ANA GEZGİN İÇERİĞİ */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: var(--content-bg);
    position: relative;
    min-width: 0;       /* Flex child'ın taşmadan küçülmesine izin verir */
    width: 100%;        /* Her zaman tam genişliği kaplar */
    align-items: stretch; /* Tüm paneller tam yükseklikte olur */
}

/* Sol Sidebar - Klasör Ağacı */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-grey);
    padding: 16px 8px;
    overflow-y: auto;
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s, border-right-width 0.3s;
}

.sidebar.collapsed {
    width: 0;
    padding: 0;
    border-right-width: 0;
    overflow: hidden;
}

.tree-section {
    margin-bottom: 16px;
    transition: margin-bottom 0.2s ease;
}

.tree-section-header.clickable-header {
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.tree-section-header.clickable-header:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tree-section-header {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 6px 8px;
    margin-bottom: 4px;
}

.section-chevron {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    color: var(--text-grey);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tree-section.collapsed .section-chevron {
    transform: rotate(-90deg);
}

.tree-section.collapsed .folder-tree {
    display: none;
}

.section-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.star-icon {
    color: #f59e0b;
}

.recent-icon {
    color: #64748b;
}

.folder-tree {
    display: flex;
    flex-direction: column;
}

/* Klasör Ağacı Node */
.tree-node {
    margin-bottom: 1px;
}

.tree-row {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}

.tree-row:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tree-row.active {
    background: var(--accent-blue);
    color: var(--text-white);
    font-weight: 600;
}

.tree-row.active .tree-icon {
    color: var(--text-white) !important;
}

.tree-indent {
    width: 14px;
    flex-shrink: 0;
}

.tree-toggle {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    color: var(--text-grey);
    transition: transform 0.15s ease;
}

.tree-row.active .tree-toggle {
    color: var(--text-white);
}

.tree-toggle.expanded {
    transform: rotate(90deg);
}

.tree-toggle i {
    width: 12px;
    height: 12px;
}

.tree-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: var(--text-grey);
    flex-shrink: 0;
}

.tree-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.tree-children {
    display: none;
}

.tree-children.expanded {
    display: block;
}

.tree-empty {
    padding: 6px 8px 6px 26px;
    font-size: 12px;
    color: var(--text-grey);
}

/* Orta Bölüm: Dosya Listesi İçerik Paneli */
.content-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--content-bg);
    min-width: 0; /* Flex shrink için zorunlu - taşmayı önler */
}

.content-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-grey);
    background: #f8fafc;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 12px;
    color: var(--text-grey);
}

#sort-select {
    background: var(--content-bg);
    border: 1px solid var(--border-grey);
    color: var(--text-dark);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

/* Dosya Listesi Izgarası */
.file-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.file-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px 16px;
    align-content: start;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
}

.file-item:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

.file-item.selected {
    background: var(--accent-light) !important;
    border-color: var(--accent-blue) !important;
}

.file-item-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-item-icon svg {
    width: 100%;
    height: 100%;
}

.file-item-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 4px;
}

.file-item-details {
    display: none;
}

/* Liste Görünümü */
.file-list.list-view {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-list.list-view .file-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.file-list.list-view .file-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.file-list.list-view .file-item.selected {
    background: var(--accent-light) !important;
    border-color: var(--accent-blue) !important;
}

.file-list.list-view .file-item-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 0;
    margin-right: 12px;
    flex-shrink: 0;
}

.file-list.list-view .file-item-name {
    flex: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.file-list.list-view .file-item-details {
    display: flex;
    flex: 3;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-grey);
    gap: 20px;
}

.file-list.list-view .file-detail-type {
    flex: 1;
}

.file-list.list-view .file-detail-size {
    flex: 1;
    text-align: right;
}

.file-list.list-view .file-detail-date {
    flex: 2;
    text-align: right;
}

/* Damalı zemin */
.checkerboard-bg {
    background-color: #ffffff;
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
                      linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
                      linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

.image-thumbnail-container {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-grey);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-thumbnail-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Boş Klasör Ekranı */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-grey);
    gap: 12px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

/* Sağ Panel - Önizleme */
.preview-pane {
    width: 300px;
    background: var(--content-bg);
    border-left: 1px solid var(--border-grey);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch; /* Her zaman tam yükseklikte kalmasını sağlar */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-left-width 0.3s;
}

.preview-pane.collapsed {
    width: 0;
    border-left-width: 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-grey);
    background: #f8fafc;
}

.preview-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-grey);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
}

.close-btn:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
}

.close-btn i {
    width: 16px;
    height: 16px;
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-selection {
    text-align: center;
    color: var(--text-grey);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--text-grey);
    margin-bottom: 8px;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border-grey);
}

.preview-video {
    width: 100%;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid var(--border-grey);
}

.preview-text {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-dark);
    overflow-y: auto;
    white-space: pre-wrap;
    text-align: left;
}

.preview-generic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.preview-generic-icon {
    width: 48px;
    height: 48px;
    color: var(--text-grey);
}

.preview-generic-text {
    font-size: 12px;
    color: var(--text-grey);
}

/* Önizleme Metadata */
.preview-metadata {
    padding: 16px 20px;
    border-top: 1px solid var(--border-grey);
    background: #f8fafc;
}

.meta-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 12px;
}

.meta-label {
    color: var(--text-grey);
    width: 90px;
    flex-shrink: 0;
    font-weight: 500;
}

.meta-value {
    color: var(--text-dark);
    word-break: break-all;
    font-weight: 600;
}

.preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.download-btn {
    background: var(--accent-blue);
    color: var(--text-white);
}

.download-btn:hover {
    background: var(--accent-blue-hover);
}

.open-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-grey);
    color: var(--text-dark);
}

.open-btn:hover {
    background: #e2e8f0;
}

.action-btn i {
    width: 14px;
    height: 14px;
}

/* 4. ALT DURUM BARI */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border-grey);
    font-size: 11px;
    color: var(--text-grey);
    user-select: none;
    flex-shrink: 0;
    min-height: 28px;
}

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

.separator {
    color: var(--border-grey);
}

.status-right {
    display: flex;
    align-items: center;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success-color);
}

.sync-status.synced .status-dot {
    background-color: #10b981;
}

.sync-status.checking .status-dot {
    background-color: #3b82f6;
    animation: pulse 1s infinite ease-in-out;
}

.sync-status.error .status-dot {
    background-color: #ef4444;
}

/* 5. ÖZEL SAĞ TIK CONTEXT MENÜSÜ */
.context-menu {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-grey);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 4px 0;
    min-width: 170px;
    z-index: 10000;
    user-select: none;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.context-menu-item:hover {
    background: var(--accent-blue);
    color: var(--text-white);
}

.context-menu-item i {
    width: 14px;
    height: 14px;
    color: inherit;
}

/* Sağ Tık Menüsü Grupları */
.context-group {
    display: none;
    flex-direction: column;
}

.context-menu-separator {
    height: 1px;
    background: var(--border-grey);
    margin: 4px 0;
}

.context-menu-separator.admin-action {
    display: none;
}

/* ========================================================== */
/* YÜZEN UYGULAMA PENCERELERİ İÇİN STİLLER (DESKTOP WINDOWS) */
/* ========================================================== */

.desktop-window {
    position: absolute;
    z-index: 1000;
    background: var(--content-bg);
    border: 1px solid #94a3b8;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.1s ease;
}

.window-title-bar {
    background: var(--header-dark);
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    height: 32px;
    cursor: move;
    user-select: none;
}

/* YENİDEN BOYUTLANDIRMA VE PROMPT MODAL STİLLERİ */
.desktop-window.resizable {
    resize: both;
    min-width: 400px;
    min-height: 300px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-prompt-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #e2e8f0;
}

.custom-prompt-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: #1e293b;
}

.custom-prompt-box p {
    margin-bottom: 16px;
    color: #475569;
    font-size: 14px;
}

.prompt-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.prompt-input:focus {
    border-color: #3b82f6;
}

.prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.prompt-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.cancel-btn {
    background: #f1f5f9;
    color: #475569;
}

.cancel-btn:hover {
    background: #e2e8f0;
}

.confirm-btn {
    background: #3b82f6;
    color: #ffffff;
}

.confirm-btn:hover {
    background: #2563eb;
}

.window-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.window-app-icon {
    width: 14px;
    height: 14px;
    color: #a5b4fc;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-control-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}

.window-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.window-control-btn.btn-close:hover {
    background: #ef4444 !important;
}

.window-control-btn i {
    width: 12px;
    height: 12px;
}

.window-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 1. FOTOĞRAF GÖRÜNTÜLEYİCİ */
#app-photo-viewer {
    width: 600px;
    height: 480px;
}

.photo-viewer-body {
    background: #0f172a;
    display: flex;
    flex-direction: column;
}

.photo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
    position: relative;
}

#photo-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 2px;
}

.photo-controls-bar {
    background: #1e293b;
    border-top: 1px solid rgba(255,255,255,0.05);
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
}

.photo-controls-bar button {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.photo-controls-bar button:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.08);
}

.photo-controls-bar button i {
    width: 16px;
    height: 16px;
}

/* 2. VİDEO OYNATICI (VİDEO PLAYER) */
#app-video-player {
    width: 640px;
    height: 450px;
}

.video-player-body {
    background: #000000;
}

#video-player-media {
    width: 100%;
    flex: 1;
    background: #000000;
    object-fit: contain;
}

.video-controls-bar {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.video-controls-bar .control-btn, 
.video-controls-bar .volume-btn,
.video-controls-bar .fullscreen-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.video-controls-bar button:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
}

.video-controls-bar button i {
    width: 16px;
    height: 16px;
}

.video-controls-bar .seek-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    outline: none;
    background: #475569;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.video-controls-bar .time-display {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
    white-space: nowrap;
}

.video-volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-volume-container .volume-slider {
    width: 70px;
    height: 4px;
    background: #475569;
    accent-color: var(--accent-blue);
    outline: none;
    cursor: pointer;
}

/* 3. RETRO WINAMP MÜZİK ÇALAR */
.winamp-window {
    width: 380px;
    height: auto;
    border: 3px solid #334155;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.winamp-title-bar {
    background: linear-gradient(90deg, #0f172a 0%, #334155 100%) !important;
    border-bottom: 2px solid #0f172a;
    height: 28px;
}

.winamp-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #111827;
}

.winamp-screen {
    background: #020617;
    border: 2px solid #374151;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.winamp-screen-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.winamp-song-title-container {
    flex: 1;
    overflow: hidden;
    margin-right: 12px;
    height: 18px;
}

.winamp-song-title {
    font-family: monospace;
    font-size: 11px;
    font-weight: bold;
    color: #22c55e;
    text-shadow: 0 0 4px rgba(34, 197, 94, 0.6);
    white-space: nowrap;
    display: inline-block;
    animation: winamp-ticker 10s linear infinite;
}

@keyframes winamp-ticker {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.winamp-time-display {
    font-family: monospace;
    font-size: 22px;
    font-weight: bold;
    color: #22c55e;
    text-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
    letter-spacing: 1px;
    line-height: 1;
}

.winamp-screen-bottom {
    height: 40px;
    border-top: 1px solid #1f2937;
    padding-top: 4px;
}

.winamp-visualizer {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 2px;
}

.winamp-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.winamp-seek-bar {
    width: 100%;
    height: 6px;
    background: #1f2937;
    outline: none;
    cursor: pointer;
    accent-color: #22c55e;
    border-radius: 3px;
}

.winamp-button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playback-buttons {
    display: flex;
    gap: 2px;
}

.playback-buttons button {
    background: linear-gradient(180deg, #4b5563 0%, #1f2937 100%);
    border: 1px solid #111827;
    color: #d1d5db;
    width: 32px;
    height: 26px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.playback-buttons button:active {
    background: #111827;
    border-color: #374151;
    transform: translateY(1px);
    box-shadow: none;
}

.playback-buttons button i {
    width: 12px;
    height: 12px;
}

.winamp-volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
}

.winamp-vol-icon {
    width: 14px;
    height: 14px;
}

.winamp-volume-slider {
    width: 80px;
    height: 6px;
    background: #1f2937;
    accent-color: #22c55e;
    outline: none;
    cursor: pointer;
    border-radius: 3px;
}

/* 4. RETRO KOD EDİTÖRÜ (NOTEPAD) PENCERESİ */
#app-notepad {
    width: 800px;
    height: 550px;
}

.notepad-menu-bar {
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-grey);
    font-size: 12px;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1e293b;
    user-select: none;
}

.menu-bar-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.notepad-menu-bar span {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
}

.notepad-menu-bar span:hover {
    background: #e2e8f0;
}

.notepad-save-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notepad-save-btn:hover {
    background: #059669;
}

.notepad-save-btn:active {
    transform: scale(0.97);
}

.notepad-save-btn i {
    width: 12.5px;
    height: 12.5px;
}

.notepad-body {
    background: #1e1e1e; /* Monaco varsayılan arka planı */
}

.notepad-monaco-container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
}

.notepad-status-bar {
    background: #1e293b;
    border-top: 1px solid #334155;
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 11px;
    color: #94a3b8;
    user-select: none;
}

.notepad-status-bar span {
    border-left: 1px solid #334155;
    padding-left: 12px;
}

.notepad-status-bar span:first-child {
    border-left: none;
    padding-left: 0;
}


/* ========================================================== */
/* 5. YÖNETİCİ GİRİŞ PENCERESİ VE SÜRÜKLE BIRAK STİLLERİ       */
/* ========================================================== */

.login-window {
    width: 320px;
    height: auto;
}

.login-body {
    padding: 20px;
    background: #f8fafc;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    height: 34px;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    padding: 0 10px;
    font-size: 12px;
    color: var(--text-dark);
    font-family: var(--font-sans);
    outline: none;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(21, 160, 223, 0.15);
}

.login-error {
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    background: #fee2e2;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #fca5a5;
}

.login-submit-btn {
    background: var(--header-dark);
    color: #ffffff;
    border: none;
    height: 36px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
    margin-top: 6px;
}

.login-submit-btn:hover {
    background: var(--header-mid);
}

/* Sürükle Bırak Dropzone Alanı (Dropzone Overlay) */
.dropzone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.15); /* Hafif zümrüt yeşili saydamlık */
    backdrop-filter: blur(3px);
    border: 3px dashed #10b981;
    border-radius: 6px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Drag olaylarının dalgalanmasını (flicker) engeller */
    margin: 8px;
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.15);
    animation: dropzone-pulse-border 1.5s infinite ease-in-out;
}

@keyframes dropzone-pulse-border {
    0%, 100% { border-color: #10b981; }
    50% { border-color: #34d399; }
}

.dropzone-content {
    background: #ffffff;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 24px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dropzone-icon {
    width: 44px;
    height: 44px;
    color: #10b981;
    animation: dropzone-bounce 1s infinite alternate ease-in-out;
}

@keyframes dropzone-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.dropzone-content p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Pencere Tam Ekran Durumu */
.desktop-window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
}

/* Responsive */
@media (max-width: 950px) {
    .desktop-background {
        padding: 0;
    }
    .app-container {
        height: 100vh;
        border-radius: 0;
    }
    .preview-pane {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;          /* Status bar hizasına kadar tam uzar */
        z-index: 10;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    }
}

@media (max-width: 650px) {
    .sidebar {
        display: none;
    }
    .nav-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .search-container {
        width: 100%;
    }
    .desktop-window {
        width: 90% !important;
        left: 5% !important;
    }
}

/* ========================================== */
/* SAĞ TIK BARI (CONTEXT MENU) STİLLERİ       */
/* ========================================== */
.context-menu {
    position: absolute;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 4px 0;
    min-width: 180px;
    z-index: 99999999;
    user-select: none;
    animation: contextMenuShow 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contextMenuShow {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-group {
    display: flex;
    flex-direction: column;
}

.context-menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.context-menu-item:hover {
    background: var(--accent-light);
    color: var(--accent-blue-hover);
}

.context-menu-item .menu-icon {
    width: 15px;
    height: 15px;
    color: var(--text-grey);
}

.context-menu-item:hover .menu-icon {
    color: var(--accent-blue-hover);
}

/* ========================================== */
/* DOSYA KOPYALAMA PENCERESİ VE BARI STİLLERİ  */
/* ========================================== */
.copy-progress-window {
    width: 420px !important;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.copy-progress-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copy-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#copy-status-text {
    font-size: 13px;
    color: var(--text-grey);
}

.copy-file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-progress-bar-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin: 4px 0;
}

.copy-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.copy-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.stats-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Görev Çubuğu */
.desktop-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(30, 41, 59, 0.85); /* Koyu arduvaz */
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* iframe modunda görev çubuğunu ve yüzen pencereleri gizle (Dosya kopyalama/upload ve admin girişi pencereleri hariç) */
body.iframe-mode #desktop-taskbar,
body.iframe-mode .desktop-window:not(#app-explorer):not(#app-copy-progress):not(#app-admin-login),
body.iframe-mode #desktop-icons,
body.iframe-mode #canvas,
body.iframe-mode #startup-login-screen {
    display: none !important;
}

.taskbar-items-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.taskbar-clock-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}

.taskbar-clock-container:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-time {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.taskbar-date {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
}

.taskbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    user-select: none;
    max-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.taskbar-item i {
    width: 18px;
    height: 18px;
}

.taskbar-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Masaüstü Simgeleri */
.desktop-icons-container {
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 15px;
    z-index: 1; /* Pencerelerin altında */
    align-content: flex-start;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s;
    user-select: none;
}

.desktop-icon-img, .desktop-icon-text {
    pointer-events: none;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.desktop-icon-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.desktop-icon-text {
    margin-top: 6px;
    color: #fff;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,0.8);
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maksimum 3 satıra kadar izin verir */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3.9em; /* Taşan kısmın temiz kesilmesini sağlar */
}

/* Boyutlar */
.size-small .desktop-icon { width: 64px; }
.size-small .desktop-icon-img i { width: 32px; height: 32px; }
.size-small .desktop-icon-img svg { width: 32px; height: 32px; }
.size-small .desktop-icon-text { font-size: 11px; }

.size-medium .desktop-icon { width: 80px; }
.size-medium .desktop-icon-img i { width: 42px; height: 42px; }
.size-medium .desktop-icon-img svg { width: 42px; height: 42px; }
.size-medium .desktop-icon-text { font-size: 12px; }

.size-large .desktop-icon { width: 100px; }
.size-large .desktop-icon-img i { width: 56px; height: 56px; }
.size-large .desktop-icon-img svg { width: 56px; height: 56px; }
.size-large .desktop-icon-text { font-size: 13px; }

/* ========================================== */
/* BAŞLAT BUTONU VE BAŞLAT MENÜSÜ STİLLERİ     */
/* ========================================== */
.start-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 12px;
}

.start-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.start-menu-btn:active {
    transform: scale(0.97);
}

.start-icon {
    width: 16px;
    height: 16px;
}

.start-menu-panel {
    position: fixed;
    bottom: 60px; /* Görev çubuğunun üstünde (taskbar 48px + 12px boşluk) */
    left: 12px;
    width: 320px;
    background: rgba(15, 23, 42, 0.85); /* Koyu arduvaz, hafif şeffaf */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 10000; /* Görev çubuğundan daha üstte */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: startMenuAppear 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes startMenuAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.start-menu-header {
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.avatar-icon {
    width: 18px;
    height: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .username {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.user-info .user-role {
    font-size: 11px;
    color: #94a3b8;
}

.start-menu-body {
    padding: 16px;
    flex: 1;
    min-height: 120px;
}

.start-menu-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.start-menu-section .section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.start-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.start-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    color: #cbd5e1;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.start-menu-item:active {
    transform: translateY(0);
}

.start-item-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
}

.start-menu-item span {
    font-size: 11px;
    text-align: center;
    font-weight: 500;
}

.start-menu-footer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
}

.start-menu-actions {
    display: flex;
    width: 100%;
    gap: 8px;
}

.start-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-action-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.15);
}

#start-btn-logout {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

#start-btn-logout:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fff;
}

.start-action-icon {
    width: 14px;
    height: 14px;
}

/* ========================================== */
/* HAVA DURUMU WIDGET'I VE KONUM MODAL STİLLERİ*/
/* ========================================== */
.weather-widget {
    background: rgba(15, 23, 42, 0.45) !important; /* Yarı saydam koyu */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px;
    color: #fff;
    min-width: 260px;
    min-height: 160px;
}

.weather-widget .window-title-bar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.weather-widget:hover .window-title-bar {
    opacity: 1;
    pointer-events: auto;
}

.weather-widget-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 32px);
    background: transparent !important;
}

.weather-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 8px;
}

.weather-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.weather-temp-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#weather-temp {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

#weather-desc {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
}

.weather-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-large-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.4));
}

.weather-footer-row {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    margin-top: auto;
}

.weather-pin-icon {
    width: 12px;
    height: 12px;
    color: #3b82f6;
    margin-right: 4px;
}

#weather-city {
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Konum arama sonuç listesi */
.search-results-list {
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    max-height: 120px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.6);
}

.search-result-item {
    padding: 8px 12px;
    font-size: 12px;
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
}

#weather-city-search::placeholder {
    color: #94a3b8;
}

/* Toast Bildirimi Tasarımı */
.toast-notification {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 100000;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    color: #10b981; /* Başarılı yeşili */
    display: flex;
    align-items: center;
}

/* ========================================== */
/* MASAUSTU WEB UYGULAMASI IKONLARI           */
/* ========================================== */

/* Uygulama ikonu - mor gradient, normal kisayoldan ayırt edilebilir */
.desktop-app-icon .app-icon-img {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transition: box-shadow 0.2s, transform 0.15s;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.desktop-app-icon:hover .app-icon-img {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    transform: scale(1.05);
}

/* WebApp penceresi - tam iframe kaplama */
.webapp-window .webapp-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.webapp-iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none;
    display: block;
    background: #fff;
}

/* WebApp icon container (title bar'da) */
.webapp-icon-circle {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 2px;
}

/* Uygulama düzenleme modalı window-body'si */
#app-edit-modal .login-body {
    background: var(--content-bg);
}

/* ========================================== */
/* PAYLAŞIMA KAPALI GİZLİ KLASÖR STİLLERİ      */
/* ========================================== */

/* Paylaşıma kapalı klasör simge rozeti */
.private-lock-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    z-index: 2;
}

.private-lock-badge i, .private-lock-badge svg {
    width: 10px;
    height: 10px;
    stroke-width: 2.5;
}

/* Sol ağaç menüsünde paylaşıma kapalı ikonu */
.tree-row .private-tree-lock {
    color: #ef4444;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
}

.tree-row .private-tree-lock svg {
    width: 12px;
    height: 12px;
}


