/* ═══════════════════════════════════════════════════════════════════════════
   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;
}

.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;
    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.5;
}

.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-success {
    background: #10b981;
    color: white;
}

.btn-success: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;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}



.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

    .filter-group:first-child {
        flex: 2;
        min-width: 250px;
    }

.form-row {
    display: flex;
    gap: 15px;
}

.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; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORM CARD (Ekle/Düzenle sayfaları)
   ───────────────────────────────────────────────────────────────────────────── */

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.form-grid-3 .form-group-full {
    grid-column: 1 / -1;
}
@media (max-width: 768px) {
    .form-grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .form-grid-3 { grid-template-columns: repeat(2, 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;
}