/**
 * E&M CONCEPT - Şantiye Takip
 * Premium Gold/Black Dark Theme
 */

:root {
    --gold: #d4af37;
    --gold-light: #e6c75a;
    --gold-dark: #b8941f;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --bg-0: #0a0a0a;
    --bg-1: #121212;
    --bg-2: #1a1a1a;
    --bg-3: #232323;
    --bg-4: #2a2a2a;
    --border: #2a2a2a;
    --border-2: #353535;
    --text: #e5e5e5;
    --text-2: #a0a0a0;
    --text-3: #6b6b6b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg-0);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image:
        radial-gradient(ellipse 800px 400px at top right, rgba(212,175,55,0.04), transparent),
        radial-gradient(ellipse 600px 300px at bottom left, rgba(212,175,55,0.02), transparent);
    background-attachment: fixed;
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-light); }

/* LAYOUT */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #0d0d0d, #161616);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform .25s;
}
.sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.sidebar-header .logo {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}
.sidebar-header .subtitle {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-menu { padding: 12px 0; }
.sidebar-menu .menu-title {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    padding: 12px 22px 6px;
    letter-spacing: 1.5px;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px;
    color: var(--text-2);
    border-left: 3px solid transparent;
    transition: all .15s;
    font-weight: 500;
    font-size: 13.5px;
}
.sidebar-menu a:hover {
    background: var(--bg-2);
    color: var(--gold);
    border-left-color: var(--gold);
}
.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(212,175,55,0.15), transparent);
    color: var(--gold);
    border-left-color: var(--gold);
}
.sidebar-menu a i { width: 20px; text-align: center; font-size: 15px; }

.main {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    background: rgba(18,18,18,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar .page-title { font-size: 18px; font-weight: 600; color: var(--gold); }
.topbar-user { display: flex; align-items: center; gap: 16px; }
.user-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
}
.user-chip .avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.content { padding: 24px 28px; flex: 1; }
.content-wide { padding: 24px 36px; }

/* HEADERS */
h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.3; }
h1 { font-size: 26px; margin-bottom: 6px; letter-spacing: -0.5px; }
h2 { font-size: 20px; margin-bottom: 14px; }
h3 { font-size: 16px; margin-bottom: 10px; }

.page-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.page-header .title h1 {
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.page-header .subtitle { color: var(--text-3); font-size: 13px; }

/* CARDS */
.card {
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    transition: border-color .2s;
}
.card:hover { border-color: var(--border-2); }
.card-title {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.card-title i { color: var(--gold); }
.card-compact { padding: 16px; }

/* GRID */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* STATS */
.stat-card {
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle at top right, var(--gold-glow), transparent);
    pointer-events: none;
}
.stat-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text); margin: 8px 0 4px; }
.stat-trend { font-size: 12px; color: var(--text-2); }
.stat-icon {
    position: absolute; top: 18px; right: 18px;
    color: var(--gold);
    font-size: 22px;
    opacity: 0.6;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.35);
    color: #000;
}
.btn-secondary {
    background: var(--bg-3);
    color: var(--text);
    border: 1px solid var(--border-2);
}
.btn-secondary:hover { background: var(--bg-4); border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-icon { padding: 8px 10px; }
.btn-block { width: 100%; justify-content: center; }

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
label, .form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
label .req { color: var(--danger); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="date"], input[type="time"], input[type="datetime-local"],
input[type="search"], input[type="url"], select, textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
    background: var(--bg-3);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { min-height: 80px; resize: vertical; }
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23d4af37' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
}

/* TABLES */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-1);
}
table thead th {
    background: var(--bg-2);
    color: var(--gold);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-2);
    white-space: nowrap;
}
table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text);
}
table tbody tr:hover { background: rgba(212,175,55,0.04); }
table tbody tr:last-child td { border-bottom: none; }

/* BADGES */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
}

/* PROGRESS */
.progress {
    height: 8px;
    background: var(--bg-3);
    border-radius: 100px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width .4s;
    border-radius: 100px;
}
.progress-lg { height: 14px; }

/* ALERTS / FLASH */
.flash-msg, .alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: rgba(16,185,129,0.1); border-left: 4px solid var(--success); color: #6ee7b7; }
.alert-error { background: rgba(239,68,68,0.1); border-left: 4px solid var(--danger); color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.1); border-left: 4px solid var(--warning); color: #fcd34d; }
.alert-info { background: rgba(59,130,246,0.1); border-left: 4px solid var(--info); color: #93c5fd; }

/* SİTE CARD (special for şantiye list) */
.santiye-card {
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s;
    position: relative;
}
.santiye-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 0 1px var(--gold);
}
.santiye-card-img {
    height: 160px;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.santiye-card-img i {
    font-size: 48px;
    color: rgba(212,175,55,0.25);
}
.santiye-card-img .durum-overlay {
    position: absolute;
    top: 12px; right: 12px;
}
.santiye-card-body { padding: 18px; }
.santiye-card-body h3 {
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 6px;
}
.santiye-card-meta {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-3);
    margin: 8px 0 12px;
}
.santiye-card-meta span { display: flex; align-items: center; gap: 4px; }

/* TABS */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}
.tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit;
}
.tab:hover { color: var(--gold); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

/* TOOLBAR */
.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.toolbar .search-box {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    position: relative;
}
.toolbar .search-box input { padding-left: 38px; }
.toolbar .search-box i {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
}

/* FOTOĞRAF GRID */
.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.foto-item {
    aspect-ratio: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all .2s;
}
.foto-item:hover {
    border-color: var(--gold);
    transform: scale(1.02);
}
.foto-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.foto-item .delete-btn {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(239,68,68,0.9);
    color: #fff;
    border: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s;
}
.foto-item:hover .delete-btn { opacity: 1; }

/* MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.active { display: flex; }
.modal-content {
    background: var(--bg-1);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-content.large { max-width: 900px; }
.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { color: var(--gold); margin: 0; }
.modal-body { padding: 22px; }
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex; gap: 10px; justify-content: flex-end;
}
.modal-close {
    background: none; border: none;
    color: var(--text-2);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: var(--danger); }

/* LIGHTBOX (foto görüntüleyici) */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
}

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 14px; height: 14px;
    background: var(--gold);
    border: 3px solid var(--bg-0);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--gold);
}
.timeline-date { font-size: 12px; color: var(--gold); font-weight: 600; }
.timeline-title { font-weight: 600; margin: 4px 0; }
.timeline-text { color: var(--text-2); font-size: 13px; }

/* MOBILE TOGGLE */
.mobile-menu-btn {
    display: none;
    background: var(--bg-2);
    color: var(--gold);
    border: 1px solid var(--border);
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 50px rgba(0,0,0,0.8); }
    .main { margin-left: 0; }
    .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .content, .content-wide { padding: 18px; }
}

@media (max-width: 600px) {
    .topbar { padding: 12px 18px; }
    .topbar .page-title { font-size: 15px; }
    .user-chip span:not(.avatar) { display: none; }
    h1 { font-size: 22px; }
    .stat-value { font-size: 24px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar > * { width: 100%; }
}

/* PRINT */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main { margin-left: 0; }
    body { background: #fff; color: #000; }
    .card { background: #fff; border: 1px solid #000; box-shadow: none; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* UTILITIES */
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-3); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; letter-spacing: 1px; font-size: 0.85em; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'Consolas', 'Monaco', monospace; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}
.empty-state i { font-size: 56px; color: var(--bg-4); margin-bottom: 16px; display: block; }
.empty-state h3 { color: var(--text-2); margin-bottom: 8px; }

/* EKİP/PERSONEL CHIP */
.person-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 5px 12px 5px 5px;
    border-radius: 100px;
    font-size: 12px;
    margin: 2px;
}
.person-chip .avatar {
    width: 22px; height: 22px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 10px;
}

/* LOGIN PAGE */
.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at top, rgba(212,175,55,0.08), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(212,175,55,0.04), transparent 60%),
        var(--bg-0);
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
}
.login-card .logo {
    text-align: center;
    margin-bottom: 30px;
}
.login-card .logo h1 {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 30px;
    letter-spacing: -0.5px;
}

/* SECTION TABS for daily report (insai/elektrik/mekanik) */
.kategori-section {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 14px;
}
.kategori-section.insai { border-left: 4px solid #8b5cf6; }
.kategori-section.elektrik { border-left: 4px solid #eab308; }
.kategori-section.mekanik { border-left: 4px solid #10b981; }
.kategori-section.diger { border-left: 4px solid #6b7280; }
.kategori-section h4 {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
    color: var(--gold);
}
.kategori-section h4 i { font-size: 18px; }

/* WORK ITEM ROW */
.is-row {
    display: grid;
    grid-template-columns: 30px 1fr 100px 80px 30px;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background: var(--bg-3);
    border-radius: 6px;
}
.is-row .num { color: var(--gold); font-weight: 700; text-align: center; }
.is-row input { background: var(--bg-1); padding: 8px 10px; }
.is-row .delete { color: var(--danger); cursor: pointer; background: none; border: none; font-size: 16px; }

@media (max-width: 700px) {
    .is-row { grid-template-columns: 28px 1fr 30px; }
    .is-row .miktar, .is-row .birim { display: none; }
}

/* ===== EK STILLER - v1 final ===== */

/* Galeri */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.galeri-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.galeri-item:hover { transform: translateY(-2px); border-color: var(--gold); }
.galeri-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}
.galeri-bilgi { padding: 10px; }
.galeri-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.galeri-meta small { color: #888; }
.galeri-santiye { font-size: 13px; margin-bottom: 5px; }
.galeri-santiye a { color: var(--gold); }
.galeri-aciklama { font-size: 12px; color: #aaa; }

/* Kategori grid */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.kategori-listesi { list-style: none; padding: 0; margin: 0; }
.kategori-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.kategori-item:last-child { border-bottom: none; }
.kategori-item.pasif { opacity: 0.5; }
.kategori-item.alt-kategori { padding-left: 20px; font-size: 13px; }
.kat-ad { flex: 1; }
.kat-aksiyon { display: flex; gap: 5px; }

/* Problem kartları */
.problem-kart {
    background: var(--card-bg);
    border-left: 4px solid #888;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.problem-kart.oncelik-kritik { border-left-color: #dc2626; background: linear-gradient(to right, rgba(220,38,38,0.05), transparent); }
.problem-kart.oncelik-yuksek { border-left-color: #f97316; }
.problem-kart.oncelik-orta { border-left-color: #eab308; }
.problem-kart.oncelik-dusuk { border-left-color: #6b7280; }
.problem-bas { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 10px; }
.problem-bas h4 { margin: 0 0 5px 0; color: var(--gold); }
.problem-meta { font-size: 12px; color: #aaa; }
.problem-meta a { color: var(--gold); }
.problem-etiketler { display: flex; gap: 5px; flex-wrap: wrap; }
.problem-aciklama { background: rgba(255,255,255,0.03); padding: 10px; border-radius: 6px; margin: 10px 0; font-size: 14px; }
.problem-cozum { background: rgba(16,185,129,0.1); padding: 10px; border-radius: 6px; margin: 10px 0; font-size: 14px; border-left: 3px solid #10b981; }
.problem-aksiyonlar { display: flex; gap: 5px; margin-top: 10px; }

/* Bilgi tablosu (key-value) */
.bilgi-tablo { width: 100%; border-collapse: collapse; }
.bilgi-tablo th {
    text-align: left;
    padding: 8px 12px;
    color: #aaa;
    font-weight: normal;
    width: 35%;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
}
.bilgi-tablo td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Sayfalama */
.sayfalama {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
}
.sayfa-bilgi { color: #aaa; }

/* Bos mesaj */
.bos-mesaj {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.bos-mesaj i { color: #555; margin-bottom: 10px; }
.bos-mesaj p { margin: 10px 0; }

/* Filtre kartı */
.filtre-kart { margin-bottom: 15px; }
.filtre-form { padding: 15px; }
.form-row { display: flex; gap: 15px; flex-wrap: wrap; align-items: flex-end; }
.form-row .form-group { flex: 1; min-width: 150px; margin-bottom: 0; }

/* Stat ikon renkleri */
.text-primary { color: var(--gold) !important; }
.text-success { color: #10b981 !important; }
.text-info { color: #06b6d4 !important; }
.text-warning { color: #eab308 !important; }
.text-danger { color: #ef4444 !important; }

.text-right { text-align: right; }

/* Şantiye kart kapak */
.santiye-kapak {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #222;
}
.santiye-kapak-bos {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 60px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}
.santiye-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.santiye-bilgi { padding: 15px; }
.santiye-bilgi h4 { margin: 0 0 8px 0; color: var(--gold); }
.santiye-meta { color: #aaa; font-size: 13px; margin-bottom: 10px; }
.santiye-stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #ccc;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
}
.santiye-durum { margin-top: 10px; }
.son-rapor { font-size: 12px; color: #888; margin-top: 5px; }

/* Stat kart */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--gold); }
.stat-card > i { font-size: 36px; color: var(--gold); }
.stat-icerik .stat-deger { font-size: 28px; font-weight: bold; color: var(--gold); line-height: 1; }
.stat-icerik .stat-label { font-size: 13px; color: #aaa; margin-top: 4px; }

.kart-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.kart-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
@media (max-width: 768px) {
    .kart-grid-3, .kart-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Row 2 kolon */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 992px) { .row-2 { grid-template-columns: 1fr; } }

/* Page actions */
.page-actions { display: flex; gap: 8px; }

/* Required asterisk */
.required { color: #ef4444; }

/* Form actions */
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }

/* Print için */
@media print {
    .sidebar, .header, .page-actions, .form-actions, .btn { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
    body { background: white; color: black; }
    .card { border: 1px solid #ddd; box-shadow: none; }
}
