/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN COMPONENTS - MERKEZİ COMPONENT KÜTÜPHANESİ
   Tüm admin sayfalarında kullanılan ortak component'ler
   Modal için: admin-modal.css kullanılır (ayrı dosya)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   FORM COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */

/* Form Group */
.form-group {
    margin-bottom: 1rem;
}

/* Filtre buton grubu — label'sız butonları inputlarla aynı seviyeye hizalar */
.filter-group-actions,
.form-group-actions {
    display: flex;
    align-items: flex-end;
    margin-bottom: 1rem;
}

/* Filtre kartı içindeki form-group'larda margin azalt */
.filter-card .form-group,
.filter-card .filter-group-actions,
.filter-card .form-group-actions {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.form-group label.required::after {
    content: " *";
    color: #dc2626;
}

/* Form Input (Text, Email, Tel, Password, Textarea, Select) */
.form-input,
input.form-input,
textarea.form-input,
select.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: 0;
    border-color: #ff6f0f;
    box-shadow: 0 0 0 3px rgba(255, 111, 15, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-input.error,
.form-input.is-invalid {
    border-color: #dc2626;
}

.form-input.error:focus,
.form-input.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Textarea */
textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Select */
select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
}

/* Checkbox & Radio */
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6f0f;
}

/* Form Row (2 kolonlu grid) */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-row.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Form Section (Bölümler) */
.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.form-section-header i {
    color: #ff6f0f;
    font-size: 1.1rem;
}

/* Form Error Message */
.form-error {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: #dc2626;
}

/* Form Help Text */
.form-help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CARD COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    padding: 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3,
.card-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i,
.card-header h4 i {
    color: #ff6f0f;
}

.card-body {
    padding: 1.25rem;
}

.card-body.no-padding {
    padding: 0;
}

.card-footer {
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TABLE COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    background: #f3f4f6;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    font-size: 0.875rem;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Empty State */
.table-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.table-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.table-empty p {
    margin: 0;
    font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BADGE COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge i {
    font-size: 0.85rem;
}

/* Badge Colors */
.badge-primary {
    background: #ffe8d9;
    color: #c2410c;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-purple {
    background: #ede9fe;
    color: #6b21a8;
}

/* Badge Sizes */
.badge-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}

.badge-lg {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTON COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* padding: 0.625rem 1.25rem; yerine dikey paddingi kaldırıp sabit yükseklik veriyoruz */
    height: 43.5px; /* form-input yüksekliği ile tam eşleşme */
    padding: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1; /* Ortalamayı kolaylaştırır */
    white-space: nowrap; /* Metnin aşağı kaymasını engeller */
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Variants */
.btn-primary {
    background: #ff6f0f;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #e65a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 111, 15, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-secondary:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
    border-color: #d97706;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

/* WowDash -600 Aliases (uyumluluk — modal/onay butonlari icin) */
.btn-primary-600         { background: #ff6f0f; color: white; }
.btn-primary-600:hover:not(:disabled) { background: #e65a00; }
.btn-danger-600          { background: #dc2626; color: white; }
.btn-danger-600:hover:not(:disabled)  { background: #b91c1c; }
.btn-warning-600         { background: #f59e0b; color: white; }
.btn-warning-600:hover:not(:disabled) { background: #d97706; }
.btn-success-600         { background: #10b981; color: white; }
.btn-success-600:hover:not(:disabled) { background: #059669; }

.btn-outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #475569;
}

.btn-outline:hover:not(:disabled) {
    border-color: #ff6f0f;
    color: #ff6f0f;
    background: #fff5f0;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* Icon Button */
.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.btn-icon:hover:not(:disabled) {
    border-color: #ff6f0f;
    color: #ff6f0f;
    background: #fff5f0;
}

.btn-icon.active {
    border-color: #ff6f0f;
    background: #ff6f0f;
    color: white;
}

/* Button Close */
.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: #f3f4f6;
    color: #dc2626;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ALERT COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger,
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ─────────────────────────────────────────────────────────────────────────────
   INFO BOX COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */

.info-box {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-box i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-box.warning {
    background: #fffbeb;
    border: 1px solid #fbbf24;
}

.info-box.warning i {
    color: #f59e0b;
}

.info-box.info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

.info-box.info i {
    color: #3b82f6;
}

.info-box strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
}

.info-box li {
    margin-bottom: 0.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOADING COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */

.loading-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: #ff6f0f;
    display: block;
    margin-bottom: 1rem;
}

.loading-spinner span {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Inline Loading */
.loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.loading-inline i {
    font-size: 1.25rem;
    color: #ff6f0f;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PAGE HEADER COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */




.table-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────────────────────────────────── */

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

/* Colors */
.text-primary { color: #ff6f0f; }
.text-secondary { color: #6b7280; }
.text-success { color: #10b981; }
.text-danger { color: #dc2626; }
.text-warning { color: #f59e0b; }
.text-info { color: #3b82f6; }
.text-muted { color: #9ca3af; }
.text-dark { color: #111827; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }

/* Flex */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* Width */
.w-100 { width: 100%; }
.w-50 { width: 50%; }
.w-auto { width: auto; }

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row.cols-3,
    .form-row.cols-4 {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header-content {
        flex-direction: column;
    }
    
    .table-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Filtre satırı içindeki elemanları tabana hizala */
.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end; /* En kritik komut: Her şeyi alt çizgiye yaslar */
    margin-bottom: 1.5rem;
}

    /* Filtre satırı içindeki butonları otomatik boyutlandır */
    .filter-row .btn {
        height: 43px; /* Senin .form-input yüksekliğinle aynı */
        padding: 0 1.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        margin-top: auto; /* Üstte label olsa da olmasa da en alta iter */
    }

    /* Eğer butonun yanında label yoksa, hizayı bozmaması için */
    .filter-row .filter-group {
        display: flex;
        flex-direction: column;
    }

    .filter-group:first-child {
        flex: 2;
        min-width: 250px;
    }

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    color: #64748b;
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-info {
    padding: 0 15px;
    color: #334155;
    font-weight: 500;
}



/* ─────────────────────────────────────────────────────────────────────────────
   CONTEXT MENU (SAĞ TIK TOOLTIP)
   Modern glassmorphism tasarım - Tüm admin sayfalarında kullanılabilir
   ───────────────────────────────────────────────────────────────────────────── */

.context-menu {
    position: fixed;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    min-width: 240px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: contextMenuIn 0.15s ease-out;
}

@keyframes contextMenuIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.context-menu.show {
    display: block;
}

/* Context Menu Header */
.context-menu-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px 12px 0 0;
}

    .context-menu-header span {
        display: block;
        font-weight: 700;
        color: #1e293b;
        font-size: 14px;
        letter-spacing: -0.01em;
    }

    .context-menu-header small {
        color: #64748b;
        font-size: 12px;
        font-family: 'SF Mono', 'Consolas', monospace;
        margin-top: 2px;
        display: block;
    }

/* Context Menu Body */
.context-menu-body {
    padding: 6px 0;
    max-height: 350px;
    overflow-y: auto;
}

    /* Scrollbar */
    .context-menu-body::-webkit-scrollbar {
        width: 6px;
    }

    .context-menu-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .context-menu-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

        .context-menu-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* Menu Item */
.menu-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: all 0.15s ease;
    margin: 2px 6px;
    border-radius: 8px;
    position: relative;
}

    .menu-item:hover {
        background: linear-gradient(135deg, #FF6F0F 0%, #ff8534 100%);
        color: white;
        transform: translateX(2px);
    }

        .menu-item:hover i {
            color: white;
        }

    .menu-item:active {
        transform: scale(0.98) translateX(2px);
    }

    .menu-item i {
        width: 18px;
        height: 18px;
        font-size: 16px;
        color: #64748b;
        transition: color 0.15s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Menu Item - Danger */
    .menu-item.danger {
        color: #dc2626;
    }

        .menu-item.danger i {
            color: #dc2626;
        }

        .menu-item.danger:hover {
            background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
            color: white;
        }

            .menu-item.danger:hover i {
                color: white;
            }

    /* Menu Item - Success */
    .menu-item.success {
        color: #10b981;
    }

        .menu-item.success i {
            color: #10b981;
        }

        .menu-item.success:hover {
            background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
            color: white;
        }

            .menu-item.success:hover i {
                color: white;
            }

    /* Menu Item - Info */
    .menu-item.info {
        color: #3b82f6;
    }

        .menu-item.info i {
            color: #3b82f6;
        }

        .menu-item.info:hover {
            background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
            color: white;
        }

            .menu-item.info:hover i {
                color: white;
            }

    /* Menu Item - Disabled */
    .menu-item.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Menu Separator */
.menu-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    margin: 6px 16px;
}

/* Menu Item Badge */
.menu-item .badge {
    margin-left: auto;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.menu-item:hover .badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Menu Item Shortcut */
.menu-item .shortcut {
    margin-left: auto;
    font-size: 11px;
    color: #94a3b8;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.menu-item:hover .shortcut {
    color: rgba(255,255,255,0.7);
}

/* Context Menu Responsive */
@media (max-width: 768px) {
    .context-menu {
        min-width: 200px;
    }

    .menu-item {
        padding: 12px 14px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   DURUM BADGE'LERİ
   ───────────────────────────────────────────────────────────────── */
.durum-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

    .durum-badge i {
        font-size: 14px;
    }

.durum-bekliyor {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.durum-isleniyor {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.durum-gonderildi {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.durum-hata {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.durum-iptal {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
}

/* ─────────────────────────────────────────────────────────────────
   AKSİYON BUTONLARI
   ───────────────────────────────────────────────────────────────── */
.action-buttons {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius, 8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
}

    .action-btn.view {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }

        .action-btn.view:hover {
            background: #3b82f6;
            color: white;
        }

    .action-btn.send {
        background: rgba(16, 185, 129, 0.1);
        color: #10b981;
    }

        .action-btn.send:hover {
            background: #10b981;
            color: white;
        }

    .action-btn.status {
        background: rgba(255, 111, 15, 0.1);
        color: #FF6F0F;
    }

        .action-btn.status:hover {
            background: #FF6F0F;
            color: white;
        }

    .action-btn.pdf {
        background: rgba(220, 38, 38, 0.1);
        color: #dc2626;
    }

        .action-btn.pdf:hover {
            background: #dc2626;
            color: white;
        }

    .action-btn.validate {
        background: rgba(139, 92, 246, 0.1);
        color: #8b5cf6;
    }

        .action-btn.validate:hover {
            background: #8b5cf6;
            color: white;
        }

    .action-btn.more {
        background: var(--bg-light, #f8fafc);
        color: var(--text-muted, #64748b);
    }

        .action-btn.more:hover {
            background: var(--secondary, #1a2b3c);
            color: white;
        }

    .action-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }


/* ═══════════════════════════════════════════════════════════════════════════
   SEARCHABLE SELECT COMPONENT
   Arama yapılabilen dropdown - Firma, Servis, Kullanıcı seçimi için
   Kullanım: SearchableSelect.init(elementId, options)
   ═══════════════════════════════════════════════════════════════════════════ */

.searchable-select {
    position: relative;
    width: 100%;
}

/* Select Button (Dropdown trigger) */
.searchable-select-button {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .searchable-select-button:hover {
        border-color: #cbd5e1;
    }

    .searchable-select-button:focus,
    .searchable-select.open .searchable-select-button {
        outline: 0;
        border-color: #ff6f0f;
        box-shadow: 0 0 0 3px rgba(255, 111, 15, 0.1);
    }

    .searchable-select-button.placeholder {
        color: #94a3b8;
    }

    .searchable-select-button .arrow {
        width: 16px;
        height: 16px;
        color: #64748b;
        transition: transform 0.2s ease;
    }

.searchable-select.open .searchable-select-button .arrow {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.searchable-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 320px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.searchable-select.open .searchable-select-dropdown {
    display: flex;
    animation: dropdown-fade-in 0.15s ease-out;
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Input */
.searchable-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

    .searchable-select-search input {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        outline: none;
    }

        .searchable-select-search input:focus {
            border-color: #ff6f0f;
            box-shadow: 0 0 0 2px rgba(255, 111, 15, 0.1);
        }

/* Options List */
.searchable-select-options {
    overflow-y: auto;
    max-height: 240px;
}

    .searchable-select-options::-webkit-scrollbar {
        width: 6px;
    }

    .searchable-select-options::-webkit-scrollbar-track {
        background: #f8fafc;
    }

    .searchable-select-options::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

        .searchable-select-options::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* Option Item */
.searchable-select-option {
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #334155;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .searchable-select-option:hover {
        background: #f8fafc;
    }

    .searchable-select-option.selected {
        background: #fff7ed;
        color: #c2410c;
        font-weight: 600;
    }

        .searchable-select-option.selected::before {
            content: '✓';
            font-weight: bold;
            margin-right: 0.25rem;
            color: #ff6f0f;
        }

/* No Results */
.searchable-select-empty {
    padding: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

    .searchable-select-empty i {
        font-size: 2rem;
        display: block;
        margin-bottom: 0.5rem;
        opacity: 0.5;
    }

/* Loading State */
.searchable-select-loading {
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

    .searchable-select-loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Disabled State */
.searchable-select.disabled {
    opacity: 0.6;
    pointer-events: none;
}

    .searchable-select.disabled .searchable-select-button {
        background-color: #f8fafc;
        cursor: not-allowed;
    }

/* Small Size */
.searchable-select.sm .searchable-select-button {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.searchable-select.sm .searchable-select-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

/* Large Size */
.searchable-select.lg .searchable-select-button {
    padding: 0.875rem 2.5rem 0.875rem 1.25rem;
    font-size: 1rem;
}

.searchable-select.lg .searchable-select-option {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}




/* 1. Kapsayıcıların (Kart ve Satır) dropdown'ı kesmesini engelle */
.filter-card,
.card,
.card-body,
.filter-row,
.filter-group {
    overflow: visible !important;
    position: relative; /* z-index'in çalışması için şart */
}

/* 2. Dropdown Panelini her şeyin en üstüne zorla */
.searchable-select-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important; /* Çok yüksek bir değer */
    background: #ffffff !important; /* Arkasını göstermemesi için */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
    display: none;
}

/* 3. SADECE Select AÇIKKEN z-index artır (En kritik nokta burası) */
/* Alttaki elemanların içinden geçmesini bu engeller */
.searchable-select.open {
    z-index: 100000 !important;
}

    .searchable-select.open .searchable-select-dropdown {
        display: flex !important;
    }

/* 4. Filtre satırlarının kendi arasındaki z-index sırası */
/* Üstteki satırın dropdown'ı alttaki satırın üstünde kalmalı */
.filter-row:first-child {
    z-index: 20;
}

.filter-row:last-child {
    z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════ */
/* BULK SELECTION — Toplu Seçim                                   */
/* ═══════════════════════════════════════════════════════════════ */

.bulk-toolbar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.bulk-toolbar .bulk-info {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e40af;
}
.bulk-toolbar .bulk-info span { color: #ff6f0f; }
.bulk-toolbar .bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bulk-toolbar .btn-bulk {
    padding: 5px 12px;
    font-size: 0.82rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bulk-toolbar .btn-bulk:hover { background: #f1f5f9; border-color: #94a3b8; }
.bulk-toolbar .btn-bulk.danger { color: #dc2626; border-color: #fca5a5; }
.bulk-toolbar .btn-bulk.danger:hover { background: #fef2f2; }
.bulk-toolbar .btn-bulk.success { color: #059669; border-color: #6ee7b7; }
.bulk-toolbar .btn-bulk.success:hover { background: #ecfdf5; }
.bulk-toolbar .btn-bulk.warning { color: #d97706; border-color: #fcd34d; }
.bulk-toolbar .btn-bulk.warning:hover { background: #fffbeb; }

.data-table .bulk-check-cell { width: 36px; text-align: center; }
.data-table .bulk-check { width: 16px; height: 16px; cursor: pointer; accent-color: #ff6f0f; }

tr.row-selected { background: #eff6ff !important; }

/* ═══════════════════════════════════════════════════════════ */
/* GLOBAL TAB YAPISI (.sa-tabs / .sa-tab)                     */
/* ═══════════════════════════════════════════════════════════ */
.sa-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    padding: 5px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.sa-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}
.sa-tab i { font-size: 16px; }
.sa-tab:hover { background: var(--bg-light); color: var(--text-dark); }
.sa-tab.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(255,111,15,0.3); }

@media (max-width: 768px) {
    .sa-tabs { flex-wrap: wrap; }
    .sa-tab span { display: none; }
    .sa-tab { padding: 10px 14px; }
}

/* Tab Panel — sa-tabs ile kullanılır */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─────────────────────────────────────────────────────────────────────────────
   FORM CARD (Ekle/Düzenle sayfaları)
   ───────────────────────────────────────────────────────────────────────────── */

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
}
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: start;
}
.form-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: end;
}
.form-grid-2 .form-group-full,
.form-grid-3 .form-group-full,
.form-grid-4 .form-group-full,
.form-grid-5 .form-group-full {
    grid-column: 1 / -1;
}
@media (max-width: 768px) {
    .form-grid-2,
    .form-grid-3,
    .form-grid-4,
    .form-grid-5 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .form-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .form-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1025px) and (max-width: 1400px) {
    .form-grid-5 { grid-template-columns: repeat(4, 1fr); }
}

.form-actions-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* ─────────────────────────────────────────────────────────────────────────────
   YARDIM KARTI (Ekle/Düzenle sayfaları)
   ───────────────────────────────────────────────────────────────────────────── */

.yardim-card {
    line-height: 1.7;
    color: #374151;
}
.yardim-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.yardim-section {
    margin-bottom: 1.25rem;
}
.yardim-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.yardim-section ul {
    padding-left: 1.5rem;
    margin: 0.25rem 0;
}
.yardim-section li {
    margin-bottom: 0.25rem;
}
.yardim-section a {
    color: #2563eb;
    text-decoration: none;
}
.yardim-section a:hover { text-decoration: underline; }

.yardim-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.yardim-tablo td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.yardim-tablo td:first-child {
    width: 140px;
    white-space: nowrap;
    color: #475569;
}
.yardim-tablo tr:last-child td {
    border-bottom: none;
}

/* ============================================
   TOAST BİLDİRİM SİSTEMİ (HirasMuhasebe tarzı)
   ============================================ */
.toast-container {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 320px;
    max-width: 420px;
}
.toast-message {
    position: relative;
    overflow: hidden;
    padding: 14px 40px 14px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    animation: toastSlideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    word-break: break-word;
}
.toast-message i { font-size: 18px; flex-shrink: 0; }
.toast-message span { flex-grow: 1; }
.toast-message.success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.toast-message.error   { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.toast-message.warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.toast-message.info    { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.toast-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}
.toast-close:hover { color: #fff; }
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}
.toast-progress-bar {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
}
.toast-hiding {
    animation: toastSlideOut 0.3s ease forwards;
}
@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}
@media (max-width: 576px) {
    .toast-container { left: 20px; right: 20px; top: 68px; }
}

/* 1. Tüm form elemanlarını ve butonları aynı yükseklik havuzuna al */
.form-input,
select.form-input,
.btn {
    box-sizing: border-box; /* Border dahil hesapla */
    height: 45px; /* Yüksekliği buraya sabitle */
}

/* 2. Select kutusunun içindeki paddingi temizle (Yükseklik sabitlendiği için) */
select.form-input {
    padding-top: 0;
    padding-bottom: 0;
}

/* 3. Butonun içindeki paddingi temizle ve hizala */
.btn {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 45px; /* Metni dikeyde tam ortalar */
}

/* 4. Filtre satırı hizalaması */
.filter-row {
    display: flex;
    gap: 15px;
    align-items: flex-end; /* Alt çizgileri milimetrik eşitler */
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOGO / FOTO UPLOAD ALANI
   ───────────────────────────────────────────────────────────────────────────── */
.foto-upload-group {
    margin-bottom: 1.5rem;
}

.foto-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.foto-onizleme {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.foto-onizleme img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-placeholder {
    font-size: 2rem;
    color: var(--text-light);
}

.upload-gizli {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   KURUM LİSTESİ — AVATAR, İSTATİSTİK, DETAY STILLER
   ───────────────────────────────────────────────────────────────────────────── */
.kurum-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
}

.kurum-logo-detay {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.kurum-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light, #eff6ff);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.kurum-avatar-detay {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light, #eff6ff);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid var(--border);
}

.kurum-ad-link {
    color: var(--primary);
}

.text-muted-var {
    color: var(--text-muted);
}

.text-danger-var {
    color: var(--danger);
}

/* İstatistik kutuları */
.istatistik-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.istatistik-kutu {
    flex: 1;
    min-width: 180px;
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.istatistik-kutu i {
    font-size: 1.75rem;
    opacity: 0.8;
}

.istatistik-kutu.primary { background: #fff3e6; color: #e65c00; }
.istatistik-kutu.success { background: #dcfce7; color: #166534; }
.istatistik-kutu.warning { background: #fef3c7; color: #92400e; }
.istatistik-kutu.info    { background: #e0f2fe; color: #075985; }
.istatistik-kutu.danger  { background: #fee2e2; color: #991b1b; }

.istatistik-deger {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.istatistik-etiket {
    font-size: 0.8rem;
    opacity: 0.75;
    display: block;
}

/* Salt-okunur form alanı (Detay sayfası) */
.form-input-readonly {
    background: var(--bg-light);
}

/* Aksiyon sırası */
.aksiyon-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* Arama wrapper + dropdown (kurum/kullanici arama filtreleri) */
.arama-wrapper {
    position: relative;
}
.arama-badge {
    margin-top: 6px;
}
.arama-dropdown {
    display: none;
    position: absolute;
    z-index: 1050;
    max-height: 240px;
    overflow-y: auto;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.arama-dropdown.active,
.arama-dropdown.show {
    display: block;
}

/* Kullanici arama dropdown item - profesyonel goruntuleme */
.kullanici-arama-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}
.kullanici-arama-item:last-child {
    border-bottom: none;
}
.kullanici-arama-item:hover {
    background: #f1f5f9;
}
.kullanici-arama-item.aktif-true:hover {
    background: #f0fdf4;
}
.kullanici-arama-item.aktif-false:hover {
    background: #fef2f2;
}

.kullanici-arama-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    position: relative;
}
.kullanici-arama-avatar .durum-nokta {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.kullanici-arama-avatar .durum-nokta.aktif {
    background: #22c55e;
}
.kullanici-arama-avatar .durum-nokta.pasif {
    background: #ef4444;
}

.kullanici-arama-bilgi {
    flex: 1;
    min-width: 0;
}
.kullanici-arama-ad {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary, #1e293b);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kullanici-arama-alt {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.kullanici-arama-eposta {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kullanici-arama-ayirici {
    color: var(--text-muted, #94a3b8);
    font-size: 10px;
}
.kullanici-arama-tip {
    font-size: 11px;
    font-weight: 500;
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.kullanici-arama-tip.tip-varsayilan {
    background: #e0f2fe;
    color: #0369a1;
}
.kullanici-arama-tip.tip-ogrenci {
    background: #f0fdf4;
    color: #15803d;
}
.kullanici-arama-tip.tip-akademisyen {
    background: #fef3c7;
    color: #92400e;
}
.kullanici-arama-tip.tip-yonetici {
    background: #ede9fe;
    color: #6d28d9;
}
.kullanici-arama-tip.tip-personel {
    background: #fce7f3;
    color: #be185d;
}

/* Arama dropdown bos / hata / yuklenme durumlari */
.arama-dropdown-bos {
    padding: 16px;
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
}
.arama-dropdown-bos i {
    display: block;
    font-size: 28px;
    margin-bottom: 6px;
    opacity: 0.5;
}
.arama-dropdown-hata {
    padding: 12px 16px;
    text-align: center;
    color: #dc2626;
    font-size: 13px;
}
.arama-dropdown-yukleniyor {
    padding: 14px 16px;
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
}

/* Arama badge profesyonel */
.arama-badge-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-top: 8px;
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    font-size: 13px;
    color: #3730a3;
}
.arama-badge-pro .badge-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 10px;
    color: #fff;
    flex-shrink: 0;
}
.arama-badge-pro .badge-ad {
    font-weight: 600;
}
.arama-badge-pro .badge-eposta {
    font-size: 11px;
    color: #6366f1;
}
.arama-badge-pro .badge-tip {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 8px;
    background: #e0e7ff;
    color: #4338ca;
}
.arama-badge-pro .badge-kaldir {
    cursor: pointer;
    font-size: 16px;
    color: #6366f1;
    transition: color 0.15s;
    line-height: 1;
}
.arama-badge-pro .badge-kaldir:hover {
    color: #dc2626;
}

/* Margin / Padding ek yardımcı sınıflar */
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mt-12 { margin-top: 12px; }
.pt-12 { padding-top: 12px; }
.py-32 { padding-top: 32px; padding-bottom: 32px; }
.px-16 { padding-left: 16px; padding-right: 16px; }

/* Detay bilgi satırı */
.detay-baslik-satir {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

/* Bos tablo durumu */
td.empty-state {
    text-align: center !important;
    padding: 48px 16px !important;
}

.empty-state-ikon {
    font-size: 3rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

.empty-state-metin {
    color: var(--text-muted);
    margin: 0;
}

/* Modal overlay gizli (display:none yerine class) */
.modal-gizli {
    display: none;
}

/* Kucuk font aksiyon butonlari */
.btn-xs {
    font-size: 0.8rem;
}

/* Grid full width kolon */
.grid-full {
    grid-column: 1 / -1;
}

/* Info kutusu (Detay modal icerisindeki bilgi alanlari) */
.info-kutu {
    background: var(--info-light, #eff6ff);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.info-kutu p {
    font-size: 0.85rem;
    color: var(--info);
    margin: 0;
}

/* Abonelik tarihi açıklama */
.erisim-bitis-metin {
    color: var(--text-muted);
    margin-top: 2px;
}

/* IP tablosu font-monospace override */
.font-monospace {
    font-family: 'SF Mono', 'Consolas', monospace;
}

/* Deneme input kutusu */
.deneme-input {
    max-width: 150px;
    text-align: center;
    margin: 0 auto;
}

/* Loading placeholder */
.loading-state {
    text-align: center;
    padding: 32px 16px;
}

.loading-state-ikon {
    font-size: 1.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.loading-state-metin {
    color: var(--text-muted);
    margin: 0;
}

/* Hata durumu */
.error-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--danger);
}

/* Section border-top separator */
.section-separator {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}

/* Kurum ayar alt başlık */
.kurum-alt-baslik {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* Detay aciklama metni */
.aciklama-metin {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GORSEL YUKLEME & ETİKET KOMPONENTLERİ
   ───────────────────────────────────────────────────────────────────────────── */

.gorsel-onizleme-img {
    max-height: 160px;
    max-width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.dosya-yukle-gizli-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dosya-yukle-ikon {
    font-size: 2.5rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

.etiket-konteyner {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 8px;
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.etiket-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 150px;
    padding: 4px 8px;
    font-size: 14px;
    background: transparent;
}

.etiket-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--primary-50, #e8f0fe);
    color: var(--primary-600, #1a73e8);
    font-size: 13px;
    font-weight: 500;
}

.etiket-badge-sil {
    cursor: pointer;
    font-size: 14px;
}

.etiket-badge-sil:hover {
    color: var(--danger, #dc2626);
}

/* Autocomplete dropdown (kurum arama vb.) */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1055;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
}

/* Modal section title margin override */
.modal-section-title.mt-lg {
    margin-top: 1.5rem;
}

/* Modal body center aligned */
.modal-body-center {
    text-align: center;
}

/* Float right buton */
.float-end {
    float: right;
}

/* ===== SONUC UYARI (alert yerine) ===== */
.sonuc-uyari {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}
.sonuc-uyari i { font-size: 1.1rem; flex-shrink: 0; }
.sonuc-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sonuc-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.sonuc-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.sonuc-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ─────────────────────────────────────────────────────────────────────────────
   HTML EDITOR (Modal İçerik Editörü)
   ───────────────────────────────────────────────────────────────────────────── */
.html-editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}
.html-editor-separator {
    width: 1px;
    background: var(--border);
    margin: 0 4px;
}
.html-editor-textarea {
    border-radius: 0 0 8px 8px !important;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    min-height: 400px;
}
.html-editor-onizleme {
    min-height: 200px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXCEL KOLON SEÇİCİ
   ═══════════════════════════════════════════════════════════════════════════ */
.excel-ikon { color: #22c55e; }

.excel-kolon-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.excel-kolon-bilgi {
    font-size: 0.82rem;
    color: var(--text-light, #6b7280);
}
.excel-kolon-aksiyonlar {
    display: flex;
    gap: 6px;
}
.excel-kolon-listesi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}
.excel-kolon-item {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 6px;
    background: var(--bg-light, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
}
.excel-kolon-item:hover {
    background: var(--bg-hover, #f3f4f6);
}
.excel-kolon-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary, #ff6f0f);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid var(--border, #d1d5db);
    border-radius: 4px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}
.excel-kolon-checkbox:checked {
    background: var(--primary, #ff6f0f);
    border-color: var(--primary, #ff6f0f);
}
.excel-kolon-checkbox:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.excel-renk-satir {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border, #e5e7eb);
}
.excel-renk-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text, #334155);
    white-space: nowrap;
}
.excel-renk-label i {
    margin-right: 4px;
    color: var(--primary, #2563eb);
}
.excel-renk-input {
    width: 36px;
    height: 30px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: transparent;
}
.excel-renk-onizleme {
    font-size: 0.75rem;
    font-family: monospace;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    min-width: 70px;
    text-align: center;
}
.excel-renk-sifirla {
    margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPORT BİLDİRİM TOAST
   ═══════════════════════════════════════════════════════════════════════════ */
.export-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 400px;
    animation: exportSlideIn 0.3s ease;
}
.export-toast-basarili {
    border-left: 4px solid #22c55e;
}
.export-toast-hata {
    border-left: 4px solid #ef4444;
}
.export-toast-icerik {
    display: flex;
    align-items: center;
    gap: 10px;
}
.export-toast-ikon-basarili {
    font-size: 1.4rem;
    color: #22c55e;
    flex-shrink: 0;
}
.export-toast-ikon-hata {
    font-size: 1.2rem;
    color: #ef4444;
    flex-shrink: 0;
}
.export-toast-baslik {
    font-weight: 600;
    margin-bottom: 2px;
}
.export-toast-alt {
    font-size: 0.8rem;
    color: var(--text-light, #6b7280);
}
.export-toast-indir-btn {
    flex-shrink: 0;
}
.export-toast-kapat {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-light, #9ca3af);
}
.export-toast-kapat:hover {
    color: var(--text, #374151);
}

@keyframes exportSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REFERANS KART (Kurum-Referans Atama)
   ═══════════════════════════════════════════════════════════════════════════ */

.referans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 1200px) {
    .referans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .referans-grid { grid-template-columns: 1fr; }
}
.referans-kart {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
    background: var(--card-bg, #fff);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.referans-kart.atanmis {
    border-left: 4px solid var(--success, #22c55e);
    background: var(--success-bg, #f0fdf4);
}
.referans-kart.atanmamis {
    opacity: 0.7;
}
.referans-kart:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.referans-kart-ust {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.referans-kart-bilgi {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.referans-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.referans-avatar-bos {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--bg-muted, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-light, #9ca3af);
    flex-shrink: 0;
}
.referans-ad {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.referans-unvan {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.referans-kart-alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.referans-etiketler {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.referans-sira {
    display: flex;
    align-items: center;
    gap: 6px;
}
.referans-sira .form-input-sm {
    width: 64px;
    padding: 2px 6px;
    font-size: 0.8rem;
    text-align: center;
}
.form-label-sm {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    margin: 0;
    white-space: nowrap;
}
.referans-tarih {
    font-size: 0.75rem;
    color: var(--text-light, #9ca3af);
}

/* ─────────────────────────────────────────────────────────────────────────────
   GORSEL YUKLEME (Logo / Banner upload)
   ───────────────────────────────────────────────────────────────────────────── */

.gorsel-yukle-alan {
    width: 100%;
    min-height: 160px;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}
.gorsel-yukle-alan:hover {
    border-color: #ff6f0f;
    background: #fff7ed;
}
.gorsel-onizleme {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gorsel-onizleme.d-none {
    display: none;
}
.gorsel-onizleme img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 6px;
}
.gorsel-sil-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.15s;
    z-index: 2;
}
.gorsel-sil-btn:hover {
    background: #dc2626;
}
.gorsel-sec-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.2s;
    padding: 20px;
}
.gorsel-sec-btn:hover {
    color: #ff6f0f;
}
.gorsel-sec-btn i {
    font-size: 2rem;
}
.gorsel-sec-btn span {
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
   INPUT GROUP (Bootstrap yok, kendi tanimimiz)
   ───────────────────────────────────────────────────────────────────────────── */

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.input-group .form-input {
    flex: 1 1 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    min-width: 0;
}
.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.875rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.input-group-text:hover {
    background: #f1f5f9;
    color: #334155;
}
.input-group .form-input:focus + .input-group-text {
    border-color: #ff6f0f;
}

/* Prepend (ikon solda) */
.input-group-prepend .input-group-text {
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    cursor: default;
}
.input-group-prepend .form-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.input-group-prepend .input-group-text:hover {
    background: #f8fafc;
    color: #64748b;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORM SWITCH / CHECK (Bootstrap yok, kendi tanimimiz)
   ───────────────────────────────────────────────────────────────────────────── */

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-check-label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
}
.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #ff6f0f;
    cursor: pointer;
}
.form-switch .form-check-input {
    width: 40px;
    height: 22px;
    appearance: none;
    -webkit-appearance: none;
    background: #cbd5e1;
    border-radius: 22px;
    position: relative;
    transition: background 0.2s;
    border: none;
    outline: none;
    cursor: pointer;
}
.form-switch .form-check-input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.form-switch .form-check-input:checked {
    background: #ff6f0f;
}
.form-switch .form-check-input:checked::after {
    transform: translateX(18px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ALERT KUTUSU (Bootstrap yok, kendi tanimimiz)
   ───────────────────────────────────────────────────────────────────────────── */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEST MAIL SONUC ALANI
   ───────────────────────────────────────────────────────────────────────────── */

.test-mail-sonuc {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
}
.test-mail-sonuc i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.test-mail-sonuc.basarili {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.test-mail-sonuc.basarisiz {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.test-mail-sonuc .detay {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORM CARD HEADER / BODY
   ───────────────────────────────────────────────────────────────────────────── */

.form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}
.form-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-card-header h3 i {
    font-size: 1.2rem;
    color: #ff6f0f;
}
.form-card-body {
    /* icerik alani — padding form-card'dan gelir */
}

/* ─────────────────────────────────────────────────────────────────────────────
   DESTEK DETAY — YANIT KARTLARI
   ───────────────────────────────────────────────────────────────────────────── */

.yanit-kart {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}
.yanit-kart:last-child {
    margin-bottom: 0;
}
.yanit-kart.admin {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.yanit-kart.dahili-not {
    background: #fffbeb;
    border-color: #fde68a;
}
.yanit-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.yanit-baslik-sol {
    display: flex;
    align-items: center;
    gap: 10px;
}
.yanit-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.yanit-avatar.admin {
    background: #dbeafe;
    color: #1d4ed8;
}
.yanit-avatar.kullanici {
    background: #e2e8f0;
    color: #475569;
}
.yanit-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.yanit-meta strong {
    font-size: 0.875rem;
    color: #1e293b;
}
.yanit-meta span {
    font-size: 0.75rem;
    color: #94a3b8;
}
.yanit-icerik {
    padding-left: 42px;
}
.yanit-icerik p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #334155;
    white-space: pre-wrap;
}
.yanit-aksiyonlar {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DESTEK DETAY — DURUM DROPDOWN
   ───────────────────────────────────────────────────────────────────────────── */

.destek-dropdown {
    position: relative;
    display: inline-block;
}
.destek-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 100;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 4px;
    margin-top: 4px;
}
.destek-dropdown.open .destek-dropdown-menu {
    display: block;
}
.destek-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #334155;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}
.destek-dropdown-item:hover {
    background: #f1f5f9;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DESTEK DETAY — TEHLIKE BOLGESI
   ───────────────────────────────────────────────────────────────────────────── */

.tehlike-bolge {
    padding: 20px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
}
.tehlike-bolge p {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: #991b1b;
}

/* Talep icerigi metin alani */
.yanit-icerik-metin {
    margin: 0;
    line-height: 1.7;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEST MAIL — HATA DETAY + SMTP BİLGİ
   ───────────────────────────────────────────────────────────────────────────── */

.test-mail-smtp-bilgi {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #64748b;
}
.test-mail-smtp-bilgi i {
    font-size: 0.85rem;
    margin-right: 3px;
}
.test-mail-hata-detay {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff1f2;
    border: 1px solid #fda4af;
    border-radius: 6px;
}
.test-mail-hata-baslik {
    font-size: 0.8rem;
    font-weight: 600;
    color: #be123c;
    margin-bottom: 6px;
}
.test-mail-hata-baslik i {
    font-size: 0.9rem;
    margin-right: 4px;
}
.test-mail-hata-pre {
    margin: 0;
    font-size: 0.82rem;
    color: #881337;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
}

/* SMTP Kontrol Listesi (Dogrulama Modal) */
.smtp-kontrol-listesi {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.smtp-kontrol-satir {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}
.smtp-kontrol-satir:last-child {
    border-bottom: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CANLI LOG — BAGLANTI DURUMU + LOG TABLOSU
   ───────────────────────────────────────────────────────────────────────────── */

.canli-log-durum {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.canli-log-durum .durum-nokta {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.canli-log-durum.bagli {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.canli-log-durum.bagli .durum-nokta {
    background: #22c55e;
    animation: canli-log-pulse 2s infinite;
}
.canli-log-durum.baglantiKesik {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.canli-log-durum.baglantiKesik .durum-nokta {
    background: #ef4444;
}
.canli-log-durum.baglaniyor {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.canli-log-durum.baglaniyor .durum-nokta {
    background: #f59e0b;
    animation: canli-log-pulse 1s infinite;
}
@keyframes canli-log-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.canli-log-araclari {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.canli-log-sayac {
    font-size: 0.8rem;
    color: #64748b;
    margin-left: 8px;
}

.log-seviye {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}
.log-seviye.warning {
    background: #fef3c7;
    color: #92400e;
}
.log-seviye.error {
    background: #fee2e2;
    color: #991b1b;
}
.log-seviye.critical {
    background: #fce7f3;
    color: #9d174d;
}
.log-seviye.information {
    background: #dbeafe;
    color: #1e40af;
}

.log-zaman {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
}
.log-kaynak {
    font-size: 0.78rem;
    color: #8b5cf6;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.log-mesaj {
    font-size: 0.8rem;
    color: #334155;
    word-break: break-word;
}
.log-exception {
    font-size: 0.75rem;
    color: #991b1b;
    font-family: 'Consolas', 'Monaco', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
    margin-top: 4px;
    padding: 6px 8px;
    background: #fff1f2;
    border-radius: 4px;
}