@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   ADMIN PANEL CSS - Modern Kurumsal Klinik
   ============================================ */

/* Reset ve Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #334155;
    background-color: #f1f5f9;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   RENK PALETİ
   ============================================ */
:root {
    --primary: #0e7490;
    --primary-dark: #0c647c;
    --primary-light: #e0f2fe;
    --secondary: #14b8a6;
    --secondary-light: #ccfbf1;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --success: #22c55e;
    --success-light: #f0fdf4;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --info: #0ea5e9;
    --info-light: #f0f9ff;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

/* ============================================
   UTILITY CLASSES (Tailwind Benzeri)
   ============================================ */

/* Space Y */
.space-y-1>*+* { margin-top: 0.25rem; }
.space-y-2>*+* { margin-top: 0.5rem; }
.space-y-3>*+* { margin-top: 0.75rem; }
.space-y-4>*+* { margin-top: 1rem; }
.space-y-6>*+* { margin-top: 1.5rem; }
.space-y-8>*+* { margin-top: 2rem; }

/* Space X */
.space-x-1>*+* { margin-left: 0.25rem; }
.space-x-2>*+* { margin-left: 0.5rem; }
.space-x-3>*+* { margin-left: 0.75rem; }
.space-x-4>*+* { margin-left: 1rem; }

/* Display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

/* Flex */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }

/* Height */
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }

/* Min/Max */
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-full { max-width: 100%; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-4 { padding-left: 1rem; }
.pr-4 { padding-right: 1rem; }

/* Margin */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* Z-index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.5rem; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-2xl { border-radius: 1.25rem; }
.rounded-full { border-radius: 9999px; }

/* Border */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }

/* Border Colors */
.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }
.border-gray-400 { border-color: var(--gray-400); }
.border-gray-700 { border-color: var(--gray-700); }
.border-red-400 { border-color: #f87171; }
.border-green-200 { border-color: #bbf7d0; }
.border-blue-100 { border-color: #dbeafe; }
.border-transparent { border-color: transparent; }

/* Background Colors */
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-300 { background-color: var(--gray-300); }
.bg-gray-400 { background-color: var(--gray-400); }
.bg-gray-500 { background-color: var(--gray-500); }
.bg-gray-600 { background-color: var(--gray-600); }
.bg-gray-700 { background-color: var(--gray-700); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-gray-900 { background-color: var(--gray-900); }
.bg-red-50 { background-color: var(--danger-light); }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-500 { background-color: var(--danger); }
.bg-red-600 { background-color: #dc2626; }
.bg-green-50 { background-color: var(--success-light); }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500 { background-color: var(--success); }
.bg-green-600 { background-color: #16a34a; }
.bg-blue-50 { background-color: var(--info-light); }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-500 { background-color: var(--info); }
.bg-blue-600 { background-color: #0284c7; }
.bg-yellow-50 { background-color: var(--warning-light); }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-purple-100 { background-color: #f3e8ff; }

/* Primary & Secondary Colors */
.bg-primary { background-color: var(--primary); }
.bg-primary\/5 { background-color: rgba(14, 116, 144, 0.05); }
.bg-primary\/10 { background-color: rgba(14, 116, 144, 0.1); }
.bg-primary\/90 { background-color: rgba(14, 116, 144, 0.9); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary\/10 { background-color: rgba(20, 184, 166, 0.1); }

/* Text Colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-red-300 { color: #fca5a5; }
.text-red-500 { color: var(--danger); }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-green-500 { color: var(--success); }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-blue-500 { color: var(--info); }
.text-blue-600 { color: #0284c7; }
.text-blue-700 { color: #0369a1; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-purple-600 { color: #9333ea; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* Font Size */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Font Weight */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text Align */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Text Decoration */
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }
.line-through { text-decoration: line-through; }

/* Leading */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Tracking */
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }

/* Select */
.select-none { user-select: none; }

/* Transition */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Transform */
.transform { transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.scale-105 { transform: scale(1.05); }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Aspect Ratio */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }

/* Responsive - MD */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:w-64 { width: 16rem; }
    .md\:ml-64 { margin-left: 16rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
}

/* Responsive - LG */
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================
   HOVER & FOCUS STATES
   ============================================ */
.hover\:bg-gray-50:hover { background-color: var(--gray-50); }
.hover\:bg-gray-100:hover { background-color: var(--gray-100); }
.hover\:bg-gray-200:hover { background-color: var(--gray-200); }
.hover\:bg-gray-700:hover { background-color: var(--gray-700); }
.hover\:bg-red-600:hover { background-color: #dc2626; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-green-600:hover { background-color: #16a34a; }
.hover\:bg-blue-600:hover { background-color: #0284c7; }
.hover\:bg-blue-700:hover { background-color: #0369a1; }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-primary\/90:hover { background-color: var(--primary-dark); }
.hover\:bg-secondary:hover { background-color: var(--secondary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-gray-700:hover { color: var(--gray-700); }
.hover\:text-gray-800:hover { color: var(--gray-800); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-secondary:hover { color: var(--secondary); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:underline:hover { text-decoration: underline; }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(14, 116, 144, 0.5); }
.focus\:ring-primary:focus { --tw-ring-color: var(--primary); }
.focus\:border-primary:focus { border-color: var(--primary); }

/* Şablonlarda kullanılan eksik utility sınıfları */
.inline { display: inline; }
.shrink-0 { flex-shrink: 0; }
.self-center { align-self: center; }
.gap-1\.5 { gap: 0.375rem; }

.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-9 { width: 2.25rem; }
.w-11 { width: 2.75rem; }
.w-14 { width: 3.5rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-14 { height: 3.5rem; }
.h-96 { height: 24rem; }
.max-w-xs { max-width: 20rem; }
.max-h-64 { max-height: 16rem; }
.max-h-full { max-height: 100%; }
.min-h-\[72px\] { min-height: 72px; }
.min-h-\[350px\] { min-height: 350px; }

.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-5 { margin-top: 1.25rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-5 { margin-left: 1.25rem; }
.mr-3 { margin-right: 0.75rem; }
.ms-2 { margin-inline-start: 0.5rem; }

.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.list-decimal { list-style-type: decimal; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.resize-none { resize: none; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

.rounded-r-lg { border-top-right-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }
.rounded-t-lg { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-red-200 { border-color: #fecaca; }
.border-red-500 { border-color: #ef4444; }
.border-green-500 { border-color: #22c55e; }
.border-amber-200 { border-color: #fde68a; }
.border-l-blue-500 { border-left-color: #0ea5e9; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-blue-50\/50 { background-color: rgba(240, 249, 255, 0.5); }
.text-amber-800 { color: #92400e; }
.text-green-300 { color: #86efac; }
.text-pink-600 { color: #db2777; }
.text-yellow-700 { color: #a16207; }
.text-danger { color: var(--danger); }

.divide-y.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    border-top: 1px solid var(--gray-100);
}

.hover\:bg-blue-50:hover { background-color: var(--info-light); }
.hover\:bg-red-50:hover { background-color: var(--danger-light); }
.hover\:bg-gray-300:hover { background-color: var(--gray-300); }
.hover\:border-blue-200:hover { border-color: #bfdbfe; }
.hover\:border-blue-400:hover { border-color: #60a5fa; }
.hover\:border-orange-200:hover { border-color: #fed7aa; }
.hover\:text-blue-600:hover { color: #0284c7; }
.hover\:text-blue-700:hover { color: #0369a1; }
.hover\:text-blue-800:hover { color: #075985; }
.hover\:text-red-700:hover { color: #b91c1c; }
.hover\:text-red-800:hover { color: #991b1b; }

.focus\:ring-0:focus { box-shadow: none; }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.12); }
.focus\:border-blue-500:focus { border-color: var(--primary); }
.focus\:ring-blue-700:focus { box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14); }
.focus\:border-blue-700:focus { border-color: #1d4ed8; }
.focus\:ring-gray-800:focus { box-shadow: 0 0 0 4px rgba(31, 41, 55, 0.14); }
.focus\:border-gray-800:focus { border-color: #1f2937; }
.focus\:ring-pink-500:focus { box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14); }
.focus\:border-pink-500:focus { border-color: #ec4899; }
.focus\:ring-orange-500:focus { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16); }
.focus\:ring-red-500:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14); }

/* Erişilebilir aç/kapa anahtarları */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

input.peer + div.peer {
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

input.peer + div.peer::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    background: #ffffff;
    border: 1px solid var(--gray-300);
    border-radius: 9999px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

input.peer + div.w-11.h-6::after { width: 1.25rem; height: 1.25rem; }
input.peer + div.w-9.h-5::after { width: 1rem; height: 1rem; }
input.peer:checked + div.peer::after { transform: translateX(100%); border-color: #ffffff; }
input.peer:checked + div[class*="peer-checked:bg-blue-600"] { background-color: #0284c7; }
input.peer:checked + div[class*="peer-checked:bg-orange-500"] { background-color: #f97316; }
input.peer:focus-visible + div.peer { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.25); }
input.peer:focus-visible + div[class*="ring-orange"] { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25); }

input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 9999px;
    background: var(--info-light);
    color: #0369a1;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

input[type="file"]::file-selector-button:hover { background: #dbeafe; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .xl\:col-span-2 { grid-column: span 2 / span 2; }
    .xl\:col-span-3 { grid-column: span 3 / span 3; }
}

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

.admin-sidebar {
    width: 260px;
    background-color: var(--dark);
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f1f5f9;
}

main {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    main {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    main {
        padding: 2.5rem;
    }
}

@media (max-width: 767px) {
    .admin-sidebar {
        display: none;
    }
    .admin-sidebar:not(.hidden) {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 50;
        width: 260px;
    }
    .admin-main {
        margin-left: 0;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.025em;
}

.sidebar-header p {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin: 0;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-section {
    color: var(--gray-500);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.25rem 0.75rem 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-300);
    padding: 0.625rem 0.75rem;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.35);
}

.nav-link.active svg {
    opacity: 1;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
}

.sidebar-footer .nav-link {
    color: #f87171;
}

.sidebar-footer .nav-link:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* ============================================
   NAVBAR
   ============================================ */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
}

header button {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

header button:hover {
    background-color: var(--gray-100);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
    border: none;
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
}

.card-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: #ffffff;
    border: 1px solid var(--gray-300);
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
}

input[type="file"] {
    padding: 0.625rem;
    font-size: 0.875rem;
}

input[type="checkbox"],
input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a5468 100%);
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #0d9488;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
    border-radius: 0.75rem;
}

.admin-main .overflow-x-auto > table {
    min-width: 720px;
}

.table-container > table {
    min-width: 640px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

th {
    background-color: var(--gray-50);
    color: var(--gray-600);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

td {
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--gray-50);
}

/* Sayfa başlığı ve işlem düğmeleri dar ekranda üst üste yerleşir. */
.admin-main main > .flex.justify-between.items-center.mb-6 {
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 639px) {
    .admin-main main > .flex.justify-between.items-center.mb-6 {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-main main > .flex.justify-between.items-center.mb-6 > a,
    .admin-main main > .flex.justify-between.items-center.mb-6 > button {
        align-self: flex-start;
    }
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
}

.alert-success {
    background-color: var(--success-light);
    color: #15803d;
}

.alert-error {
    background-color: var(--danger-light);
    color: #b91c1c;
}

.alert-warning {
    background-color: var(--warning-light);
    color: #b45309;
}

.alert-info {
    background-color: var(--info-light);
    color: #0369a1;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-success {
    background-color: var(--success-light);
    color: #15803d;
}

.badge-warning {
    background-color: var(--warning-light);
    color: #b45309;
}

.badge-danger {
    background-color: var(--danger-light);
    color: #b91c1c;
}

.badge-info {
    background-color: var(--info-light);
    color: #0369a1;
}

.badge-gray {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    margin-bottom: 1.75rem;
}

.page-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* ============================================
   SECTION CARDS (Settings vb.)
   ============================================ */
.section-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
}

.section-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-card-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
    transition: all 0.2s ease;
    border: none;
}

.stat-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
    transform: translateY(-2px);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: var(--primary);
}

.stat-icon.success {
    background: var(--success-light);
    color: #16a34a;
}

.stat-icon.info {
    background: var(--info-light);
    color: #0284c7;
}

.stat-icon.warning {
    background: var(--warning-light);
    color: #d97706;
}

/* Utility sınıflarıyla oluşturulmuş modül sayfalarını ortak görsel dile yaklaştır. */
.admin-main main > .flex.justify-between.items-center.mb-6 {
    margin-bottom: 1.5rem;
    padding: 0.25rem 0;
}

.admin-main main > .flex.justify-between.items-center.mb-6 h1 {
    color: var(--gray-900);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.admin-main main > .flex.justify-between.items-center.mb-6 p {
    margin-top: 0.35rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.admin-main main > .flex.justify-between.items-center.mb-6 a[class*="bg-blue-600"] {
    border-radius: 0.7rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 5px 14px rgba(14, 116, 144, 0.22);
    font-size: 0.875rem;
    font-weight: 700;
}

.admin-main main > div.bg-white.rounded-xl.shadow-sm.overflow-hidden,
.admin-main main > div.bg-white.rounded-xl.shadow-sm.border {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.admin-main main > div.bg-white.rounded-xl table th,
.admin-main main > div.bg-white.rounded-xl table td {
    vertical-align: middle;
}

.admin-main main > div.bg-white.rounded-xl table thead th {
    color: var(--gray-500);
    background: var(--gray-50);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-main main > div.bg-white.rounded-xl table tbody tr {
    transition: background-color 0.18s ease;
}

.admin-main main > div.bg-white.rounded-xl table tbody tr:hover {
    background: #f8fafc;
}

/* Tablo içindeki düzenle/sil ikonları */
.admin-main table td a.text-blue-600,
.admin-main table td button.text-blue-600,
.admin-main table td a.text-blue-700,
.admin-main table td button.text-blue-700,
.admin-main table td button.text-red-600,
.admin-main table td button.text-red-700 {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .04);
    font-size: 0;
    transition: color .18s, background-color .18s, border-color .18s, transform .18s, box-shadow .18s;
}

.admin-main table td a.text-blue-600,
.admin-main table td button.text-blue-600,
.admin-main table td a.text-blue-700,
.admin-main table td button.text-blue-700 {
    color: #0891b2 !important;
}

.admin-main table td button.text-red-600,
.admin-main table td button.text-red-700 {
    color: #f43f5e !important;
}

.admin-main table td a.text-blue-600:hover,
.admin-main table td button.text-blue-600:hover,
.admin-main table td a.text-blue-700:hover,
.admin-main table td button.text-blue-700:hover {
    border-color: #a5f3fc;
    background: #ecfeff;
    box-shadow: 0 5px 12px rgba(8, 145, 178, .14);
    transform: translateY(-1px);
}

.admin-main table td button.text-red-600:hover,
.admin-main table td button.text-red-700:hover {
    border-color: #fecdd3;
    background: #fff1f2;
    box-shadow: 0 5px 12px rgba(244, 63, 94, .12);
    transform: translateY(-1px);
}

.admin-main table td a.text-blue-600 svg,
.admin-main table td button.text-blue-600 svg,
.admin-main table td a.text-blue-700 svg,
.admin-main table td button.text-blue-700 svg,
.admin-main table td button.text-red-600 svg,
.admin-main table td button.text-red-700 svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 767px) {
    .admin-main main > .flex.justify-between.items-center.mb-6 {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
    }

    .admin-main main > .flex.justify-between.items-center.mb-6 a {
        width: 100%;
    }
}

/* Ekle/düzenle formları */
.admin-main main > form#post-form {
    max-width: 1180px;
    margin: 0 auto 2rem;
    padding: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

#post-form > .grid {
    align-items: start;
}

.post-slug-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
}

.post-slug-row > span {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    color: var(--gray-500);
    font-size: .8rem;
    line-height: 1.45;
}

.post-slug-row > input[name="slug"] {
    width: 100%;
    min-width: 0;
}

.service-icon-field {
    display: flex;
    align-items: stretch;
    gap: .65rem;
}

.service-icon-field input {
    min-width: 0;
}

.service-icon-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    flex: 0 0 auto;
    padding: 0 1rem;
    border: 1px solid #cde8f1;
    border-radius: .65rem;
    background: #f0fbfd;
    color: #087f9b;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.service-icon-help:hover {
    border-color: #0e9fbd;
    background: #e2f7fb;
    color: #05677d;
}

.service-icon-field + p code {
    padding: .12rem .35rem;
    border-radius: .35rem;
    background: #f1f5f9;
    color: #334155;
    font-size: .78rem;
}

@media (max-width: 560px) {
    .service-icon-field {
        flex-direction: column;
    }

    .service-icon-help {
        min-height: 42px;
    }
}

#post-form > .grid > div:first-child > div {
    padding: 18px;
    border: 1px solid var(--gray-200);
    border-radius: .85rem;
    background: #fff;
}

#post-form > .grid > div:first-child > div:last-child {
    padding: 0;
    border: 0;
    background: transparent;
}

#post-form > .grid > div:last-child {
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: .85rem;
    background: var(--gray-50);
}

#post-form #editor {
    min-height: 440px;
    border: 1px solid var(--gray-200);
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
}

#post-form .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid var(--gray-200);
    background: #f8fafc;
}

#post-form .ql-container.ql-snow {
    border: 0;
    font-family: inherit;
    font-size: .95rem;
}

#post-form .ql-editor {
    min-height: 370px;
    padding: 20px;
    line-height: 1.7;
}

#post-form button[type="submit"] {
    min-height: 46px;
    border: 0;
    border-radius: .7rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 16px rgba(14, 116, 144, .22);
    font-weight: 750;
}

#post-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(14, 116, 144, .3);
}

.admin-main main > .max-w-2xl {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.admin-main main > .max-w-2xl > .flex.justify-between.items-center.mb-6 {
    padding: 0 2px;
}

.admin-main main > .max-w-2xl > .flex.justify-between.items-center.mb-6 h1 {
    color: var(--gray-900);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.admin-main main > .max-w-2xl > .bg-white {
    padding: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.admin-main main > .max-w-2xl > .bg-white form > div {
    padding-bottom: 4px;
}

.admin-main main > .max-w-2xl > .bg-white form button[type="submit"] {
    min-height: 46px;
    border: 0;
    border-radius: .7rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 16px rgba(14, 116, 144, .22);
}

@media (max-width: 767px) {
    .admin-main main > form#post-form,
    .admin-main main > .max-w-2xl > .bg-white {
        padding: 18px;
    }

    #post-form > .grid > div:last-child {
        padding: 16px;
    }

    #post-form #editor {
        min-height: 360px;
    }
}

.stat-icon.danger {
    background: var(--danger-light);
    color: #dc2626;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

/* ============================================
   IMAGE PREVIEW
   ============================================ */
.image-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--gray-300);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-50);
    overflow: hidden;
    transition: all 0.2s ease;
}

.image-preview:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

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

/* ============================================
   QUILL EDITOR
   ============================================ */
.ql-container {
    min-height: 300px;
    font-size: 1rem;
    border-bottom-left-radius: 0.625rem;
    border-bottom-right-radius: 0.625rem;
    border-color: var(--gray-300);
}

.ql-editor {
    min-height: 300px;
    color: var(--gray-800);
}

.ql-toolbar.ql-snow {
    background: var(--gray-50);
    border-top-left-radius: 0.625rem;
    border-top-right-radius: 0.625rem;
    border-color: var(--gray-300);
    padding: 0.75rem;
}

.ql-container.ql-snow {
    border-bottom-left-radius: 0.625rem;
    border-bottom-right-radius: 0.625rem;
    border-color: var(--gray-300);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   MODAL
   ============================================ */
.admin-category-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.admin-category-modal.hidden {
    display: none;
}

.admin-category-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 32rem;
    padding: 1.75rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.admin-category-modal__title {
    padding-right: 2.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
}

.admin-category-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: var(--gray-400);
    background: var(--gray-100);
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-category-modal__close:hover {
    color: var(--gray-700);
    background: var(--gray-200);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1rem;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--primary);
    padding: 2.5rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-header p {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
}

.demo-login-info {
    margin: -0.25rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
    color: var(--gray-700);
}

.demo-login-info__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.demo-login-info__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.13);
}

.demo-login-info__credentials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

.demo-login-info__credentials span {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(14, 116, 144, 0.13);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--gray-500);
    font-size: 0.75rem;
}

.demo-login-info__credentials strong {
    color: var(--gray-900);
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
}

.demo-login-info p {
    margin: 0.75rem 0 0;
    color: var(--gray-500);
    font-size: 0.75rem;
    line-height: 1.45;
}

.demo-mode-banner {
    position: relative;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #fde68a;
    background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
    color: #92400e;
    box-shadow: 0 1px 2px rgba(146, 64, 14, 0.04);
}

.demo-mode-banner__icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 0.625rem;
    background: #fef3c7;
    color: #d97706;
}

.demo-mode-banner__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.demo-mode-banner__content {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    min-width: 0;
    font-size: 0.8125rem;
}

.demo-mode-banner__content strong {
    flex: 0 0 auto;
    color: #78350f;
    font-size: 0.875rem;
}

.demo-mode-banner__content span {
    color: #a16207;
}

@media (max-width: 767px) {
    .demo-mode-banner {
        align-items: flex-start;
        padding: 0.75rem 1rem;
    }

    .demo-mode-banner__content {
        display: block;
    }

    .demo-mode-banner__content strong,
    .demo-mode-banner__content span {
        display: block;
    }

}

@media (max-width: 380px) {
    .demo-login-info__credentials {
        grid-template-columns: 1fr;
    }
}

.login-form .input-group {
    margin-bottom: 1.25rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
}

.login-form .form-control {
    width: 100%;
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 0.625rem;
    transition: all 0.2s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
    outline: none;
}

.login-alert {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    color: #b91c1c;
    background: var(--danger-light);
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.login-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.login-form .checkbox-group > label,
.login-form label.checkbox-group {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.login-form label.checkbox-group {
    display: flex;
}

.btn-login {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a5468 100%);
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.35);
    transform: translateY(-1px);
}

.two-factor-actions .btn-login {
    margin-top: 0;
}

.login-copyright {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ============================================
   UTILITY OVERRIDES
   ============================================ */
.bg-blue-100,
.bg-green-100,
.bg-yellow-100,
.bg-purple-100,
.bg-red-100 {
    border-radius: 0.75rem;
}

.bg-blue-100 { background: var(--info-light); color: #0284c7; }
.bg-green-100 { background: var(--success-light); color: #16a34a; }
.bg-yellow-100 { background: var(--warning-light); color: #d97706; }
.bg-red-100 { background: var(--danger-light); color: #dc2626; }
.bg-purple-100 { background: #f3e8ff; color: #9333ea; }

.bg-blue-600,
.bg-blue-500,
.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: none !important;
}

.bg-blue-600:hover,
.bg-blue-500:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a5468 100%) !important;
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.35) !important;
}

.text-blue-600,
.text-blue-500 {
    color: var(--primary) !important;
}

.text-blue-600:hover {
    color: var(--primary-dark) !important;
}

.bg-white.rounded-xl,
.bg-white.rounded-lg,
main > form.bg-white,
.grid > div.bg-white {
    border: none !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04) !important;
}

/* Remove ugly border lines from sections */
.border-t.border-gray-100,
.border-b.border-gray-100 {
    border-color: var(--gray-100) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .card-footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Profil / Google Authenticator 2FA */
.profile-security-card {
    border: 1px solid #e2ebef;
    box-shadow: 0 12px 28px rgba(18, 73, 91, .07);
}

.profile-security-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
}

.profile-security-badge--on {
    background: #dcfce7;
    color: #15803d;
}

.profile-security-status {
    padding: .85rem 1rem;
    border: 1px solid #d9edf1;
    border-radius: .75rem;
    background: #f3fbfc;
    color: #356273;
    font-size: .9rem;
    line-height: 1.55;
}

.profile-2fa-start,
.profile-2fa-form,
.profile-2fa-confirm-form {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    align-items: end;
}

.profile-2fa-start input,
.profile-2fa-form > div,
.profile-2fa-confirm-form input {
    flex: 1 1 220px;
}

.profile-2fa-primary,
.profile-2fa-danger {
    min-height: 42px;
    padding: .7rem 1rem;
    border: 0;
    border-radius: .65rem;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.profile-2fa-primary {
    background: linear-gradient(135deg, #0e9fbd, #087f9b);
    box-shadow: 0 7px 16px rgba(14, 159, 189, .22);
}

.profile-2fa-danger {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.profile-2fa-primary:hover,
.profile-2fa-danger:hover {
    transform: translateY(-1px);
}

.profile-2fa-setup {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.25rem;
    border: 1px solid #e2ebef;
    border-radius: 1rem;
    background: #fbfeff;
}

.profile-2fa-qr-wrap {
    width: 210px;
    height: 210px;
    display: grid;
    place-items: center;
    border: 1px solid #e2ebef;
    border-radius: .8rem;
    background: #fff;
}

.profile-2fa-qr-wrap img {
    display: block;
    width: 190px;
    height: 190px;
}

.profile-2fa-qr-error {
    display: block;
    width: 170px;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.5;
    text-align: center;
}

.profile-2fa-setup-copy h3 {
    margin: 0 0 .35rem;
    color: #163f4d;
    font-size: 1rem;
}

.profile-2fa-setup-copy p {
    margin: 0 0 .85rem;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.55;
}

.profile-2fa-secret {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 1.15rem;
    padding: .65rem .8rem;
    border: 1px dashed #9ed5df;
    border-radius: .55rem;
    background: #effbfc;
    color: #087f9b;
    font-size: .92rem;
    letter-spacing: .08rem;
    overflow-wrap: anywhere;
}

.profile-2fa-confirm-form {
    align-items: stretch;
}

.profile-2fa-confirm-form input {
    min-width: 0;
}

@media (max-width: 640px) {
    .profile-security-card {
        padding: 1.25rem;
    }

    .profile-2fa-setup {
        grid-template-columns: 1fr;
    }

    .profile-2fa-qr-wrap {
        margin: 0 auto;
    }

    .profile-2fa-primary,
    .profile-2fa-danger,
    .profile-2fa-start input,
    .profile-2fa-form > div,
    .profile-2fa-confirm-form input {
        width: 100%;
        flex-basis: 100%;
    }
}

/* ============================================
   USER PERMISSION MATRIX
   ============================================ */
.users-management-layout {
    grid-template-columns: minmax(0, 1fr) !important;
}

.users-management-layout > * {
    min-width: 0;
}

.users-basic-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 767px) {
    .users-basic-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.permissions-panel {
    overflow: hidden;
    border: 1px solid #d7e5ea;
    border-radius: 1rem;
    background: #f8fbfc;
    box-shadow: 0 10px 30px rgba(15, 73, 92, 0.05);
}

.permissions-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e1ebef;
    background: linear-gradient(135deg, #ffffff 0%, #f1fafb 100%);
}

.permissions-panel__heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: .75rem;
}

.permissions-panel__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    color: #087f9b;
    border: 1px solid #c9edf1;
    border-radius: .75rem;
    background: #eaf9fb;
}

.permissions-panel__icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.permissions-panel__heading h3 {
    margin: 0;
    color: #163f4d;
    font-size: .95rem;
    font-weight: 750;
}

.permissions-panel__heading p {
    margin: .2rem 0 0;
    color: #71858e;
    font-size: .75rem;
    line-height: 1.4;
}

.permissions-panel__tools {
    flex: 0 0 auto;
    display: flex;
    gap: .4rem;
}

.permissions-tool {
    padding: .48rem .68rem;
    color: #087f9b;
    border: 1px solid #bfe4e9;
    border-radius: .55rem;
    background: #fff;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.permissions-tool:hover:not(:disabled) {
    color: #06657a;
    border-color: #7dcbd5;
    background: #eaf9fb;
    transform: translateY(-1px);
}

.permissions-tool--muted {
    color: #64748b;
    border-color: #dce5e9;
}

.permissions-panel__body {
    max-height: 31rem;
    padding: .9rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b7d5dc transparent;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .7rem;
}

.permission-module {
    min-width: 0;
    padding: .85rem;
    border: 1px solid #e0e9ed;
    border-radius: .8rem;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 73, 92, 0.035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.permission-module:hover {
    border-color: #bcdde3;
    box-shadow: 0 7px 18px rgba(15, 73, 92, 0.07);
    transform: translateY(-1px);
}

.permission-module__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .7rem;
}

.permission-module__title {
    color: #254c5a;
    font-size: .82rem;
    font-weight: 750;
}

.permission-module__count {
    flex: 0 0 auto;
    padding: .2rem .42rem;
    color: #78909a;
    border-radius: 999px;
    background: #f1f6f8;
    font-size: .62rem;
    font-weight: 600;
}

.permission-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
}

.permission-option {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.permission-option__input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.permission-option__surface {
    display: flex;
    align-items: center;
    min-height: 2.15rem;
    padding: .45rem .55rem;
    gap: .45rem;
    color: #5f737c;
    border: 1px solid #e2eaed;
    border-radius: .6rem;
    background: #fbfdfe;
    font-size: .72rem;
    font-weight: 650;
    transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.permission-option__check {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    color: transparent;
    border: 1.5px solid #b8c8ce;
    border-radius: .32rem;
    background: #fff;
    transition: all .16s ease;
}

.permission-option__check svg {
    width: .72rem;
    height: .72rem;
}

.permission-option:hover .permission-option__surface {
    color: #245b6a;
    border-color: #b9dce2;
    background: #f4fbfc;
}

.permission-option__input:focus-visible + .permission-option__surface {
    outline: 3px solid rgba(14, 116, 144, .16);
    outline-offset: 1px;
}

.permission-option__input:checked + .permission-option__surface {
    color: #086a80;
    border-color: #8fd5de;
    background: #eaf9fb;
    box-shadow: inset 0 0 0 1px rgba(8, 127, 155, .05);
}

.permission-option__input:checked + .permission-option__surface .permission-option__check {
    color: #fff;
    border-color: #0e8ba5;
    background: #0e8ba5;
    box-shadow: 0 2px 6px rgba(14, 139, 165, .22);
}

.permission-option[data-action="delete"] .permission-option__input:checked + .permission-option__surface {
    color: #b4233b;
    border-color: #f2b8c2;
    background: #fff1f3;
}

.permission-option[data-action="delete"] .permission-option__input:checked + .permission-option__surface .permission-option__check {
    border-color: #d63b55;
    background: #d63b55;
    box-shadow: 0 2px 6px rgba(214, 59, 85, .2);
}

.permissions-panel__notice {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .75rem 1rem;
    color: #627983;
    border-top: 1px solid #e1ebef;
    background: #f3f8fa;
    font-size: .72rem;
    line-height: 1.45;
}

.permissions-panel__notice svg {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: .05rem;
    color: #0e8ba5;
}

.permissions-panel.is-disabled .permissions-panel__body {
    opacity: .45;
    filter: grayscale(.3);
}

.permissions-panel.is-disabled .permissions-panel__notice {
    color: #8a6414;
    background: #fff9e8;
}

.permissions-panel.is-disabled .permissions-panel__notice svg {
    color: #b98517;
}

.permissions-panel.is-disabled .permissions-tool {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .permissions-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .permissions-panel__tools {
        width: 100%;
    }

    .permissions-tool {
        flex: 1 1 0;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }
}
