/* Özgaye Emlak - Birleşik & Tam CSS v3.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================== TEMEL DEĞİŞKENLER ===================== */
:root {
    --primary:        #4f46e5;
    --primary-hover:  #4338ca;
    --primary-light:  rgba(79, 70, 229, 0.08);
    --bg-main:        #f1f5f9;
    --bg-sidebar:     #0f172a;
    --bg-sidebar2:    #1e293b;
    --text-main:      #1e293b;
    --text-muted:     #64748b;
    --white:          #ffffff;
    --border:         #e2e8f0;
    --card-shadow:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
    --radius:         10px;
    --radius-lg:      14px;
    --sidebar-w:      240px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===================== SIDEBAR ===================== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    padding: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar .logo {
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar .logo h2 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.sidebar .logo span {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
}

.sidebar nav {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
}
.sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #94a3b8;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.sidebar nav ul li a:hover { background: rgba(255,255,255,0.05); color: #e2e8f0; }
.sidebar nav ul li a.active { background: var(--primary); color: #fff; }
.sidebar nav ul li a i { width: 18px; text-align: center; font-size: 14px; }

/* ===================== CONTENT AREA ===================== */
.content {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===================== HEADER ===================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 4px;
}
header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}
.header-left { display: flex; flex-direction: column; gap: 2px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-right.actions { gap: 8px; }

.text-muted { color: var(--text-muted); font-size: 13px; }
.user-info { font-size: 13px; color: var(--text-muted); }
.user-info strong { color: var(--text-main); }

/* ===================== SECTION HEADER ===================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.section-header h2 { font-size: 17px; font-weight: 700; }

/* ===================== BUTONLAR ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary { background: var(--white); color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover { background: #f8fafc; }

.btn-danger    { background: #fee2e2; color: #dc2626; }
.btn-danger:hover { background: #fecaca; }

.btn-success   { background: #dcfce7; color: #16a34a; }
.btn-success:hover { background: #bbf7d0; }

/* Küçük butonlar (tablo içi) */
.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    gap: 5px;
}
.btn-view   { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.btn-view:hover   { background: #dbeafe; }
.btn-edit   { background: #faf5ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.btn-edit:hover   { background: #ede9fe; }
.btn-delete { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.btn-delete:hover { background: #ffe4e6; }
.btn-icon   { background: transparent; border: none; padding: 6px 8px; color: var(--text-muted); }
.btn-icon:hover { color: var(--primary); }

/* İşlemler sütunu butonlar */
.table-actions { display: flex; gap: 6px; align-items: center; }

/* ===================== BADGES / DURUM ===================== */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.status-aktif    { background: #dcfce7; color: #15803d; }
.status-satildi  { background: #fee2e2; color: #b91c1c; }
.status-kiralandi{ background: #eff6ff; color: #1d4ed8; }
.status-arsiv    { background: #f1f5f9; color: #475569; }

/* ===================== STATS CARDS (Dashboard) ===================== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
}
.card-icon {
    width: 46px; height: 46px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}
.card-info h3 { font-size: 24px; font-weight: 700; }
.card-info p  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ===================== DASHBOARD GRID ===================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

/* ===================== TABLOLAR ===================== */
.recent-listings {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    padding: 20px;
}
.table-container { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.table th {
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.table td {
    padding: 13px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafafa; }

/* ===================== AKTİVİTE LOGU ===================== */
.activity-log-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    padding: 20px;
}
.activity-list { display: flex; flex-direction: column; gap: 2px; }
.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    align-items: flex-start;
}
.activity-item:last-child { border-bottom: none; }
.act-icon {
    width: 32px; height: 32px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 13px;
    flex-shrink: 0;
}
.act-content { flex: 1; min-width: 0; }
.act-content p  { font-size: 13px; color: var(--text-main); line-height: 1.4; }
.act-content small { color: var(--text-muted); font-size: 12px; display: block; margin-top: 2px; }
.act-time { font-size: 11px; color: #94a3b8; display: block; margin-top: 3px; }

/* ===================== FİLTRE PANELİ ===================== */
.filter-panel {
    background: var(--white);
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}
.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    align-items: end;
}
.archive-filter-grid { grid-template-columns: 3fr 1fr !important; }

.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-item label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.filter-item input,
.filter-item select {
    width: 100%;
    padding: 9px 13px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.filter-item input:focus,
.filter-item select:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* ===================== FORM STİLLERİ ===================== */
.modern-form {}
.form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    padding: 24px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ===================== MEDYA YÜKLEYİCİ ===================== */
.media-dropzone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafcff;
}
.media-dropzone:hover,
.media-dropzone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.media-dropzone i { font-size: 28px; margin-bottom: 8px; display: block; }
.media-dropzone p { font-size: 13px; font-weight: 500; }

.media-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f1f5f9;
}
.preview-item img,
.preview-item video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.preview-item .video-preview-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    color: white;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.preview-item .remove-btn {
    position: absolute;
    top: 4px; right: 4px;
    background: rgba(220,38,38,0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}
.preview-item:hover .remove-btn { opacity: 1; }

/* ===================== DETAY SAYFASI ===================== */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}
.gallery-column { display: flex; flex-direction: column; gap: 10px; }
.main-media {
    background: #0f172a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-media img,
.main-media video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.main-media img.zoomable { cursor: zoom-in; }
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}
.thumb-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    background: #1e293b;
    transition: border-color 0.15s;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active { border-color: var(--primary); }
.thumb-item:hover { border-color: #a5b4fc; }
.vid-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 18px;
}

.info-column { display: flex; flex-direction: column; gap: 14px; }
.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    padding: 18px;
}
.info-card h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
    gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.info-row strong { font-size: 13.5px; text-align: right; }
.price { font-size: 15px !important; color: var(--primary); font-weight: 700 !important; }
.internal-note {
    font-size: 13px;
    color: var(--text-muted);
    background: #f8fafc;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
    line-height: 1.6;
    font-style: italic;
}

.description-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    padding: 20px;
}
.description-card h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.description-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-main);
    white-space: pre-wrap;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-overlay .close-btn {
    position: fixed;
    top: 18px; right: 22px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* ===================== BİLDİRİMLER ===================== */
.notifications-section { display: flex; flex-direction: column; gap: 0; }
.notifications-list { display: flex; flex-direction: column; gap: 10px; }
.notification-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow 0.2s;
}
.notification-card:hover { box-shadow: var(--card-shadow-lg); }
.notification-card.acil   { border-left: 4px solid #ef4444; }
.notification-card.fiyat  { border-left: 4px solid #f59e0b; }
.notification-card.satis  { border-left: 4px solid #10b981; }
.notification-card.sistem { border-left: 4px solid var(--primary); }

.notif-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.notification-card.acil  .notif-icon { background: #fee2e2; color: #ef4444; }
.notification-card.fiyat .notif-icon { background: #fef3c7; color: #d97706; }
.notification-card.satis .notif-icon { background: #d1fae5; color: #059669; }
.notification-card.sistem .notif-icon { background: var(--primary-light); color: var(--primary); }

.notif-content { flex: 1; min-width: 0; }
.notif-content h3 { font-size: 13.5px; font-weight: 600; color: var(--text-main); }
.notif-content p  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.notif-date { font-size: 11px; color: #94a3b8; display: block; margin-top: 4px; }
.notif-action { flex-shrink: 0; }

/* ===================== CONTEXT MENU ===================== */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 6px 0;
    z-index: 10000;
    display: none;
    min-width: 190px;
}
.context-menu-item {
    padding: 10px 18px;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    transition: background 0.12s;
}
.context-menu-item:hover { background: var(--primary); color: white; border-radius: 6px; }
.context-menu-item i { width: 16px; text-align: center; }
.context-menu-separator { height: 1px; background: var(--border); margin: 4px 8px; }

/* ===================== LOGİN SAYFASI ===================== */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.login-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-box .logo { text-align: center; margin-bottom: 28px; }
.login-box .logo h1 { font-size: 22px; font-weight: 800; color: var(--text-main); }
.login-box .logo p  { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box .form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.login-box .form-group input { display: block; width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.login-box .form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); outline: none; }
.login-box .btn-primary { width: 100%; padding: 12px; font-size: 15px; }
.login-error { color: #dc2626; font-size: 13px; text-align: center; margin-top: 12px; display: none; }

/* ===================== YARDIMCI ===================== */
.mt-0 { margin-top: 0 !important; }
.gap-0 { gap: 0 !important; }

/* ===================== KLASÖR GÖRÜNÜMÜ (Açık İlanlar) ===================== */
.page-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.page-toolbar input,
.page-toolbar select {
    padding: 9px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-main);
    min-width: 180px;
    -webkit-appearance: none;
    appearance: none;
}
.page-toolbar input:focus,
.page-toolbar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
    outline: none;
}
.toolbar-spacer { flex: 1; }

.stats-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}
.stats-bar strong { color: var(--text-main); }
.stats-bar .badge-acil {
    background: #fee2e2;
    color: #ef4444;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}

.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px 12px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--white);
    box-shadow: var(--card-shadow);
    position: relative;
    user-select: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    text-align: center;
}
.folder-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(79,70,229,0.12);
    transform: translateY(-2px);
}
.folder-item.selected {
    border-color: var(--primary);
    background: #eef2ff;
}
.folder-item.acil {
    border-color: #fca5a5;
    background: #fff5f5;
}
.folder-item.acil:hover { border-color: #ef4444; box-shadow: 0 4px 16px rgba(239,68,68,0.15); }
.folder-item.fiyat-degisti { border-color: #fed7aa; background: #fffbf5; }
.folder-item.fiyat-degisti:hover { border-color: #f97316; }
.folder-item.guncel    { border-color: #a7f3d0; background: #f0fdf9; }
.folder-item.guncel:hover { border-color: #10b981; }
.folder-item.satildi   { border-color: #a7f3d0; background: #f0fdf9; }
.folder-item.satildi:hover { border-color: #10b981; }
.folder-item.kiralandi { border-color: #bfdbfe; background: #eff6ff; }
.folder-item.kiralandi:hover { border-color: #3b82f6; }

.folder-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.folder-badge.acil   { background: #ef4444; color: white; }
.folder-badge.fiyat     { background: #f97316; color: white; }
.folder-badge.guncel    { background: #10b981; color: white; }
.folder-badge.satildi   { background: #10b981; color: white; }
.folder-badge.kiralandi { background: #3b82f6; color: white; }

/* Tamamla Modal */
.tamamla-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
}
.tamamla-modal {
    background: white; border-radius: 16px; padding: 28px;
    width: 480px; max-width: 95vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tamamla-modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

.folder-icon-wrap {
    position: relative;
    width: 76px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.folder-icon-wrap i {
    font-size: 68px;
    color: #f59e0b;
    line-height: 1;
}
.folder-item.acil         .folder-icon-wrap i { color: #ef4444; }
.folder-item.fiyat-degisti .folder-icon-wrap i { color: #f97316; }

.folder-preview {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
    opacity: 0.85;
}

.folder-name {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.folder-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 3px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.folder-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}
.folder-location {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.folder-empty i { font-size: 48px; margin-bottom: 12px; display: block; opacity: 0.3; }
.folder-empty p { font-size: 15px; }

/* Klasör context menüsü */
.folder-ctx-menu {
    position: fixed;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    border-radius: 10px;
    padding: 6px 0;
    z-index: 10000;
    display: none;
    min-width: 210px;
}
.folder-ctx-menu.show { display: block; }
.ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.1s;
}
.ctx-item:hover { background: #f1f5f9; }
.ctx-item.danger { color: #dc2626; }
.ctx-item.danger:hover { background: #fee2e2; }
.ctx-item.success { color: #16a34a; }
.ctx-item.success:hover { background: #dcfce7; }
.ctx-item.warning { color: #d97706; }
.ctx-item.warning:hover { background: #fef3c7; }
.ctx-item i { width: 16px; text-align: center; flex-shrink: 0; }
.ctx-divider { height: 1px; background: var(--border); margin: 4px 8px; }

/* ===================== TAB BAR ===================== */
.tab-bar {
    display: flex;
    gap: 4px;
    background: var(--white);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border);
    width: fit-content;
}
.tab-btn {
    padding: 8px 22px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-btn .tab-count {
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}
.tab-btn.active { background: var(--primary); color: white; }
.tab-btn.active .tab-count { background: rgba(255,255,255,0.25); color: white; }
.tab-btn:hover:not(.active) { background: #f1f5f9; color: var(--text-main); }

/* ===================== YÜKLEME OVERLAY ===================== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 28, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}
.loading-overlay.show { display: flex; }

.loading-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(255,255,255,0.12);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px 36px;
    min-width: 320px;
    text-align: center;
}
.loading-card h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}
.loading-steps { display: flex; flex-direction: column; gap: 10px; }
.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.35);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.4s;
}
.loading-step i { width: 20px; text-align: center; font-size: 14px; }
.loading-step.active { color: white; background: rgba(79,70,229,0.3); }
.loading-step.done { color: #4ade80; background: rgba(74,222,128,0.1); }
.loading-step.done i::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; }

/* ===================== DOSYA GÖRÜNÜMÜ (ilan içi) ===================== */
.file-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.file-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    background: #f8fafc;
    text-align: center;
    position: relative;
}
.file-item:hover { background: #eef2ff; border-color: var(--primary); }
.file-item.cover-photo { border-color: #fbbf24; background: #fffbeb; }
.file-item img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
}
.file-item i { font-size: 38px; margin-bottom: 6px; }
.file-item .file-name {
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    line-height: 1.3;
}
.file-item .file-type {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}
.file-item.photo i { color: #0ea5e9; }
.file-item.video i { color: #8b5cf6; }
.file-item.word  i { color: #2563eb; }
.file-item.archived { opacity: 0.45; }
.file-item.archived::after {
    content: 'ARŞİV';
    position: absolute;
    top: 4px;
    right: 4px;
    background: #94a3b8;
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}

.tamamla-btn-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Sidebar alt çizgi */
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 8px 10px;
}
