* {
    font-family: 'Geist', sans-serif !important;
}

:root {
    --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
    font-family: var(--font-sans);
    --background: 240 11% 97%;
    /* #F7F7F8 off-white */
    --foreground: 0 0% 9%;
    /* #171717 */
    --card: 0 0% 100%;
    /* #FFFFFF */
    --card-foreground: 0 0% 9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 9%;
    --primary: 0 0% 9%;
    /* #171717 primary */
    --primary-foreground: 0 0% 100%;
    --secondary: 240 5% 96%;
    /* #F3F4F6 zinc-100 */
    --secondary-foreground: 0 0% 9%;
    --muted: 240 5% 96%;
    --muted-foreground: 240 4% 53%;
    /* #71717A zinc-500 */
    --accent: 240 5% 96%;
    --accent-foreground: 0 0% 9%;
    --border: 240 6% 90%;
    /* #E5E7EB zinc-200 */
    --input: 240 5% 96%;
    --ring: 0 0% 9%;
    --radius: 0.75rem;
    /* Md: 12px */

    /* Motion System */
    --transition-fast: 150ms cubic-bezier(.2, .8, .2, 1);
    --transition-base: 250ms cubic-bezier(.2, .8, .2, 1);
    --transition-slow: 400ms cubic-bezier(.2, .8, .2, 1);
}



.dark {
    --background: 0 0% 4%;
    /* #0A0A0A pure black/dark gray base */
    --foreground: 0 0% 98%;
    --card: 0 0% 9%;
    /* #171717 card surface */
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 9%;
    /* #171717 popover */
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    /* White contrast primary actions */
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    /* #262626 secondary */
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    /* #262626 border */
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.9%;
}

/* Prevent elastic scroll on iOS */
html,
body {
    overflow: hidden;
    height: 100%;
    font-size: 0.9rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Desktop Mockup Framework */
.desktop-bg {
    background: radial-gradient(circle at 50% 50%, #f4f4f5 0%, #e4e4e7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: background 0.2s ease;
}

.dark .desktop-bg {
    background: radial-gradient(circle at 50% 50%, #18181b 0%, #09090b 100%);
}

.phone-frame {
    position: relative;
    width: 410px;
    height: 840px;
    background: hsl(var(--background));
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1),
        inset 0 0 2px 1px rgba(0, 0, 0, 0.05),
        0 0 0 4px #e4e4e7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark .phone-frame {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 2px 1px rgba(255, 255, 255, 0.05),
        0 0 0 4px #27272a;
}

/* Real Notch look */
.notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: hsl(var(--background));
    border-radius: 0 0 20px 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid hsl(var(--border));
    border-left: 1px solid hsl(var(--border));
    border-right: 1px solid hsl(var(--border));
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.notch-camera {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
}

.notch-camera-inner {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: hsl(var(--border));
}

.notch-speaker {
    width: 50px;
    height: 4px;
    border-radius: 2px;
    background: hsl(var(--border));
}

.screen-content {
    flex: 1;
    background: hsl(var(--background));
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease;
}

/* Responsive Breakpoint to make phone go fullscreen on mobile/tablet */
@media (max-width: 1023px) {
    .desktop-bg {
        background: none !important;
        padding: 0 !important;
        min-height: 100% !important;
    }

    .phone-frame {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .notch {
        display: none !important;
    }

    .screen-content {
        border-radius: 0 !important;
    }
}

/* Shadcn Cards */
.glass-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    transition: all 0.2s ease-in-out;
}

.glass-card:active {
    transform: scale(0.98);
    border-color: hsl(var(--border));
    opacity: 0.9;
}

/* Custom Scrollbar for inner app */
.app-scroll::-webkit-scrollbar {
    width: 4px;
}

.app-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.app-scroll::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.2);
    border-radius: 2px;
}

/* Global scrollbar rules for mobile */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.2);
    border-radius: 2px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.2) transparent;
}

/* Bottom Sheet Styling */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    border-radius: 16px 16px 0 0;
    /* 24px as per design system image */
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.08);
}

.dark .bottom-sheet {
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.6);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 40;
}

.dark .bottom-sheet-backdrop {
    background: rgba(255, 255, 255, 0.4);
}

.bottom-sheet-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Custom Input matching basecoat UI defaults */
.mobile-input {
    background-color: hsl(var(--background)) !important;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: 8px !important;
    /* 12px rounded as per design system image */
    color: hsl(var(--foreground)) !important;
    padding: 0.5rem 1rem !important;
    /* Spacious padding */
    line-height: 1.4 !important;
    width: 100%;
    transition: all var(--transition-base);
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
}

.mobile-input.pl-icon {
    padding-left: 2.75rem !important;
}

.mobile-input:focus {
    border-color: hsl(var(--ring)) !important;
    box-shadow: 0 0 0 3px hsla(var(--ring) / 0.15) !important;
}

/* Status Badges */
.badge-aktif {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    /* Sm: 8px as per design system image */
}

.badge-pasif {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    /* Sm: 8px */
}

.badge-kadro {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    /* Sm: 8px */
}

/* Toast Popup */
.mobile-toast {
    position: absolute;
    top: 24px;
    left: 16px;
    right: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #09090b;
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

#toast-message {
    font-weight: 600 !important;
}

.dark .mobile-toast {
    background: #f4f4f5;
    color: #09090b;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.mobile-toast.open {
    transform: translateY(0);
}

/* Swipe Actions Layout Styles */
.swipe-container {
    position: relative;
    overflow: hidden;
}

.swipe-front {
    position: relative;
    z-index: 20;
    user-select: none;
    touch-action: pan-y;
    /* Flawless vertical scrolling, clean horizontal swipe */
}

/* Background Actions Classes */
.swipe-left-actions,
.swipe-right-actions {
    position: absolute;
    inset-y: 0;
    z-index: 5;
    pointer-events: auto;
}

/* When swiped open to the right (revealing left actions), promote left actions and demote front */
.swipe-container.swipe-open-right .swipe-front {
    z-index: 5 !important;
}

.swipe-container.swipe-open-right .swipe-left-actions {
    z-index: 30 !important;
}

/* When swiped open to the left (revealing right actions), promote right actions and demote front */
.swipe-container.swipe-open-left .swipe-front {
    z-index: 5 !important;
}

.swipe-container.swipe-open-left .swipe-right-actions {
    z-index: 30 !important;
}

/* Document Preview Page Simulated Look */
.document-preview-wrapper {
    background-color: #f4f4f5;
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto;
}

.dark .document-preview-wrapper {
    background-color: #09090b;
}

.document-preview-page {
    width: 794px;
    min-height: 1123px;
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    border-radius: 4px;
    transform-origin: top center;
}

/* Sozlesme View Mode */
body[data-doc-type="sozlesme"] .document-preview-page {
    padding: 94px 75px !important;
    font-family: 'Times New Roman', Times, serif !important;
    line-height: 1.6;
    font-size: 10.5pt;
    text-align: justify;
}

body[data-doc-type="sozlesme"] .document-preview-page * {
    font-family: 'Times New Roman', Times, serif !important;
    color: #000000 !important;
}

body[data-doc-type="sozlesme"] .document-preview-page.has-border {
    border: 3px double #000000;
}

body[data-doc-type="sozlesme"] .document-preview-page .ql-editor p {
    margin-bottom: 8px;
    text-indent: 1.5cm;
}

body[data-doc-type="sozlesme"] .document-preview-page .ql-editor p[style*="text-align: center"],
body[data-doc-type="sozlesme"] .document-preview-page .ql-editor p[style*="text-align:center"] {
    text-indent: 0 !important;
}

/* Dilekce View Mode */
body[data-doc-type="dilekce"] .document-preview-wrapper {
    padding: 0 !important;
    background-color: #ffffff !important;
}

body[data-doc-type="dilekce"] .document-preview-page {
    padding: 40px 24px 40px 24px !important;
    font-family: 'Times New Roman', Times, serif !important;
    line-height: 1.6;
    font-size: 11pt;
    text-align: justify;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body[data-doc-type="dilekce"] .document-preview-page * {
    font-family: 'Times New Roman', Times, serif !important;
    color: #000000 !important;
    font-size: 11pt !important;
}

body[data-doc-type="dilekce"] .document-preview-page .ql-editor p {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 8px !important;
}

body[data-doc-type="dilekce"] .document-preview-page .ql-editor p:nth-child(1),
body[data-doc-type="dilekce"] .document-preview-page .ql-editor p:nth-child(2),
body[data-doc-type="dilekce"] .document-preview-page .ql-editor p:nth-child(3) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media print {

    /* Hide the main wrapper of the web application */
    body>*:not(#preview-modal) {
        display: none !important;
    }

    /* Make the preview modal full page */
    #preview-modal {
        display: flex !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color: black !important;
        overflow: visible !important;
        z-index: 9999 !important;
    }

    /* Hide the top navbar of the preview modal */
    #preview-modal>div:first-child {
        display: none !important;
    }

    /* Ensure the document preview page fills A4 perfectly */
    .document-preview-wrapper {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        height: auto !important;
    }

    .document-preview-page {
        box-shadow: none !important;
        border: none !important;
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 auto !important;
        background: white !important;
        color: black !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    /* Dilekçe specific page padding & fonts */
    body[data-doc-type="dilekce"] {
        margin: 0 !important;
        padding: 0 !important;
    }

    body[data-doc-type="dilekce"] .document-preview-page {
        padding: 3.5cm 2.5cm 2.5cm 2.5cm !important;
        /* Perfect official petition A4 margins */
    }

    body[data-doc-type="dilekce"] .document-preview-page * {
        font-family: "Times New Roman", Times, serif !important;
        font-size: 11pt !important;
        line-height: 1.6 !important;
        color: black !important;
    }

    body[data-doc-type="dilekce"] .document-preview-page .ql-editor p {
        padding-left: 2.3cm !important;
        padding-right: 2.3cm !important;
        margin-bottom: 8px !important;
    }

    body[data-doc-type="dilekce"] .document-preview-page .ql-editor p:nth-child(1),
    body[data-doc-type="dilekce"] .document-preview-page .ql-editor p:nth-child(2),
    body[data-doc-type="dilekce"] .document-preview-page .ql-editor p:nth-child(3) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Sözleşme specific page padding & border */
    body[data-doc-type="sozlesme"] .document-preview-page {
        padding: 2.5cm 2cm 2.5cm 2cm !important;
        /* Standard contract margins */
    }

    body[data-doc-type="sozlesme"] .document-preview-page.has-border {
        border: 3px double #000000 !important;
    }

    body[data-doc-type="sozlesme"] .document-preview-page * {
        font-family: "Times New Roman", Times, serif !important;
        font-size: 10.5pt !important;
        line-height: 1.6 !important;
        color: black !important;
    }
}

/* Dark Mode Custom CSS Overrides */
.dark body {
    background-color: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
}

.dark .bg-white {
    background-color: hsl(var(--card)) !important;
}

.dark .glass-card {
    background: hsla(var(--card) / 0.8) !important;
    border-color: hsla(var(--border) / 0.5) !important;
}

.dark .text-zinc-900 {
    color: hsl(var(--foreground)) !important;
}

.dark .text-zinc-800 {
    color: hsla(var(--foreground) / 0.9) !important;
}

.dark .text-zinc-700 {
    color: hsla(var(--foreground) / 0.8) !important;
}

.dark .text-zinc-600 {
    color: hsl(var(--muted-foreground)) !important;
}

.dark .border-zinc-200 {
    border-color: hsl(var(--border)) !important;
}

.dark input,
.dark select,
.dark textarea {
    background-color: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
    border-color: hsl(var(--border)) !important;
}

/* Force specific Dark Mode Background Color Overrides for Tailwind classes */
.dark .bg-zinc-950 {
    background-color: hsl(var(--background)) !important;
}

.dark .bg-zinc-900 {
    background-color: hsl(var(--card)) !important;
}

.dark .bg-zinc-850 {
    background-color: hsl(var(--accent)) !important;
}

.dark .bg-zinc-800 {
    background-color: hsl(var(--secondary)) !important;
}

/* Unified List styles matching 3rd image */
#personnel-list-wrapper,
#definitions-list-wrapper {

    border-radius: 16px;
    /* Lg: 16px rounded as per design system image */
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.dark #personnel-list-wrapper,
.dark #definitions-list-wrapper {
    background-color: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4) !important;
}

/* Swipe container overrides for single list integration */
.swipe-container {
    background-color: hsl(var(--card)) !important;
    border: none !important;
    border-radius: 0 !important;
}

.dark .swipe-container {
    background-color: hsl(var(--card)) !important;
}

.swipe-container:not(:last-child) {
    border-bottom: 1px solid hsl(var(--border)) !important;
}

.dark .swipe-container:not(:last-child) {
    border-bottom: 1px solid hsl(var(--border)) !important;
}

.swipe-front {
    border: none !important;
    border-radius: 0 !important;
    background-color: hsl(var(--card)) !important;
}

.dark .swipe-front {
    background-color: hsl(var(--card)) !important;
}

/* Soft gray buttons in unified list in Dark Mode */
.dark .bg-zinc-100 {
    background-color: hsl(var(--secondary)) !important;
    border-color: hsla(var(--border) / 0.5) !important;
}

.dark .hover\:bg-zinc-200:hover {
    background-color: hsl(var(--accent)) !important;
}

/* Select click pointer and selection disable override for mobile browsers */
select,
input,
textarea {
    user-select: auto !important;
    -webkit-user-select: auto !important;
    pointer-events: auto !important;
}

/* Premium Native-Style Custom Dropdown Select (Desktop-Matched) */
select.mobile-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: hsl(var(--background)) !important;
    border: 1px solid hsl(var(--border)) !important;
    color: hsl(var(--foreground)) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding: 0.75rem 1rem !important;
    padding-right: 2.75rem !important;
    /* Ensure text doesn't overlap arrow */
    cursor: pointer;
    border-radius: 12px !important;
    /* Md: 12px rounded as per design system image */
    font-size: 0.9375rem !important;
    width: 100%;
    transition: all var(--transition-base);
    outline: none;
}

select.mobile-input:focus {
    border-color: hsl(var(--ring)) !important;
    box-shadow: 0 0 0 3px hsla(var(--ring) / 0.15) !important;
}

/* Force Black/White Focus Color Ring Globally for Inputs, Selects and Textareas */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
    border-color: hsl(var(--ring)) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px hsla(var(--ring) / 0.15) !important;
}

/* Mobile Label matching basecoat UI defaults */
label {
    display: block !important;
    font-size: 0.875rem !important;
    /* 14px */
    font-weight: 600 !important;
    /* Semi-bold */
    text-transform: none !important;
    /* Normal case */
    letter-spacing: normal !important;
    /* No extra spacing */
    color: hsl(var(--muted-foreground)) !important;
    margin-bottom: 0.375rem !important;
    /* 6px spacing under label */
}

/* Flex layout override for checkboxes and inline labels */
label.label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    color: hsl(var(--foreground)) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}


/* Ensure standard checkboxes render beautifully and natively on all mobile browsers */
input[type="checkbox"].input {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    width: 1.125rem !important;
    /* 18px */
    height: 1.125rem !important;
    /* 18px */
    accent-color: hsl(var(--primary)) !important;
    /* Premium emerald checkbox! */
    cursor: pointer !important;
}

/* Basecoat UI Button Mobile Overrides */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 2.75rem !important;
    /* 44px height */
    padding: 0 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    /* Md: 12px rounded as per design system image */
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
    border: 1px solid hsl(var(--primary)) !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    outline: none !important;
    text-decoration: none !important;
}

.btn:hover {
    background-color: hsla(var(--primary) / 0.9) !important;
    border-color: hsla(var(--primary) / 0.9) !important;
}

.btn:active {
    transform: scale(0.97) !important;
}

.btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 2.75rem !important;
    /* 44px height */
    padding: 0 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    /* Md: 12px rounded as per design system image */
    background-color: transparent !important;
    color: hsl(var(--foreground)) !important;
    border: 1px solid hsl(var(--border)) !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    outline: none !important;
    text-decoration: none !important;
}

.btn-outline:hover {
    background-color: hsl(var(--secondary)) !important;
}

.btn-outline:active {
    transform: scale(0.97) !important;
}

/* Global Button Cursor Pointer Style */
button,
[type="button"],
[type="submit"],
[type="reset"],
.btn,
.cursor-pointer {
    cursor: pointer !important;
}

/* Global Tailwind Radius Class Overrides matching Design System Image precisely */
.rounded-sm {
    border-radius: 2px !important;
}

.rounded {
    border-radius: 4px !important;
}

.rounded-md {
    border-radius: 6px !important;
}

.rounded-lg {
    border-radius: 8px !important;
    /* Sm: 8px as per design system image */
}

.rounded-xl {
    border-radius: 12px !important;
    /* Md: 12px as per design system image */
}

.rounded-2xl {
    border-radius: 16px !important;
    /* Lg: 16px as per design system image */
}

.rounded-3xl {
    border-radius: 24px !important;
    /* 2Xl: 24px as per design system image */
}

/* Floating Horizontal Menu for Dosyalar */
#dosyalar-floating-menu {
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#dosyalar-floating-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Premium Native Select Mask Utility */
select.mobile-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0.01 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    background-image: none !important;
}

/* Custom Select (Shadcn-like) */
.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    height: auto;
    min-height: auto;
}

.select-trigger:hover {
    background: #fafafa;
    border-color: #d1d1d6;
}

.select-trigger:focus {
    outline: 2px solid #18181b;
    outline-offset: -1px;
}

.select-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-popover {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 10000;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-width: 200px;
}

.select-popover[popover] {
    margin: 0;
    padding: 0;
    border: 1px solid #e4e4e7;
    inset: auto;
    overflow: visible;
}

.select-popover.show,
.select-popover:popover-open {
    display: flex;
}

.select-popover header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f4f4f5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.select-search {
    border: 1px solid #e4e4e7 !important;
    border-radius: 8px !important;
    outline: none !important;
    flex: 1;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem !important;
    background: transparent;
}

.select-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.25rem;
}

.select-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.1s;
}

.select-option:hover {
    background: #f4f4f5;
}

.select-option.selected {
    background: #f4f4f5;
    font-weight: 600;
}

/* Dark Mode Support */
.dark .select-trigger {
    background: #09090b;
    border-color: #27272a;
    color: #fafafa;
}

.dark .select-popover {
    background: #09090b;
    border-color: #27272a;
}

.dark .select-option:hover,
.dark .select-option.selected {
    background: #27272a;
}

.dark .select-popover header {
    border-bottom-color: #27272a;
}

.dark .select-search {
    border-color: #27272a !important;
    background: #09090b !important;
    color: #fff;
}

.select-popover.align-right {
    left: auto !important;
    right: 0 !important;
}

/* Mobile Personnel Summary Cards Styles */
.summary-card {
    border: 1px solid #e4e4e7;
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    border-radius: 12px;
}

.dark .summary-card {
    border: 1px solid #27272a;
    background-color: #09090b;
}

.summary-card:hover {
    background-color: #fafafa;
}

.dark .summary-card:hover {
    background-color: #18181b;
}

/* Summary Card Active States */
.summary-card.active-all {
    border-color: #09090b !important;
    background-color: #f4f4f5 !important;
}

.summary-card.active-all span {
    color: #09090b !important;
}

.dark .summary-card.active-all {
    border-color: #fafafa !important;
    background-color: #18181b !important;
}

.dark .summary-card.active-all span {
    color: #fafafa !important;
}

.summary-card.active-aktif {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
}

.summary-card.active-aktif span {
    color: #047857 !important;
}

.dark .summary-card.active-aktif {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.dark .summary-card.active-aktif span {
    color: #34d399 !important;
}

.summary-card.active-pasif {
    border-color: #f43f5e !important;
    background-color: #fff1f2 !important;
}

.summary-card.active-pasif span {
    color: #e11d48 !important;
}

.dark .summary-card.active-pasif {
    border-color: #f43f5e !important;
    background-color: rgba(244, 63, 94, 0.1) !important;
}

.dark .summary-card.active-pasif span {
    color: #fb7185 !important;
}