body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; margin-top: auto; }
.display-6 { font-weight: 600; }
.card { border-radius: 0.6rem; border: 1px solid #e6e8eb; }
.table > :not(caption) > * > * { vertical-align: middle; }
.navbar-brand { font-weight: 600; letter-spacing: 0.3px; }
/* Üst menüde itemlar arasına biraz nefes payı */
.navbar .navbar-nav .nav-link { padding-left: 0.9rem; padding-right: 0.9rem; }
.badge { font-weight: 500; }
.nav-tabs .nav-link { color: #4a5568; }
.nav-tabs .nav-link.active { font-weight: 600; }
/* Select2 + Bootstrap 5 yüksek hizasını form-control ile eşitle */
.select2-container--bootstrap-5 .select2-selection { min-height: calc(1.5em + 0.75rem + 2px); }
.select2-container { width: 100% !important; }

/* Doğrulama özet kutusu yalnızca hata varsa görünsün */
.validation-summary-valid,
.field-validation-valid,
.alert.validation-summary-valid { display: none !important; }
/* Alert class'ı ile birlikte verilmiş boş summary kutusunu gizle */
div.alert.alert-danger:empty { display: none !important; }

/* ===== Ticket Mesajları (chat-like) ===== */
.tm-thread { display: flex; flex-direction: column; gap: 0.9rem; }
.tm-message { display: flex; gap: 0.7rem; align-items: flex-start; }
.tm-avatar {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    background: #6c757d;
}
.tm-staff .tm-avatar    { background: #0d6efd; }
.tm-customer .tm-avatar { background: #198754; }
.tm-internal .tm-avatar { background: #d97706; }
.tm-bubble {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    padding: 0.7rem 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.tm-staff .tm-bubble    { background: #eff6ff; border-color: #cfe2ff; }
.tm-customer .tm-bubble { background: #ffffff; border-color: #e5e7eb; }
.tm-internal .tm-bubble { background: #fff7ed; border-color: #fed7aa; }
.tm-head {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}
.tm-author { font-weight: 600; color: #111827; }
.tm-time { margin-left: auto; color: #6b7280; font-size: 0.78rem; white-space: nowrap; }
.tm-body {
    white-space: pre-wrap;
    word-break: break-word;
    color: #1f2937;
    line-height: 1.5;
}
.tm-media { margin-top: 0.6rem; }
.tm-media img {
    max-height: 140px; max-width: 200px;
    border-radius: 6px;
    object-fit: cover;
    cursor: zoom-in;
    border: 1px solid #e5e7eb;
}
.tm-video { max-width: 420px; max-height: 280px; border-radius: 6px; }
.tm-filemeta { font-size: 0.78rem; color: #6b7280; margin-top: 0.15rem; }

/* ===== Proje Kartları (portal projelerim) ===== */
.project-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.25rem rgba(13, 110, 253, 0.10) !important;
    border-color: #cfe2ff;
}
.project-icon {
    width: 48px; height: 48px;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #0d6efd;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.project-card .card-title {
    font-weight: 600;
    color: #111827;
}

/* ===== Ticket Durum Akışı (timeline) ===== */
.timeline-card .card-header { border-bottom: 1px solid #eef0f3; }
.ts-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.ts-timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, #e9ecef 0%, #e9ecef 100%);
}
.ts-item {
    position: relative;
    padding: 0 0 1rem 44px;
}
.ts-item:last-child { padding-bottom: 0; }
.ts-dot {
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e9ecef;
    z-index: 1;
}
.ts-dot-primary { background: #0d6efd; }
.ts-dot-info    { background: #0dcaf0; color: #042a33; }
.ts-dot-warning { background: #ffc107; color: #3d2c00; }
.ts-dot-success { background: #198754; }
.ts-dot-danger  { background: #dc3545; }
.ts-dot-muted   { background: #adb5bd; }
.ts-content {
    background: #f8f9fa;
    border: 1px solid #eef0f3;
    border-radius: 0.5rem;
    padding: 0.55rem 0.75rem;
}
.ts-note {
    margin-top: 0.3rem;
    padding: 0.35rem 0.55rem;
    background: #fff;
    border-left: 3px solid #dee2e6;
    border-radius: 0.25rem;
    color: #495057;
    font-size: 0.85rem;
}
