/* Modern Tarz CSS - Sistem Geneli */

/* Modern Tablo Stilleri */
.modern-table-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.modern-table-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.modern-table-header {
    background: #fff;
    color: #1e293b;
    padding: 20px 24px;
    border-bottom: 2px solid #e2e8f0;
}

.modern-table-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-table-title i {
    font-size: 20px;
    opacity: 0.9;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.modern-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.modern-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155 !important;
    font-size: 14px;
    vertical-align: middle;
}

.modern-table tbody tr {
    transition: all 0.2s ease;
}

.modern-table tbody tr:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badge Stilleri */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.status-expiring {
    background: rgba(251, 146, 60, 0.1);
    color: #ea580c;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.status-badge.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.status-pending {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Progress Bar */
.progress-modern {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-modern-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.action-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.action-btn.btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.action-btn.btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #334155 !important;
    text-decoration: none !important;
}

.action-btn.btn-danger {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.action-btn.btn-danger:hover {
    background: #fecaca !important;
    color: #b91c1c !important;
    text-decoration: none !important;
}

.action-btn.btn-success {
    background: #dcfce7 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}

.action-btn.btn-success:hover {
    background: #bbf7d0 !important;
    color: #15803d !important;
    text-decoration: none !important;
}

.action-btn.btn-warning {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

.action-btn.btn-warning:hover {
    background: #fde68a !important;
    color: #b45309 !important;
    text-decoration: none !important;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b !important;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.empty-state h4 {
    margin: 0 0 8px 0;
    color: #475569 !important;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Loading State */
.loading-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Container Clearfix */
.container::after,
.row::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-table-wrapper {
        border-radius: 12px;
        overflow-x: auto;
    }

    .modern-table-header {
        padding: 16px 20px;
    }

    .modern-table th,
    .modern-table td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .modern-table-title {
        font-size: 16px;
    }
}

/* Card Variations */
.card-modern {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
}

.card-modern::after {
    content: "";
    display: table;
    clear: both;
}

.card-modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

.card-modern-body {
    padding: 24px;
    width: 100%;
}

.card-modern-body::after {
    content: "";
    display: table;
    clear: both;
}

.card-modern-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit !important;
}

.card-modern-title i {
    font-size: 20px;
    opacity: 0.9;
}

/* Stats Cards */
.stats-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-card:hover {
    transform: translateY(-4px);
}

/* Stats Cards Container - Responsive */
.row.stats-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.row.stats-row .col-lg-2,
.row.stats-row .col-md-4,
.row.stats-row .col-sm-6 {
    padding: 0 8px;
    margin-bottom: 16px;
}

/* Responsive için */
@media (max-width: 1200px) {
    .row.stats-row {
        margin: 0 -6px;
    }
    .row.stats-row .col-lg-2,
    .row.stats-row .col-md-4 {
        padding: 0 6px;
    }
}

@media (max-width: 768px) {
    .row.stats-row {
        margin: 0 -4px;
    }
    .row.stats-row .col-md-4,
    .row.stats-row .col-sm-6 {
        padding: 0 4px;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .row.stats-row .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.stats-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    color: white;
}

.stats-card-icon.icon-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-card-icon.icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stats-card-icon.icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stats-card-icon.icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stats-card-number {
    font-size: 23px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.stats-card-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Financial Summary Card */
.financial-summary {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    color: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.financial-summary-header {
    text-align: center;
    margin-bottom: 24px;
}

.financial-summary-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1e293b;
}

.financial-summary-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.financial-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.financial-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #e2e8f0;
}

.financial-label {
    font-size: 16px;
    color: #374151;
    font-weight: 500;
}

.financial-value {
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.financial-value.positive {
    color: #10b981;
}

.financial-value.negative {
    color: #ef4444;
}

.financial-value.neutral {
    color: #fbbf24;
}

.financial-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 12px;
    color: #64748b;
}

.financial-item-content {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Modern Button Styles - Pastel Colors */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.btn-modern:active {
    transform: translateY(-1px);
}

.btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

/* Primary Button - Soft Lavender */
.btn-primary {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%) !important;
    color: #7c3aed !important;
    border: 1px solid #d8b4fe !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%) !important;
    color: #6d28d9 !important;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25);
}

/* Secondary Button - Soft Sage */
.btn-secondary {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    color: #15803d !important;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.25);
}

/* Success Button - Soft Mint */
.btn-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #047857 !important;
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.25);
}

/* Danger Button - Soft Rose */
.btn-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%) !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%) !important;
    color: #b91c1c !important;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
}

/* Warning Button - Soft Peach */
.btn-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #b45309 !important;
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.25);
}

/* Info Button - Soft Sky */
.btn-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #0284c7 !important;
    border: 1px solid #7dd3fc !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 100%) !important;
    color: #0369a1 !important;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.25);
}

/* Light Button - Soft Cream */
.btn-light {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%) !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-light:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #475569 !important;
    box-shadow: 0 12px 30px rgba(100, 116, 139, 0.15);
}

/* Dark Button - Soft Slate */
.btn-dark {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
    color: #334155 !important;
    box-shadow: 0 12px 30px rgba(71, 85, 105, 0.25);
}

/* Pastel Span Styles */
span.pastel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

span.pastel-badge.pastel-lavender {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed;
    border: 1px solid #d8b4fe;
}

span.pastel-badge.pastel-sage {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

span.pastel-badge.pastel-mint {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid #a7f3d0;
}

span.pastel-badge.pastel-rose {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

span.pastel-badge.pastel-peach {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border: 1px solid #fde68a;
}

span.pastel-badge.pastel-sky {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
    border: 1px solid #7dd3fc;
}

span.pastel-badge.pastel-cream {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    color: #64748b;
    border: 1px solid #e2e8f0;
}

span.pastel-badge.pastel-slate {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* Pastel Text Spans */
span.pastel-text {
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

span.pastel-text.pastel-lavender-text {
    background: rgba(243, 232, 255, 0.3);
    color: #7c3aed;
}

span.pastel-text.pastel-sage-text {
    background: rgba(240, 253, 244, 0.3);
    color: #16a34a;
}

span.pastel-text.pastel-mint-text {
    background: rgba(236, 253, 245, 0.3);
    color: #059669;
}

span.pastel-text.pastel-rose-text {
    background: rgba(254, 242, 242, 0.3);
    color: #dc2626;
}

span.pastel-text.pastel-peach-text {
    background: rgba(255, 251, 235, 0.3);
    color: #d97706;
}

span.pastel-text.pastel-sky-text {
    background: rgba(240, 249, 255, 0.3);
    color: #0284c7;
}

span.pastel-text.pastel-cream-text {
    background: rgba(254, 254, 254, 0.3);
    color: #64748b;
}

span.pastel-text.pastel-slate-text {
    background: rgba(248, 250, 252, 0.3);
    color: #475569;
}

/* General Pastel Span Styles */
span.pastel-highlight {
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 1px solid #fde68a;
}

span.pastel-info {
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 100%);
    color: #0284c7;
    border: 1px solid #7dd3fc;
}

span.pastel-success {
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 1px solid #a7f3d0;
}

span.pastel-warning {
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 1px solid #fde68a;
}

span.pastel-error {
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Pastel Status Indicators */
span.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

span.status-indicator.status-active {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid #a7f3d0;
}

span.status-indicator.status-pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border: 1px solid #fde68a;
}

span.status-indicator.status-inactive {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    border: 1px solid #cbd5e1;
}

span.status-indicator.status-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Phone Input Mask Styles */
input[type="tel"].phone-mask {
    font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 500;
}

input[type="tel"].phone-mask:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

input[type="tel"].phone-mask.valid {
    border-color: #16a34a;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

input[type="tel"].phone-mask.invalid {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

input[type="tel"].phone-mask::placeholder {
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: normal;
}

/* Phone Input Validation Messages */
.phone-validation-message {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    display: none;
}

.phone-validation-message.valid {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.phone-validation-message.invalid {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.phone-validation-message.show {
    display: block;
}

/* Button Sizes */
.btn-modern.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 36px;
    border-radius: 8px;
}

.btn-modern.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 52px;
    border-radius: 16px;
}

.btn-modern.btn-xl {
    padding: 20px 40px;
    font-size: 18px;
    min-height: 60px;
    border-radius: 20px;
}

/* Button States */
.btn-modern:disabled,
.btn-modern.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-modern:disabled:hover,
.btn-modern.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Icon Buttons */
.btn-modern.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    min-height: 44px;
}

.btn-modern.btn-icon.btn-sm {
    width: 36px;
    height: 36px;
    min-height: 36px;
}

.btn-modern.btn-icon.btn-lg {
    width: 52px;
    height: 52px;
    min-height: 52px;
}

/* Header Actions - Modern Design */
.header-actions-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-action-item {
    position: relative;
}

.header-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 44px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 0 16px;
    min-width: 80px;
}

.header-action-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #1f2937;
}

.header-action-icon {
    position: relative;
    font-size: 16px;
    color: #64748b;
    transition: color 0.2s ease;
}

.header-action-link:hover .header-action-icon {
    color: #374151;
}

.header-action-text {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    transition: color 0.2s ease;
}

.header-action-link:hover .header-action-text {
    color: #374151;
}

/* Çıkış butonu için özel stil */
.header-action-logout:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.header-action-logout:hover .header-action-icon {
    color: #dc2626;
}

.header-action-logout:hover .header-action-text {
    color: #dc2626;
}

/* Bildirim badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

.modern-nav-menu {
    display: flex;
    gap: 10px;
}

.modern-nav-menu a {
    text-decoration: none;
    color: #334155;
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.modern-nav-menu a.active {
    background: #0277bd;
    color: #fff;
}

.modern-nav-menu a:hover {
    background: #0277bd;
    color: #fff;
}

input.modern-input[type="text"], .modern-input {
    background: #fff !important;
    border: 1px solid #f4f4f4;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 16px;
    color: #1f2937 !important;
}

.modern-select {
    background: #fff !important;
    border: 1px solid #f4f4f4;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 16px;
    color: #1f2937 !important;
}

.modern-input:focus,
.modern-select:focus {
    outline: none;
    border-color: #0277bd;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.modern-label {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748 !important;
    margin-bottom: 4px;
}

/* Select ok (dropdown indicator) */
select.form-select.modern-input,
.modern-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 14px;
    padding-right: 52px; /* ok için sağ boşluk */
}

/* IE/Edge eski sürümler okunu gizle */
select.form-select.modern-input::-ms-expand {
    display: none;
}
.modern-select::-ms-expand {
    display: none;
}

/* Karanlık arka planlarda okun görünürlüğü için varyant */
.bg-dark select.form-select.modern-input,
.bg-dark .modern-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* Modern Select görünümü */
select.form-select.modern-input,
.modern-select {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px 20px;
    color: #1f2937 !important;
    line-height: 1.25;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        background-color 0.2s ease, color 0.2s ease;
}

select.form-select.modern-input:hover,
.modern-select:hover {
    border-color: #cbd5e1;
}

select.form-select.modern-input:focus,
.modern-select:focus {
    border-color: #0277bd;
    box-shadow: 0 0 0 4px rgba(2, 119, 189, 0.12);
}

select.form-select.modern-input:disabled,
.modern-select:disabled {
    background-color: #f8fafc;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.9;
}

/* Boyut varyantları */
select.form-select.modern-input.select-sm,
.modern-select.select-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 10px;
}

select.form-select.modern-input.select-lg,
.modern-select.select-lg {
    padding: 16px 22px;
    font-size: 17px;
    border-radius: 14px;
}

/* Doğrulama durumları */
select.form-select.modern-input.is-valid,
.modern-select.is-valid {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

select.form-select.modern-input.is-invalid,
.modern-select.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

/* Option ve Optgroup (tarayıcı destekli olduğu ölçüde) */
select.form-select.modern-input option,
.modern-select option {
    color: #1f2937;
    background: #ffffff;
}

select.form-select.modern-input optgroup,
.modern-select optgroup {
    color: #475569;
    font-weight: 600;
}

/* Karanlık arka plan varyantı */
.bg-dark select.form-select.modern-input,
.bg-dark .modern-select {
    background-color: #0f172a;
    color: #e2e8f0;
    border-color: #1e293b;
}

.bg-dark select.form-select.modern-input:hover,
.bg-dark .modern-select:hover {
    border-color: #334155;
}

.bg-dark select.form-select.modern-input:focus,
.bg-dark .modern-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

/* Username durum stilleri */
.username-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
}
.username-status.loading {
    color: #64748b;
}
.username-status.ok {
    color: #16a34a;
}
.username-status.error {
    color: #dc2626;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6),
            0 0 0 8px rgba(239, 68, 68, 0.1);
    }
    100% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
}

/* Modern User Dropdown */
.modern-user-dropdown {
    position: relative;
    display: inline-block;
}

.modern-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
    font-size: 20px;
}

.modern-user-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.modern-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
}

.modern-user-dropdown:hover .modern-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modern-dropdown-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.modern-user-details {
    flex: 1;
    min-width: 0;
}

.modern-user-details .modern-user-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    color: white;
    max-width: none;
}

.modern-user-email {
    font-size: 12px;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

.modern-dropdown-items {
    padding: 8px 0;
}

.modern-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.modern-dropdown-item:hover {
    background: #f8fafc;
    color: #1f2937;
    text-decoration: none;
}

.modern-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.modern-dropdown-item:hover i {
    color: #374151;
}

.modern-dropdown-logout {
    color: #dc2626 !important;
}

.modern-dropdown-logout:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.modern-dropdown-logout i {
    color: #dc2626 !important;
}

.modern-dropdown-logout:hover i {
    color: #b91c1c !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-actions-container {
        padding: 15px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-action-link {
        min-width: 70px;
        height: 40px;
        padding: 0 12px;
    }

    .header-action-icon {
        font-size: 14px;
    }

    .header-action-text {
        font-size: 12px;
    }

    /* Modern User Dropdown Mobile */
    .modern-user-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .modern-dropdown-menu {
        min-width: 260px;
        right: -10px;
    }

    .modern-dropdown-header {
        padding: 12px 16px;
    }

    .modern-dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .header-actions {
        gap: 6px;
    }

    .header-action-link {
        min-width: 60px;
        height: 36px;
        padding: 0 10px;
    }

    .header-action-icon {
        font-size: 13px;
    }

    .header-action-text {
        font-size: 11px;
    }

    /* Modern User Dropdown Small Mobile */
    .modern-user-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .modern-dropdown-menu {
        min-width: 240px;
        right: -20px;
    }

    .modern-dropdown-header {
        padding: 10px 14px;
    }

    .modern-user-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .modern-dropdown-item {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ============================================
   MODERN MODAL TASARIMI
   ============================================ */

/* Modal Overlay */
.modal.fade {
    backdrop-filter: blur(0);
    transition: backdrop-filter 0.3s ease;
}

.modal.show {
    backdrop-filter: blur(8px);
}

.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.6);
}

.modal-backdrop.show {
    opacity: 1;
}

/* Modal Dialog */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-dialog.modal-dialog-centered {
    min-height: calc(100% - 1rem);
}

/* Modal Content - Modern Beyaz Tasarım */
.modal-content.modern {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header - Varsayılan Mor Gradyan */
.modal-content.modern .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff;
    padding: 24px 28px;
    border-bottom: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

/* Modal Header Varyantları - Soft Renkler */

/* Açık Mavi Kurumsal Tonlar - Ekleme/Yeni İşlemler */
.modal-content.modern .modal-header.header-gold {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border-bottom: 2px solid #0ea5e9 !important;
}

.modal-content.modern .modal-header.header-gold .modal-title {
    color: #075985 !important;
}

.modal-content.modern .modal-header.header-gold .modal-title i {
    color: #0284c7 !important;
}

.modal-content.modern .modal-header.header-gold .btn-close {
    background: rgba(7, 89, 133, 0.15) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23075985'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
}

/* Mavi Tonları - Düzenleme İşlemleri */
.modal-content.modern .modal-header.header-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-bottom: 2px solid #3b82f6 !important;
}

.modal-content.modern .modal-header.header-blue .modal-title {
    color: #1e40af !important;
}

.modal-content.modern .modal-header.header-blue .modal-title i {
    color: #2563eb !important;
}

.modal-content.modern .modal-header.header-blue .btn-close {
    background: rgba(30, 64, 175, 0.15) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e40af'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
}

/* Yeşil Tonları - Onay/Başarı İşlemleri */
.modal-content.modern .modal-header.header-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border-bottom: 2px solid #10b981 !important;
}

.modal-content.modern .modal-header.header-green .modal-title {
    color: #065f46 !important;
}

.modal-content.modern .modal-header.header-green .modal-title i {
    color: #059669 !important;
}

.modal-content.modern .modal-header.header-green .btn-close {
    background: rgba(6, 95, 70, 0.15) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23065f46'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
}

/* Kırmızı/Pembe Tonları - Silme/Uyarı İşlemleri */
.modal-content.modern .modal-header.header-red {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%) !important;
    border-bottom: 2px solid #ef4444 !important;
}

.modal-content.modern .modal-header.header-red .modal-title {
    color: #7f1d1d !important;
}

.modal-content.modern .modal-header.header-red .modal-title i {
    color: #dc2626 !important;
}

.modal-content.modern .modal-header.header-red .btn-close {
    background: rgba(127, 29, 29, 0.15) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%237f1d1d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
}

/* Turuncu Tonları - Bilgi/Uyarı */
.modal-content.modern .modal-header.header-orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%) !important;
    border-bottom: 2px solid #f97316 !important;
}

.modal-content.modern .modal-header.header-orange .modal-title {
    color: #7c2d12 !important;
}

.modal-content.modern .modal-header.header-orange .modal-title i {
    color: #ea580c !important;
}

.modal-content.modern .modal-header.header-orange .btn-close {
    background: rgba(124, 45, 18, 0.15) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%237c2d12'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
}

/* Cyan Tonları - Mesaj/İletişim */
.modal-content.modern .modal-header.header-cyan {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%) !important;
    border-bottom: 2px solid #06b6d4 !important;
}

.modal-content.modern .modal-header.header-cyan .modal-title {
    color: #164e63 !important;
}

.modal-content.modern .modal-header.header-cyan .modal-title i {
    color: #0891b2 !important;
}

.modal-content.modern .modal-header.header-cyan .btn-close {
    background: rgba(22, 78, 99, 0.15) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23164e63'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
}

/* Mor/Lavanta Tonları - Özel İşlemler */
.modal-content.modern .modal-header.header-purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%) !important;
    border-bottom: 2px solid #a855f7 !important;
}

.modal-content.modern .modal-header.header-purple .modal-title {
    color: #581c87 !important;
}

.modal-content.modern .modal-header.header-purple .modal-title i {
    color: #9333ea !important;
}

.modal-content.modern .modal-header.header-purple .btn-close {
    background: rgba(88, 28, 135, 0.15) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23581c87'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
}

/* Gri Tonları - Bilgi/Dokümantasyon */
.modal-content.modern .modal-header.header-gray {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-bottom: 2px solid #94a3b8 !important;
}

.modal-content.modern .modal-header.header-gray .modal-title {
    color: #1e293b !important;
}

.modal-content.modern .modal-header.header-gray .modal-title i {
    color: #475569 !important;
}

.modal-content.modern .modal-header.header-gray .btn-close {
    background: rgba(30, 41, 59, 0.15) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e293b'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
}

.modal-content.modern .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.3px;
}

.modal-content.modern .modal-title i {
    font-size: 22px;
    opacity: 0.95;
}

/* Modal Close Button */
.modal-content.modern .btn-close {
    background: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px !important;
}

.modal-content.modern .btn-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px !important;
    transform: rotate(90deg) scale(1.1);
}

.modal-content.modern .btn-close:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.modal-content.modern .modal-body {
    padding: 28px 28px;
    background: #ffffff !important;
    color: #1e293b !important;
}

.modal-content.modern .modal-body .form-group {
    margin-bottom: 20px;
}

.modal-content.modern .modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-content.modern .modal-body label {
    font-size: 15px;
    font-weight: 600;
    color: #334155 !important;
    margin-bottom: 8px;
    display: block;
}

.modal-content.modern .modal-body .form-control,
.modal-content.modern .modal-body .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: #1e293b !important;
    background: #ffffff !important;
    transition: all 0.2s ease;
}

.modal-content.modern .modal-body .form-control:focus,
.modal-content.modern .modal-body .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    outline: none;
}

.modal-content.modern .modal-body .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.modal-content.modern .modal-body textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Modal Footer - Varsayılan */
.modal-content.modern .modal-footer {
    padding: 20px 28px;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Modal Footer Varyantları - Header'larla Uyumlu */

/* Açık Mavi Kurumsal Footer */
.modal-content.modern .modal-footer.footer-gold {
    background: #f0f9ff !important;
    border-top: 1px solid #bae6fd !important;
}

/* Mavi Footer */
.modal-content.modern .modal-footer.footer-blue {
    background: #eff6ff !important;
    border-top: 1px solid #bfdbfe !important;
}

/* Yeşil Footer */
.modal-content.modern .modal-footer.footer-green {
    background: #f0fdf4 !important;
    border-top: 1px solid #bbf7d0 !important;
}

/* Kırmızı Footer */
.modal-content.modern .modal-footer.footer-red {
    background: #fef2f2 !important;
    border-top: 1px solid #fecaca !important;
}

/* Turuncu Footer */
.modal-content.modern .modal-footer.footer-orange {
    background: #fff7ed !important;
    border-top: 1px solid #fed7aa !important;
}

/* Cyan Footer */
.modal-content.modern .modal-footer.footer-cyan {
    background: #ecfeff !important;
    border-top: 1px solid #a5f3fc !important;
}

/* Mor Footer */
.modal-content.modern .modal-footer.footer-purple {
    background: #faf5ff !important;
    border-top: 1px solid #e9d5ff !important;
}

/* Gri Footer */
.modal-content.modern .modal-footer.footer-gray {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

.modal-content.modern .modal-footer .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    min-width: 100px;
    transition: all 0.2s ease;
    border: none;
}

.modal-content.modern .modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-content.modern .modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Açık Mavi Kurumsal Primary Button */
.modal-content.modern .modal-footer .btn-primary.btn-gold {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
}

.modal-content.modern .modal-footer .btn-primary.btn-gold:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important;
}

/* Mavi Primary Button */
.modal-content.modern .modal-footer .btn-primary.btn-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.modal-content.modern .modal-footer .btn-primary.btn-blue:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

/* Yeşil Primary Button */
.modal-content.modern .modal-footer .btn-primary.btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.modal-content.modern .modal-footer .btn-primary.btn-green:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

/* Kırmızı Primary Button */
.modal-content.modern .modal-footer .btn-primary.btn-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.modal-content.modern .modal-footer .btn-primary.btn-red:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

/* Turuncu Primary Button */
.modal-content.modern .modal-footer .btn-primary.btn-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

.modal-content.modern .modal-footer .btn-primary.btn-orange:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4) !important;
}

/* Cyan Primary Button */
.modal-content.modern .modal-footer .btn-primary.btn-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3) !important;
}

.modal-content.modern .modal-footer .btn-primary.btn-cyan:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4) !important;
}

/* Mor Primary Button */
.modal-content.modern .modal-footer .btn-primary.btn-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3) !important;
}

.modal-content.modern .modal-footer .btn-primary.btn-purple:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4) !important;
}

.modal-content.modern .modal-footer .btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.modal-content.modern .modal-footer .btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

/* Modal Size Variants */
.modal-sm .modal-content.modern .modal-header {
    padding: 20px 24px;
    min-height: 60px;
}

.modal-sm .modal-content.modern .modal-title {
    font-size: 18px;
}

.modal-sm .modal-content.modern .modal-body {
    padding: 24px;
}

.modal-lg .modal-content.modern .modal-header,
.modal-xl .modal-content.modern .modal-header {
    padding: 28px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    min-height: 80px;
}

.modal-lg .modal-content.modern .modal-title,
.modal-xl .modal-content.modern .modal-title {
    font-size: 22px;
}

.modal-lg .modal-content.modern .modal-body,
.modal-xl .modal-content.modern .modal-body {
    padding: 20px;
}

/* Modal Input Groups */
.modal-content.modern .input-group {
    border-radius: 12px;
    overflow: hidden;
}

.modal-content.modern .input-group-text {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-right: none;
    color: #64748b;
    font-weight: 500;
}

.modal-content.modern .input-group .form-control {
    border-left: none;
}

.modal-content.modern .input-group .form-control:focus {
    border-left: none;
}

/* Validation States */
.modal-content.modern .form-control.is-valid {
    border-color: #10b981;
}

.modal-content.modern .form-control.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.modal-content.modern .form-control.is-invalid {
    border-color: #ef4444;
}

.modal-content.modern .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.modal-content.modern .invalid-feedback {
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
}

.modal-content.modern .valid-feedback {
    color: #059669;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
}

/* Modal Helper Text */
.modal-content.modern .form-text {
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content.modern .modal-header {
        padding: 20px;
        min-height: 60px;
    }

    .modal-content.modern .modal-title {
        font-size: 18px;
    }

    .modal-content.modern .btn-close {
        width: 32px;
        height: 32px;
    }

    .modal-content.modern .modal-body {
        padding: 20px;
    }

    .modal-content.modern .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .modal-content.modern .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .modal-content.modern {
        border-radius: 16px;
    }

    .modal-content.modern .modal-header {
        padding: 16px;
        min-height: 56px;
    }

    .modal-content.modern .modal-title {
        font-size: 16px;
    }

    .modal-content.modern .btn-close {
        width: 28px;
        height: 28px;
    }

    .modal-content.modern .modal-body {
        padding: 16px;
    }

    .modal-content.modern .modal-footer {
        padding: 12px 16px;
    }
}

/* Modal Loading State */
.modal-content.modern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.modal-content.modern .modal-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Modal Alert Box */
.modal-content.modern .alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 2px solid;
}

.modal-content.modern .alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.modal-content.modern .alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.modal-content.modern .alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.modal-content.modern .alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* ============================================
   SÖZLEŞME FORMU ÖZEL STİLLERİ
   ============================================ */

/* Modern Card Styles - Daha Yumuşak Renkler */
.contract-modern-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 20px;
}

.contract-modern-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
}

.contract-modern-card .card-header .card-title {
    color: #475569;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contract-modern-card .card-header .card-title i {
    color: #6366f1;
    margin-right: 4px;
    opacity: 0.9;
}

.contract-modern-card .card-body {
    padding: 20px;
}

/* Form Label Styles */
.contract-form-label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.contract-modern-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
}

.contract-modern-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.contract-form-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    display: block;
}

/* Upload Area Styles */
.contract-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    background: #f8fafc;
    cursor: pointer;
}

.contract-upload-area:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}

.contract-upload-placeholder {
    cursor: pointer;
}

.contract-upload-preview {
    padding: 20px;
}

/* Contract Page Header */
.contract-page-header {
    margin-bottom: 30px;
}

.contract-page-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 8px;
}

.contract-page-subtitle {
    color: #64748b;
    font-size: 14px;
}

/* Button Styles - Yumuşak Renkler */
.contract-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.2s;
}

.contract-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.contract-btn-secondary {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.2s;
}

.contract-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

/* SEO Counter */
.contract-seo-counter {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Input Group Styles */
.contract-input-group-text {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-right: 0;
    color: #64748b;
    padding: 10px 14px;
}

/* PDF Preview Styles */
.pdf-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pdf-preview:hover {
    border-color: #6366f1;
    background-color: #f1f5f9;
}

.pdf-overlay {
    text-align: center;
    padding: 20px;
}

.pdf-overlay i {
    display: block;
    margin-bottom: 10px;
}

.pdf-overlay p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

/* Backend Style Adaptations */
.bredbred {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bredsol h1 {
    font-size: 19px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bredsol h1 i {
    color: #6366f1;
}

.bredsag {
    display: flex;
    gap: 10px;
}

.bredsag .btn {
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Form Layout Styles */
.yeniolustur {
    float: left;
    width: calc(100% - 320px);
    padding-right: 20px;
}

.kategorileri {
    float: right;
    width: 300px;
}

.bloktek {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.bloktek h1 {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bloktek h1 i {
    color: #6366f1;
}

.bloktek .form-group {
    margin-bottom: 16px;
    position: relative;
}

.bloktek .form-group:last-child {
    margin-bottom: 0;
}

.kategoriresmi {
    height: 180px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #cbd5e1;
    position: relative;
}

.kategoriresmi:hover {
    border-color: #6366f1;
    transform: scale(1.02);
}

.fotokaldir {
    position: absolute;
    top: 18px;
    right: 8px;
    z-index: 100;
}

.fotokaldir a {
    background: rgba(255, 255, 255, 0.95);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #dc2626;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fotokaldir a:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .contract-modern-card .card-header {
        padding: 14px 16px;
    }

    .contract-modern-card .card-body {
        padding: 16px;
    }

    .contract-page-title {
        font-size: 20px;
    }

    .yeniolustur {
        width: 100%;
        float: none;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .kategorileri {
        width: 100%;
        float: none;
    }

    .bredbred {
        flex-direction: column;
        gap: 16px;
    }

    .bredsol h1 {
        font-size: 18px;
    }

    .bredsag {
        width: 100%;
        flex-wrap: wrap;
    }

    .bredsag .btn {
        flex: 1;
    }
}

/* Clearfix for floated elements */
.col-lg-12:after {
    content: "";
    display: table;
    clear: both;
}

/* Form Control Modern Styling */
.yeniolustur .form-control,
.yeniolustur .form-select,
.bloktek .form-control,
.bloktek .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.yeniolustur .form-control:focus,
.yeniolustur .form-select:focus,
.bloktek .form-control:focus,
.bloktek .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.yeniolustur label,
.bloktek label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* Alert Styles */
.yeniolustur .alert {
    border-radius: 8px;
    border: 1px solid;
    padding: 12px 16px;
}

.yeniolustur .alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.yeniolustur .alert ul {
    margin: 0;
    padding-left: 20px;
}

.yeniolustur .alert li {
    margin-bottom: 4px;
}

.yeniolustur .alert li:last-child {
    margin-bottom: 0;
}

/* ============================================
   FANCYBOX DOSYA YÖNETİCİSİ POPUP STİLLERİ
   ============================================ */

/* Modal backdrop z-index ayarı */
.modal-backdrop {
    z-index: 1055 !important;
}

/* Fancybox File Manager Custom Styles - ÇOK YÜKSEK z-index */
.filemanager-fancybox-custom .fancybox__container {
    z-index: 999999 !important;
}

.filemanager-fancybox-custom .fancybox__backdrop {
    z-index: 999998 !important;
    background: rgba(0, 0, 0, 0.85) !important;
}

/* Fancybox aktifken modal backdrop'ları gizle */
body.compensate-for-scrollbar .modal-backdrop {
    display: none !important;
}

.filemanager-fancybox-custom .fancybox__content {
    width: 90vw !important;
    max-width: 1400px !important;
    height: 85vh !important;
    max-height: 800px !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.filemanager-fancybox-custom .fancybox__iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 16px !important;
}

.filemanager-fancybox-custom .fancybox__slide {
    padding: 0 !important;
}

/* Kapatma butonu stilizasyonu */
.filemanager-fancybox-custom .fancybox__button--close {
    background: rgba(220, 38, 38, 0.9) !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    top: 15px !important;
    right: 15px !important;
    transition: all 0.2s ease !important;
}

.filemanager-fancybox-custom .fancybox__button--close:hover {
    background: rgba(185, 28, 28, 1) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .filemanager-fancybox-custom .fancybox__content {
        width: 95vw !important;
        height: 80vh !important;
    }
}

@media (max-width: 768px) {
    .filemanager-fancybox-custom .fancybox__content {
        width: 98vw !important;
        height: 90vh !important;
        max-height: none !important;
        border-radius: 12px !important;
    }

    .filemanager-fancybox-custom .fancybox__button--close {
        width: 36px !important;
        height: 36px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 576px) {
    .filemanager-fancybox-custom .fancybox__content {
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }
}

/* Compact Image Selector for Logo */
.image-selector-compact {
    width: 100%;
}

.image-preview-compact {
    width: 100%;
    height: 45px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    transition: all 0.2s;
    overflow: hidden;
}

.image-preview-compact:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.image-preview-compact img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-preview-compact i {
    font-size: 20px;
    color: #9ca3af;
}

/* Action Buttons - Farklı Renkler */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-action i {
    font-size: 14px;
}

/* Düzenle - Mavi */
.btn-edit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Yeni Sipariş - Turuncu */
.btn-order {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
}

.btn-order:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* SMS Gönder - Yeşil */
.btn-sms {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.btn-sms:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* E-posta Gönder - Cyan */
.btn-email {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white !important;
}

.btn-email:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

/* Fatura Oluştur - Sarı */
.btn-invoice {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important;
    color: white !important;
}

.btn-invoice:hover {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.4);
}

/* Oturum Aç - Mor */
.btn-login {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
}

.btn-login:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Silinmiş Siparişler - Kırmızı */
.btn-trash {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-trash:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    color: white !important;
}

.customer-detail-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.customer-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.customer-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-avatar-large i {
    font-size: 36px;
    color: white;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.2s;
}

.stat-card.compact {
    padding: 12px;
    gap: 10px;
    flex-direction: column;
    text-align: center;
    min-height: 120px;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.compact {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.stat-icon i {
    font-size: 24px;
}

.stat-icon.compact i {
    font-size: 20px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.stat-value.compact {
    font-size: 18px;
    margin-top: 8px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.customer-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.menu-btn {
    padding: 10px 16px;
    border-radius: 8px;
    background: white;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.menu-btn:hover {
    color: #667eea;
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.menu-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.menu-btn i {
    font-size: 14px;
}

.content-area {
    padding: 20px;
}

.modern-table-wrapper {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table thead {
    background: #f8fafc;
}

.modern-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
    border-bottom: 2px solid #e5e7eb;
}

.modern-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 14px;
}

.modern-table tbody tr:hover {
    background: #f8fafc;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.status-active {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.status-expired {
    background: #fee2e2;
    color: #dc2626;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-label {
    color: #64748b;
    font-size: 13px;
}

.info-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1400px) {
    .stat-value.compact {
        font-size: 16px;
    }

    .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .stat-card.compact {
        min-height: 100px;
        padding: 10px;
    }

    .stat-icon.compact {
        width: 40px;
        height: 40px;
    }

    .stat-icon.compact i {
        font-size: 18px;
    }

    .stat-value.compact {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .menu-buttons {
        flex-direction: column;
    }

    .menu-btn {
        width: 100%;
        justify-content: center;
    }

    .customer-detail-header {
        flex-direction: column;
        gap: 16px;
    }

    .customer-detail-header > div {
        width: 100%;
    }

    .customer-detail-header .d-flex.gap-2 {
        justify-content: flex-start !important;
        width: 100%;
    }

    /* Butonlar mobilde küçük */
    .btn-action {
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn-action i {
        font-size: 13px;
    }

    .modern-table {
        font-size: 12px;
    }

    .modern-table th,
    .modern-table td {
        padding: 8px;
    }
}

@media (max-width: 576px) {
    /* Mobilde tüm butonlar tam genişlik */
    .customer-detail-header .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* Date Info Box */
.date-info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
}

.date-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    color: #1e40af;
    font-size: 14px;
}

.date-info-row span {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-info-row span i {
    font-size: 14px;
    color: #3b82f6;
}

.date-info-row strong {
    font-weight: 700;
    color: #1e3a8a;
}

/* Price Summary Box */
.price-summary-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #475569;
    font-size: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #cbd5e1;
    font-size: 18px;
    color: #1e293b;
}

.price-row span {
    font-weight: 500;
}

.price-row strong {
    font-weight: 700;
    color: #667eea;
}

.price-row.total strong {
    color: #16a34a;
    font-size: 20px;
}

/* KDV Badge Styles */
.kdv-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.kdv-badge.kdv-dahil {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    border: 1px solid #86efac;
}

.kdv-badge.kdv-haric {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 1px solid #fbbf24;
}

/* Kalan Gün Badge Styles */
.kalan-gun-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.kalan-gun-badge.critical {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.kalan-gun-badge.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 1px solid #fbbf24;
}

.kalan-gun-badge.normal {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    border: 1px solid #93c5fd;
}

/* Table Edit Button */
.btn-table-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-table-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-table-edit i {
    font-size: 14px;
}

/* Table Delete Button */
.btn-table-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-table-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-table-delete i {
    font-size: 14px;
}

/* Table Restore Button */
.btn-table-restore {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-table-restore:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-table-restore i {
    font-size: 14px;
}

/* Table Force Delete Button */
.btn-table-force-delete {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%) !important;
    color: white !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-table-force-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.6);
}

.btn-table-force-delete i {
    font-size: 14px;
}

/* Table PDF Button */
.btn-table-pdf {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-table-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    color: white !important;
}

.btn-table-pdf i {
    font-size: 14px;
}

/* Table Upload Button */
.btn-table-upload {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-table-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-table-upload i {
    font-size: 14px;
}

/* Products Grid - 5 columns on XL screens */
@media (min-width: 1200px) {
    .products-grid > [class*="col-"] {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.product-card-image {
    position: relative;
    padding-top: 75%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #9ca3af;
}

.product-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
}

.product-card-body {
    padding: 16px;
    flex: 1;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-category {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.product-card-price {
    margin-bottom: 8px;
}

.price-main {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.price-old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
}

.price-loop {
    font-size: 12px;
    color: #64748b;
    display: block;
}

.price-base {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-top: 4px;
    font-style: italic;
}

.product-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.product-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

.btn-card {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-card.btn-edit {
    background: #667eea !important;
    color: white !important;
}

.btn-card.btn-edit:hover {
    background: #5568d3 !important;
    color: white !important;
}

.btn-card.btn-delete {
    background: #ef4444 !important;
    color: white !important;
    flex: 0 0 auto;
    width: 40px;
}

.btn-card.btn-delete:hover {
    background: #dc2626 !important;
    color: white !important;
}

/* Filter Panel */
#filterPanelWrapper {
    overflow: hidden;
}
.filter-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 15px;
    color: #1e40af;
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: white;
    border: 1px solid #dc2626;
    border-radius: 6px;
    color: #dc2626;
    text-decoration: none;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: #dc2626;
    color: white;
}

/* ============================================
   AJANS SÜRESİ BİTİMİ STİLLERİ
   ============================================ */

/* Blur efekti - Süre dolmuş ajanslar için */
.expired-blur {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    position: relative;
}

/* Expiry overlay - Tam ekran kaplayan overlay */
.expiry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Expiry modal içeriği */
.expiry-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 800px;
    width: 95%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: expModalSlideUp 0.4s ease-out;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom scrollbar */
.expiry-modal-content::-webkit-scrollbar {
    width: 8px;
}

.expiry-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.expiry-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.expiry-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@keyframes expModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Expiry modal header - Pastel Kırmızı */
.expiry-modal-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #1e293b;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.expiry-modal-header i {
    font-size: 64px;
    margin-bottom: 16px;
    color: #ef4444;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-icon 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.2));
}

@keyframes pulse-icon {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.expiry-modal-header h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
}

.expiry-modal-header p {
    margin: 10px 0 0 0;
    font-size: 15px;
    color: #64748b;
}

/* Expiry modal body - Modern ve temiz */
.expiry-modal-body {
    padding: 32px 40px;
    background: #fafafa;
}

/* Yıllık indirim animasyonu */
@keyframes discountPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

#yearlyDiscountRow {
    animation: discountPulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .expiry-modal-content {
        max-width: 95%;
        width: 95%;
    }

    .expiry-modal-body {
        padding: 24px 20px;
    }
}

.expiry-modal-body .alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #475569;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.expiry-modal-body .alert-danger strong {
    color: #dc2626;
}

.expiry-modal-body .alert-danger i {
    color: #ef4444;
    margin-right: 8px;
}

/* Expiry modal form stilleri */
.expiry-modal-body form select:focus,
.expiry-modal-body form select:hover {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    outline: none;
}

.expiry-modal-body form button[type="submit"]:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
    transform: translateY(-2px);
}

.expiry-modal-body form a.btn:hover {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

/* Warning popup backdrop - Tüm sayfayı blur yap */
.warning-popup::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: -1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Sayfa blur efekti - Popup göründüğünde */
.page-blurred {
    filter: blur(15px) brightness(0.95);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s ease;
}

/* Body blur active - Header, sidebar gibi tüm elementleri blur yap */
body.popup-active #mainContent,
body.popup-active header,
body.popup-active .sidebar,
body.popup-active .topbar,
body.popup-active nav,
body.popup-active .header-content {
    filter: blur(15px) brightness(0.95);
    transition: filter 0.3s ease;
}

/* Warning popup - Pastel Modern Tasarım (Ortalanmış) */
.warning-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    animation: popupFadeIn 0.4s ease-out;
    overflow: hidden;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Warning popup header - Pastel tarz */
.warning-popup-header {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(251, 146, 60, 0.1);
}

.warning-popup-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.warning-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.warning-popup-message {
    padding: 24px;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    background: #fafafa;
}

.warning-popup-message strong {
    color: #1e293b;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.warning-popup-actions {
    padding: 20px 24px;
    background: white;
    display: flex;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
}

.warning-popup-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
}

.warning-popup-actions .btn-warning {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.25);
}

.warning-popup-actions .btn-warning:hover {
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.35);
    transform: translateY(-2px);
}

.warning-popup-actions .btn-light {
    background: #f1f5f9;
    color: #64748b;
}

.warning-popup-actions .btn-light:hover {
    background: #e2e8f0;
    color: #475569;
}

.warning-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.warning-popup-close:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: rotate(90deg);
    color: #1e293b;
}

/* Grace Period Popup - Pastel Kırmızı */
.grace-period-popup .grace-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.grace-period-popup .grace-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.grace-period-popup .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.grace-period-popup .btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
    transform: translateY(-2px);
}

/* Responsive - Warning Popup */
@media (max-width: 576px) {
    .warning-popup {
        max-width: 95%;
        border-radius: 16px;
    }

    .warning-popup-header {
        padding: 20px 16px;
    }

    .warning-popup-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 12px;
    }

    .warning-popup-title {
        font-size: 16px;
    }

    .warning-popup-message {
        padding: 20px 16px;
        font-size: 14px;
    }

    .warning-popup-actions {
        padding: 16px;
        flex-direction: column;
    }

    .warning-popup-actions .btn {
        width: 100%;
    }
}

/* Image Selector Styles */
.image-selector {
    display: flex;
    gap: 12px;
    align-items: center;
}

.image-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    transition: all 0.2s;
}

.image-preview:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.image-preview i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.image-preview span {
    font-size: 12px;
    color: #64748b;
}

.modal-content.modern {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-content.modern .modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    border-radius: 16px 16px 0 0 !important;
}

.modal-content.modern .modal-body {
    padding: 24px;
}
.modal-content.modern .modal-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

/* ============================================
   GLOBAL FANCYBOX DOSYA YÖNETİCİSİ STİLLERİ
   ============================================ */

/* Bootstrap modal z-index: 1055, backdrop: 1050 */
/* Fancybox MUTLAKA en üstte olmalı - Ultra yüksek z-index */

.fancybox__container {
    z-index: 2147483647 !important; /* Maximum z-index */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.fancybox__backdrop {
    z-index: 2147483646 !important; /* Maximum z-index - 1 */
    position: fixed !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
}

/* Özel Dosya Yöneticisi Sınıfı */
.filemanager-fancybox-custom .fancybox__container {
    z-index: 2147483647 !important;
}

.filemanager-fancybox-custom .fancybox__backdrop {
    z-index: 2147483646 !important;
    background: rgba(0, 0, 0, 0.85) !important;
}

.filemanager-fancybox-custom .fancybox__content {
    width: 90vw !important;
    max-width: 1400px !important;
    height: 85vh !important;
    max-height: 800px !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.filemanager-fancybox-custom .fancybox__iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 16px !important;
}

.filemanager-fancybox-custom .fancybox__slide {
    padding: 0 !important;
}

.filemanager-fancybox-custom .fancybox__carousel {

}

.filemanager-fancybox-custom .fancybox__toolbar {
    z-index: 2147483647 !important;
}

/* Kapatma Butonu */
.filemanager-fancybox-custom .fancybox__button--close {
    background: rgba(220, 38, 38, 0.9) !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    top: 15px !important;
    right: 15px !important;
    transition: all 0.2s ease !important;
    z-index: 2147483647 !important;
}

.filemanager-fancybox-custom .fancybox__button--close:hover {
    background: rgba(185, 28, 28, 1) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Bootstrap Modal Adjustments */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* Responsive Fancybox */
@media (max-width: 1200px) {
    .filemanager-fancybox-custom .fancybox__content {
        width: 95vw !important;
        height: 80vh !important;
    }
}

@media (max-width: 768px) {
    .filemanager-fancybox-custom .fancybox__content {
        width: 98vw !important;
        height: 90vh !important;
        max-height: none !important;
        border-radius: 12px !important;
    }

    .filemanager-fancybox-custom .fancybox__button--close {
        width: 36px !important;
        height: 36px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 576px) {
    .filemanager-fancybox-custom .fancybox__content {
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }
}

/* Image Preview Click Styles */
.image-preview.clickable:hover,
.image-preview-modern.clickable:hover,
.image-preview-with-close.clickable:hover {
    border-color: #667eea !important;
    background: #f0f4ff !important;
    transform: scale(1.02);
}

.image-preview.clickable,
.image-preview-modern.clickable,
.image-preview-with-close.clickable {
    transition: all 0.3s ease;
    user-select: none;
}

.image-preview.clickable:active,
.image-preview-modern.clickable:active,
.image-preview-with-close.clickable:active {
    transform: scale(0.98);
}

/* Görsel Seçici - Çarpı Butonu Stilleri */
.image-selector-with-close {
    position: relative;
    display: inline-block;
}

.image-preview-with-close {
    width: 120px;
    height: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.image-preview-with-close:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.image-preview-with-close img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.image-preview-with-close i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.image-preview-with-close span {
    font-size: 12px;
    color: #64748b;
}

.image-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    font-size: 12px;
    z-index: 10;
}

.image-close-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-close-btn i {
    font-size: 12px;
    margin: 0;
}

/* Kampanya Slider Styles */
.kampanyaSlider {
    width: 100%;
    height: auto;
}
.kampanyaSlider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.kampanyaSlider .swiper-button-next,
.kampanyaSlider .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.kampanyaSlider .swiper-button-next:hover,
.kampanyaSlider .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.6);
}
.kampanyaSlider .swiper-button-next:after,
.kampanyaSlider .swiper-button-prev:after {
    font-size: 20px;
}
.kampanyaSlider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
}
.kampanyaSlider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* Campaign Countdown Card Styles */
.campaign-countdown-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.countdown-header {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.countdown-header i {
    font-size: 28px;
    animation: pulse 2s infinite;
}

.countdown-header h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.countdown-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.countdown-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.countdown-end-date {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-end-date i {
    font-size: 16px;
}

.countdown-end-date span {
    font-size: 14px;
    font-weight: 600;
}

.countdown-expired {
    text-align: center;
    padding: 30px 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(239, 68, 68, 0.3);
    width: 100%;
    grid-column: 1 / -1;
}

.countdown-expired i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 10px;
    display: block;
}

.countdown-expired p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive Countdown */
@media (max-width: 768px) {
    .countdown-display {
        gap: 10px;
    }

    .countdown-value {
        font-size: 24px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .countdown-item {
        padding: 12px 8px;
    }

    .campaign-countdown-card {
        padding: 20px;
    }

    .countdown-header h4 {
        font-size: 18px;
    }

    .countdown-header i {
        font-size: 22px;
    }
}

/* ============================================
   ÜRÜN KILAVUZU MODAL STİLLERİ
   ============================================ */

/* Modal Body Overrides */
#productGuideModal .modal-body {
    background: #f8fafc;
}

/* Kılavuz Bölümleri */
.guide-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.guide-section:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

/* Bölüm Başlıkları */
.guide-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: -0.01em;
}

.guide-title i {
    font-size: 18px;
    flex-shrink: 0;
}

/* İçerik Alanı */
.guide-content {
    color: #334155;
    line-height: 1.75;
    font-size: 14.5px;
}

.guide-content p {
    margin-bottom: 14px;
    font-size: 14.5px;
    color: #334155;
}

.guide-content p:last-child {
    margin-bottom: 0;
}

.guide-content strong {
    color: #0f172a;
    font-weight: 650;
}

/* Liste Stilleri */
.guide-content ul {
    margin: 14px 0;
    padding-left: 24px;
    list-style-type: none;
}

.guide-content ul li {
    margin-bottom: 10px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    position: relative;
    padding-left: 8px;
}

.guide-content ul li:last-child {
    margin-bottom: 0;
}

.guide-content ul li::before {
    content: "•";
    position: absolute;
    left: -16px;
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

.guide-content ul li strong {
    color: #1e293b;
    font-weight: 600;
}

/* Uyarı Kutuları */
.guide-content .alert {
    border-radius: 10px;
    padding: 14px 18px;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    border-width: 1px;
    border-style: solid;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.guide-content .alert i {
    margin-right: 0;
    margin-top: 2px;
    font-size: 16px;
    flex-shrink: 0;
}

.guide-content .alert strong {
    font-weight: 700;
}

.guide-content .alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1e40af;
}

.guide-content .alert-info i {
    color: #3b82f6;
}

.guide-content .alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
    color: #92400e;
}

.guide-content .alert-warning i {
    color: #d97706;
}

/* Ayırıcı Çizgiler */
#productGuideModal hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 0;
}

/* Responsive Guide Modal */
@media (max-width: 768px) {
    .guide-section {
        padding: 20px;
        border-radius: 12px;
    }

    .guide-title {
        font-size: 15px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .guide-title i {
        font-size: 16px;
    }

    .guide-content,
    .guide-content p,
    .guide-content ul li {
        font-size: 13.5px;
    }

    .guide-content .alert {
        font-size: 13px;
        padding: 12px 16px;
    }

    .guide-content ul {
        padding-left: 20px;
    }
}

@media (max-width: 576px) {
    .guide-section {
        padding: 16px;
    }

    .guide-title {
        font-size: 14px;
    }

    .guide-content,
    .guide-content p,
    .guide-content ul li {
        font-size: 13px;
    }
}

/* ============================================
   FLOATING REPORT BUTTON STİLLERİ
   ============================================ */

.floating-report-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: floatBounce 3s ease-in-out infinite;
}

.floating-report-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.6);
    animation: none;
}

.floating-report-btn:active {
    transform: translateY(-3px) scale(1.05);
}

.floating-report-btn i {
    position: relative;
    z-index: 2;
    animation: bugWiggle 2s ease-in-out infinite;
}

/* Pulse efekti */
.report-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.4);
    animation: pulsate 2s ease-out infinite;
    z-index: 1;
}

/* Animasyonlar */
@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bugWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Report Modal Stilleri */
#reportModal .modal-body {
    background: #fafafa;
}

#reportModal .modal-body .alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    color: #1e40af;
    border-radius: 10px;
    padding: 12px 16px;
}

#reportModal .form-group label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    margin-bottom: 8px;
}

#reportModal select.modern-input option {
    padding: 10px;
    font-size: 14px;
}

#reportModal textarea.modern-input {
    resize: vertical;
    min-height: 100px;
}

#reportModal .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#reportModal .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-report-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .floating-report-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ============================================
   FANCYBOX GLOBAL STİLLERİ
   ============================================ */

.fancybox__container {
    z-index: 2147483647 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.fancybox__backdrop {
    z-index: 2147483646 !important;
    position: fixed !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
}

.filemanager-fancybox-custom .fancybox__container {
    z-index: 2147483647 !important;
}

.filemanager-fancybox-custom .fancybox__backdrop {
    z-index: 2147483646 !important;
    background: rgba(0, 0, 0, 0.85) !important;
}

.filemanager-fancybox-custom .fancybox__content {
    width: 90vw !important;
    max-width: 1400px !important;
    height: 85vh !important;
    max-height: 800px !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.filemanager-fancybox-custom .fancybox__iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 16px !important;
}

.filemanager-fancybox-custom .fancybox__slide {
    padding: 0 !important;
}

.filemanager-fancybox-custom .fancybox__carousel {
    z-index: 2147483647 !important;
}

.filemanager-fancybox-custom .fancybox__toolbar {
    z-index: 2147483647 !important;
}

.filemanager-fancybox-custom .fancybox__button--close {
    background: rgba(220, 38, 38, 0.9) !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    top: 15px !important;
    right: 15px !important;
    transition: all 0.2s ease !important;
    z-index: 2147483647 !important;
}

.filemanager-fancybox-custom .fancybox__button--close:hover {
    background: rgba(185, 28, 28, 1) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

.image-preview.clickable:hover,
.image-preview-modern.clickable:hover {
    border-color: #667eea !important;
    background: #f0f4ff !important;
    transform: scale(1.02);
}

.image-preview.clickable,
.image-preview-modern.clickable {
    transition: all 0.3s ease;
    user-select: none;
}

.image-preview.clickable:active,
.image-preview-modern.clickable:active {
    transform: scale(0.98);
}

/* Responsive Fancybox */
@media (max-width: 1200px) {
    .filemanager-fancybox-custom .fancybox__content {
        width: 95vw !important;
        height: 80vh !important;
    }
}

@media (max-width: 768px) {
    .filemanager-fancybox-custom .fancybox__content {
        width: 98vw !important;
        height: 90vh !important;
        max-height: none !important;
        border-radius: 12px !important;
    }

    .filemanager-fancybox-custom .fancybox__button--close {
        width: 36px !important;
        height: 36px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 576px) {
    .filemanager-fancybox-custom .fancybox__content {
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }
}

/* ============================================
   MODERN BİLDİRİM DROPDOWN TASARIMI
   ============================================ */

.notify-wrapper {
    position: relative;
    z-index: 9999 !important;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: pulseNotify 2s ease-in-out infinite;
    border: 2px solid #fff;
    z-index: 10000;
}

@keyframes pulseNotify {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6);
    }
}

.modern-notify-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000 !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.modern-notify-dropdown.show-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.notify-header-modern {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.notify-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notify-badge-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.notify-mark-all-btn {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notify-mark-all-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.notify-list-wrapper {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8fafc;
}

.notify-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.notify-list-wrapper::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.notify-list-wrapper::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

.notify-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.notify-item-modern {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.notify-item-modern:hover {
    background: linear-gradient(to right, #f0f9ff, #ffffff);
    transform: translateX(4px);
}

.notify-item-modern.notify-item-read {
    background: #f8fafc;
    opacity: 0.7;
}

.notify-item-modern.notify-item-read:hover {
    opacity: 0.85;
}

.notify-item-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: transparent;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.notify-item-indicator.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.notify-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.notify-item-modern:hover .notify-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.notify-icon-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notify-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notify-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.notify-icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notify-icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.notify-content-modern {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.notify-title-modern {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notify-meta-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.notify-meta-modern i {
    font-size: 10px;
    opacity: 0.7;
}

.notify-actions-modern {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.notify-item-modern:hover .notify-actions-modern {
    opacity: 1;
}

.notify-action-btn {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notify-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notify-action-btn.notify-mark-read:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notify-action-btn.notify-delete:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notify-empty-modern {
    padding: 60px 30px;
    text-align: center;
    background: white;
}

.notify-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #94a3b8;
}

.notify-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.notify-empty-subtitle {
    font-size: 13px;
    color: #94a3b8;
}

.notify-footer-modern {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.notify-footer-btn {
    flex: 1;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.notify-footer-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.notify-footer-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white !important;
}

.notify-footer-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.notify-footer-btn i {
    font-size: 13px;
}

.notify-loading {
    padding: 40px;
    text-align: center;
    color: #94a3b8;
}

.notify-loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

/* Responsive Bildirim */
@media (max-width: 768px) {
    .modern-notify-dropdown {
        width: 360px;
        right: -20px;
    }

    .notify-list-wrapper {
        max-height: 350px;
    }

    .notify-header-modern {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .modern-notify-dropdown {
        width: 320px;
        right: -40px;
    }

    .notify-item-modern {
        padding: 14px 16px;
    }

    .notify-icon-modern {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* Ajans Blur Popup Animasyonu */
@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}
