/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    background: #f1f5f9;
    height: 100%;
}

h1, h2, h3, h4, h5, h6,
.card-header, .page-header-card h1, .stat-label {
    font-family: 'Nunito', 'Inter', -apple-system, sans-serif;
}

a { color: #F93E97; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LOGIN ===== */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2a0a1a 0%, #4a0e2e 50%, #F93E97 100%);
}

.login-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.login-subtitle {
    color: #6c757d;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
    background: #fff;
}

.form-control:focus {
    border-color: #F93E97;
    box-shadow: 0 0 0 3px rgba(249, 62, 151, 0.08);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: #F93E97;
    color: #fff;
}

.btn-primary:hover { background: #D4307D; }

.btn-success {
    background: #2ec4b6;
    color: #fff;
}

.btn-success:hover { background: #26a69a; }

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover { background: #dc2626; }

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover { background: #5a6268; }

.btn-warning {
    background: #ffd166;
    color: #1a1a2e;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ===== ADMIN LAYOUT ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #2a0a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.sidebar-role {
    font-size: 11px;
    color: #FFFDB6;
    background: rgba(249,62,151,0.15);
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== SIDEBAR NAV ===== */
.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.sidebar-nav .nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    text-decoration: none;
}

.sidebar-nav .nav-item.active {
    color: #fff;
    background: rgba(249,62,151,0.15);
    border-left-color: #F93E97;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon .rzi,
.nav-icon .notranslate {
    font-size: 20px;
    color: inherit;
}

/* ===== SIDEBAR FOOTER ===== */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.btn-lang {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.btn-lang:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.btn-logout {
    background: rgba(239,71,111,0.15);
    color: #ef476f;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #ef476f;
    color: #fff;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
}

.content-body {
    padding: 32px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card .stat-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-card .stat-sub {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* ===== DASHBOARD ENHANCED ===== */
.stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change span {
    font-weight: 400;
    color: #6c757d;
}

.change-up { color: #10b981; }
.change-down { color: #ef476f; }

.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
}

.chart-card { margin-bottom: 0; }

.chart-body {
    position: relative;
    height: 320px;
    padding: 16px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-actions .btn {
    padding: 14px 16px;
    font-size: 13px;
    justify-content: flex-start;
}

.dashboard-error {
    padding: 16px 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #b91c1c;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.coupon-usage {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.coupon-usage-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    min-width: 40px;
}

.coupon-usage-fill {
    height: 100%;
    background: #F93E97;
    border-radius: 3px;
    transition: width 0.3s;
}

.dashboard-date {
    font-size: 13px;
    color: #6c757d;
}

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .dashboard-charts { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
}

/* ===== CARD / PANEL ===== */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 28px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    font-size: 17px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 28px;
}

/* ===== TABLE ===== */
.table-wrapper {
    overflow-x: auto;
}

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

table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
    background: #f8fafc;
    white-space: nowrap;
}

table th:first-child { border-radius: 12px 0 0 0; }
table th:last-child { border-radius: 0 12px 0 0; }

table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    vertical-align: middle;
}

table tr:hover td {
    background: #f8fafc;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #e5e7eb; color: #374151; }

/* ===== FORM ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 4px;
}

select.form-control {
    appearance: auto;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination .btn {
    min-width: 36px;
}

.pagination .page-info {
    font-size: 13px;
    color: #6c757d;
    margin: 0 8px;
}

/* ===== LOADING ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #6c757d;
    font-size: 14px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #495057;
}

/* ===== TOOLBAR ===== */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.toolbar .form-control {
    max-width: 300px;
}

.toolbar select.form-control {
    max-width: 200px;
}

/* ===== ORDER DETAIL ===== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
}

.detail-item {
    margin-bottom: 12px;
}

.detail-item .detail-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-item .detail-value {
    font-size: 15px;
    font-weight: 500;
}

/* ===== TREE (Categories) ===== */
.category-tree {
    list-style: none;
    padding: 0;
}

.category-tree .tree-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.category-tree .tree-item:hover {
    background: #f8f9fa;
}

.category-tree .tree-children {
    list-style: none;
    padding-left: 32px;
}

.tree-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.tree-item-actions {
    display: flex;
    gap: 8px;
}

/* ===== BLAZOR OVERRIDES ===== */
#blazor-error-ui {
    background: #b32121;
    color: #fff;
    padding: 12px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    font-size: 13px;
}

#blazor-error-ui .reload {
    color: #ffd166;
    margin-left: 8px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; font-size: 12px; margin-top: 4px; }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "Bir hata olustu.";
}

/* ===== FORM GRIDS ===== */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

/* ===== TABS ===== */
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    background: none;
    cursor: pointer;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn:hover { color: #1a1a2e; }

.tab-btn.active {
    color: #F93E97;
    border-bottom-color: #F93E97;
}

/* ===== UPLOAD ZONE ===== */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover {
    border-color: #F93E97;
    background: #FEF0F7;
}

.upload-zone p {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ===== IMAGE PREVIEW ===== */
.image-preview {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.image-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.image-preview .btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.9;
}

.image-preview:hover .btn-remove {
    opacity: 1;
}

/* ===== SEO SECTION ===== */
.seo-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
}

.seo-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #6c757d;
    margin: 0 0 16px 0;
}

/* ===== TAG LIST ===== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== BUTTON GROUP ===== */
.btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-group > * { flex-shrink: 0; }

/* ===== TOAST (fixed position alerts) ===== */
.toast-message {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== FILTER PILLS ===== */
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== DETAIL CARD (Review/Order detail) ===== */
.detail-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 28px;
}

/* ===== QUILL EDITOR ENHANCEMENTS ===== */
.quill-editor-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quill-editor-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.quill-editor-wrapper .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 10px 12px;
}

.quill-editor-wrapper .ql-container.ql-snow {
    border: none;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quill-editor-wrapper .ql-editor {
    padding: 20px 24px;
    line-height: 1.7;
    color: #1a1a2e;
}

.quill-editor-wrapper .ql-editor.ql-blank::before {
    color: #94a3b8;
    font-style: normal;
    left: 24px;
}

.quill-editor-wrapper .ql-editor h2 { font-size: 1.5em; font-weight: 700; margin: 1.2em 0 0.6em; color: #1a1a2e; }
.quill-editor-wrapper .ql-editor h3 { font-size: 1.25em; font-weight: 700; margin: 1em 0 0.5em; color: #1a1a2e; }
.quill-editor-wrapper .ql-editor h4 { font-size: 1.1em; font-weight: 600; margin: 0.8em 0 0.4em; color: #374151; }
.quill-editor-wrapper .ql-editor p { margin-bottom: 0.8em; }
.quill-editor-wrapper .ql-editor blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 16px;
    color: #4b5563;
    background: #f0f9ff;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 1em 0;
}
.quill-editor-wrapper .ql-editor img {
    border-radius: 8px;
    max-width: 100%;
}

/* Kelime sayaci */
.quill-wordcount {
    padding: 8px 16px;
    font-size: 12px;
    color: #94a3b8;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* Editor label */
.editor-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.editor-label label {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
}

.editor-label .editor-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-badge-required {
    background: #FEF0F7;
    color: #F93E97;
}

.editor-badge-optional {
    background: #f0fdf4;
    color: #16a34a;
}

/* Blog form section dividers */
.form-section {
    margin-bottom: 28px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title .section-icon {
    font-size: 18px;
}

/* ==================================================================
   RADZEN THEME OVERRIDES — brand uyumlu renkler
   ================================================================== */
:root {
    --rz-primary: #F93E97;
    --rz-primary-light: #FB6DB3;
    --rz-primary-lighter: #FEF0F7;
    --rz-primary-dark: #D4307D;
    --rz-primary-darker: #8F1F52;
    --rz-on-primary: #ffffff;
    --rz-secondary: #2a0a1a;
    --rz-secondary-light: #4a0e2e;
    --rz-success: #10b981;
    --rz-success-light: #d1fae5;
    --rz-warning: #ffd166;
    --rz-warning-light: #fef3c7;
    --rz-danger: #ef4444;
    --rz-danger-light: #fee2e2;
    --rz-info: #3b82f6;
    --rz-info-light: #dbeafe;
    --rz-border-radius: 10px;
    --rz-panel-border-radius: 16px;
    --rz-card-border-radius: 16px;
    --rz-button-border-radius: 10px;
    --rz-text-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rz-base-background-color: #f1f5f9;
    --rz-panel-background-color: #ffffff;
}

/* Radzen DataGrid fine-tuning — mevcut table look&feel ile uyum */
.rz-data-grid {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    background: #fff;
    overflow: hidden;
}

.rz-grid-table thead th,
.rz-data-grid .rz-grid-table thead > tr > th {
    background: #f8fafc;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
}

.rz-data-grid .rz-grid-table tbody > tr > td {
    font-size: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.rz-data-grid .rz-grid-table tbody > tr:hover > td {
    background: #f8fafc;
}

.rz-paginator {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

/* Radzen Button tweaks */
.rz-button {
    border-radius: 10px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--rz-text-font-family);
}

.rz-button.rz-button-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 8px;
}

/* Radzen Badge tweaks */
.rz-badge {
    border-radius: 8px;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    letter-spacing: 0.3px;
}

/* Radzen Card */
.rz-card {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

/* ==================================================================
   DASHBOARD — GRADIENT STAT CARDS
   ================================================================== */
.stat-card-gradient {
    position: relative;
    border-radius: 20px;
    padding: 24px 28px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
}

.stat-card-gradient::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    pointer-events: none;
}

.stat-card-gradient .stat-icon-circle {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    z-index: 1;
}

.stat-card-gradient .stat-icon-circle .rzi,
.stat-card-gradient .stat-icon-circle .notranslate {
    font-size: 24px;
    color: #fff;
}

.stat-card-gradient .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    z-index: 1;
    position: relative;
}

.stat-card-gradient .stat-value {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    z-index: 1;
    position: relative;
}

.stat-card-gradient .stat-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
    z-index: 1;
    position: relative;
}

.stat-card-gradient .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.22);
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
    z-index: 1;
    position: relative;
    align-self: flex-start;
}

/* Gradient renk varyantları */
.gradient-red     { background: linear-gradient(135deg, #F93E97 0%, #D4307D 100%); }
.gradient-purple  { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); }
.gradient-pink    { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.gradient-orange  { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.gradient-teal    { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.gradient-blue    { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.gradient-green   { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.gradient-amber   { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.gradient-slate   { background: linear-gradient(135deg, #475569 0%, #1e293b 100%); }

/* ==================================================================
   PAGE HEADER (Shared)
   ================================================================== */
.page-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff 0%, #FEF5F9 100%);
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    gap: 16px;
    flex-wrap: wrap;
}

.page-header-card .page-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.page-header-card .page-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F93E97 0%, #D4307D 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(249, 62, 151, 0.3);
}

.page-header-card .page-header-icon .rzi,
.page-header-card .page-header-icon .notranslate {
    font-size: 26px;
}

.page-header-card h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0;
}

.page-header-card .page-header-subtitle {
    color: #6c757d;
    font-size: 13px;
    margin-top: 2px;
}

.page-header-card .page-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ==================================================================
   PRODUCT CARD GRID
   ================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.product-card .product-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #fef9f9 0%, #f1f5f9 100%);
    overflow: hidden;
}

.product-card .product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.05);
}

.product-card .product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.product-card .product-image-placeholder .rzi,
.product-card .product-image-placeholder .notranslate {
    font-size: 64px;
}

.product-card .product-badges-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.product-card .product-badges-top > * {
    pointer-events: auto;
}

.product-card .product-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.product-card .product-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-card .product-category {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card .product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 800;
    color: #F93E97;
}

.product-card .product-price-old {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-card .product-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.product-card .product-actions .rz-button {
    flex: 1;
    min-width: 0;
}

/* Radzen SelectBar (view toggle) */
.view-mode-bar .rz-selectbutton {
    border-radius: 10px;
    overflow: hidden;
}

/* Radzen Progress in table cells */
.rz-progressbar-sm {
    height: 6px !important;
}

/* Thumbnail column in DataGrid */
.dg-thumbnail {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.dg-thumbnail-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

/* Radzen Notification stack positioning */
.rz-notification {
    border-radius: 12px !important;
}

/* Radzen Dialog tweaks */
.rz-dialog {
    border-radius: 16px !important;
    overflow: hidden;
}

/* Responsive grid tweaks */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
    .page-header-card {
        padding: 16px 20px;
    }
    .page-header-card h1 { font-size: 18px; }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-card .product-image-wrap { height: 150px; }
    .product-card .product-name { font-size: 13px; min-height: 36px; }
    .product-card .product-price { font-size: 16px; }
}
