﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-feature-settings: 'kern' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.min-h-screen {
    min-height: 100vh;
}

.bg-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 30%, #f1f5f9 70%, #e2e8f0 100%);
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.background-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

/* Typography */
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.leading-relaxed {
    line-height: 1.625;
}

.text-slate-800 {
    color: #1e293b;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-400 {
    color: #94a3b8;
}

.text-white {
    color: #ffffff;
}

.text-blue-600 {
    color: #2563eb;
}

.text-red-500 {
    color: #ef4444;
}

/* Colors */
.bg-blue-600 {
    background-color: #2563eb;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-white {
    background-color: #ffffff;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-slate-100 {
    background-color: #f1f5f9;
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-green-700 {
    background-color: #15803d;
}

.bg-green-800 {
    background-color: #166534;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-slate-200 {
    border-color: #e2e8f0;
}

.border-slate-300 {
    border-color: #cbd5e1;
}

.border-blue-300 {
    border-color: #93c5fd;
}

.border-blue-500 {
    border-color: #3b82f6;
}

.border-white {
    border-color: #ffffff;
}

/* Border Radius */
.rounded-full {
    border-radius: 9999px;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Padding */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Shadows */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive Grid */
@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

/* Max Width */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-5xl {
    max-width: 66rem;
}

/* Positioning */
.absolute {
    position: absolute;
}

.right-3 {
    right: 0.75rem;
}

.top-1\/2 {
    top: 50%;
}

.transform {
    transform: var(--tw-transform);
}

.-translate-y-1\/2 {
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}

/* Width & Height */
.w-full {
    width: 100%;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    width: 1.25rem;
    height: 1.25rem;
}

.h-6 {
    width: 1.5rem;
    height: 1.5rem;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

.object-contain {
    object-fit: contain;
}

/* Custom Component Styles */
.main-card {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
    border-radius: 1.5rem;
    border: none;
    backdrop-filter: blur(25px);
    overflow: visible;
    width: 950px;
    max-width: 92vw;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 1.5rem;
    pointer-events: none;
    z-index: -1;
}

.main-card:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.tabs-container {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(12px);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.04);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    position: relative;
    border-radius: 1.25rem 1.25rem 0 0;
    margin-bottom: -1px;
}

    .tab-button::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #2563eb, #1d4ed8);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-50%);
        border-radius: 1px;
    }

    .tab-button:hover {
        background-color: rgba(239, 246, 255, 0.8);
        color: #2563eb;
    }

    .tab-button.active {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: white;
        box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.15);
        z-index: 3;
    }

        .tab-button.active::before {
            width: 100%;
        }

    .tab-button:not(.active):hover {
        background-color: rgba(239, 246, 255, 0.8);
        color: #2563eb;
    }

.search-form {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    padding: 0 0.5rem;
}

    .search-form.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Select with Search */
.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    padding-right: 2.25rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #334155;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 2.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .form-select:hover {
        border-color: #cbd5e1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

    .form-select:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .form-select:disabled {
        background-color: #f8fafc;
        color: #94a3b8;
        cursor: not-allowed;
        border-color: #e2e8f0;
        box-shadow: none;
    }

/* Select Container */
.select-wrapper {
    position: relative;
}

/* Custom Dropdown */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    overflow: hidden;
    display: none;
}

.custom-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Search Input in Dropdown */
.dropdown-search {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 2;
}

.dropdown-search input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.dropdown-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.dropdown-search input::placeholder {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Dropdown Options */
.dropdown-options {
    max-height: 140px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dropdown-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #334155;
}

    .dropdown-option:hover {
        background: #f0f9ff;
        color: #1e40af;
    }

    .dropdown-option.selected {
        background: #dbeafe;
        color: #1e40af;
        font-weight: 600;
    }

    .dropdown-option:last-child {
        border-bottom: none;
    }

/* No Results */
.no-results {
    padding: 0.5rem 0.75rem;
    text-align: center;
    color: #64748b;
    font-size: 0.75rem;
    font-style: italic;
}

/* Loading State */
.dropdown-loading {
    padding: 0.5rem 0.75rem;
    text-align: center;
    color: #64748b;
    font-size: 0.75rem;
}

.loading-spinner {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-top: 1.5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clean Search Input */
.search-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    color: #334155;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 2.75rem;
}

    .search-select:hover {
        border-color: #cbd5e1;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .search-select:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .search-select::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

/* Clean Dropdown */
.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 0.625rem 0.625rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    display: none;
}

.select-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Dropdown Search */
.dropdown-search {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dropdown-search input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.dropdown-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Dropdown Options */
.dropdown-options {
    max-height: 150px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

    .dropdown-option:hover {
        background: #f0f9ff;
        color: #1e40af;
    }

    .dropdown-option.selected {
        background: #dbeafe;
        color: #1e40af;
        font-weight: 600;
    }

    .dropdown-option:last-child {
        border-bottom: none;
    }

/* No Results */
.no-results {
    padding: 0.75rem;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    font-style: italic;
}

/* Loading State */
.dropdown-loading {
    padding: 0.75rem;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

.loading-spinner {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-top: 1.5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    }

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #334155;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 2.75rem; /* Same as button height */
}

    .form-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    }

    .form-input:disabled {
        background-color: #f8fafc;
        color: #94a3b8;
        cursor: not-allowed;
        border-color: #e2e8f0;
        box-shadow: none;
    }

    .form-input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

.select-icon {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.selected-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modern Toast Validation Error */
.validation-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.1), 0 10px 10px -5px rgba(239, 68, 68, 0.04);
    max-width: 400px;
    min-width: 320px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .validation-toast.show {
        transform: translateX(0);
        opacity: 1;
    }

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
}

.toast-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: #dc2626;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.toast-text {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .toast-close:hover {
        background: rgba(148, 163, 184, 0.1);
        color: #64748b;
    }

/* Unified Button Styles */
.search-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 2.75rem; /* Consistent height */
}

    .search-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .search-button:hover:not(:disabled) {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #1e3a8a 100%);
        box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4), 0 4px 6px -2px rgba(37, 99, 235, 0.3);
        transform: translateY(-1px);
    }

        .search-button:hover:not(:disabled)::before {
            left: 100%;
        }

    .search-button:active:not(:disabled) {
        transform: translateY(0);
    }

    .search-button:disabled {
        background: linear-gradient(135deg, #cbd5e1, #94a3b8);
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }

.imar-button {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #166534 100%);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3), 0 2px 4px -1px rgba(22, 163, 74, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 2.75rem; /* Consistent height */
}

    .imar-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .imar-button:hover {
        background: linear-gradient(135deg, #15803d 0%, #166534 50%, #14532d 100%);
        box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.4), 0 4px 6px -2px rgba(22, 163, 74, 0.3);
        transform: translateY(-1px);
    }

        .imar-button:hover::before {
            left: 100%;
        }

    .imar-button:active {
        transform: translateY(0);
    }

/* Arama Sonuçları - İkon ve Yazı Düzeltmesi */
.result-item {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
}

    .result-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.03), transparent);
        transition: left 0.4s;
    }

    .result-item:hover {
        border-color: rgba(147, 197, 253, 0.6);
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.08);
        transform: translateY(-1px);
    }

        .result-item:hover::before {
            left: 100%;
        }

    .result-item.selected {
        border-color: rgba(59, 130, 246, 0.4);
        background: rgba(239, 246, 255, 0.8);
        box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
    }

    /* Ana Container - Tam Genişlik Kullanımı */
    .result-item > .flex {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        /* Sol Taraf - İkon ve Yazı Grubu */
        .result-item > .flex > .flex {
            display: flex;
            align-items: center;
            gap: 0.75rem; /* İkon ile yazı arasında ideal boşluk */
            flex: 1; /* Kalan alanı kapla */
        }

    /* İkon Container - Kompakt ve Sabit */
    .result-item .bg-blue-100 {
        background-color: rgba(219, 234, 254, 0.8);
        padding: 0.5rem;
        border-radius: 0.5rem;
        flex-shrink: 0; /* Küçülmeyi engelle */
        width: 2.25rem; /* Sabit genişlik */
        height: 2.25rem; /* Sabit yükseklik */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Yazı Alanı - Kompakt */
    .result-item .text-lg {
        font-size: 0.95rem;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 0.125rem;
        line-height: 1.3;
    }

    .result-item .text-slate-600 {
        font-size: 0.8rem;
        color: #64748b;
        line-height: 1.2;
        font-weight: 400;
    }

/* Radio Button - Sağda Sabit */
.result-radio {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem; /* Yazıdan uzaklık */
}

    .result-radio::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background-color: white;
        border-radius: 50%;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translate(-50%, -50%);
    }

    .result-radio.selected {
        background-color: #3b82f6;
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    }

        .result-radio.selected::before {
            width: 4px;
            height: 4px;
        }

/* Modern Compact Footer Styles */
.footer-modern {
    margin-top: 3rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.quick-action-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(226, 232, 240, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.action-group {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 0.625rem;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .action-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
        transition: left 0.4s;
    }

    .action-btn:hover {
        background: rgba(239, 246, 255, 0.9);
        border-color: rgba(147, 197, 253, 0.4);
        color: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.15);
    }

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

        .action-btn:hover .action-icon {
            color: #2563eb;
            transform: scale(1.1);
        }

.action-icon {
    width: 1rem;
    height: 1rem;
    color: #64748b;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.action-text {
    white-space: nowrap;
}

.divider {
    width: 1px;
    height: 2rem;
    background: linear-gradient(to bottom, transparent, rgba(226, 232, 240, 0.8), transparent);
    flex-shrink: 0;
}

.app-group {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 0.75rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

    .app-btn.primary {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.05));
        border-color: rgba(147, 197, 253, 0.3);
    }

    .app-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
        transition: left 0.4s;
    }

    .app-btn:hover {
        background: rgba(239, 246, 255, 0.95);
        border-color: rgba(147, 197, 253, 0.5);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.15);
    }

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

        .app-btn:hover .app-logo {
            transform: scale(1.1);
        }

.app-logo {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    object-fit: contain;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.app-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.app-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.2;
}

.new-badge {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.status-bar {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.4);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    position: relative;
}

    .status-dot::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 50%;
        opacity: 0.3;
        animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    .status-dot.online {
        background-color: #16a34a;
    }

        .status-dot.online::before {
            background-color: #16a34a;
        }

    .status-dot.fast {
        background-color: #f59e0b;
    }

        .status-dot.fast::before {
            background-color: #f59e0b;
        }

    .status-dot.secure {
        background-color: #2563eb;
    }

        .status-dot.secure::before {
            background-color: #2563eb;
        }

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.status-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .py-6 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        gap: 0.375rem;
    }

    .search-button,
    .imar-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.8rem;
        height: 2.5rem;
    }

    .main-card {
        border-radius: 1.25rem 1.25rem 1rem 1rem;
    }

    .result-item {
        padding: 0.625rem 0.75rem;
        min-height: 2.5rem;
    }

        .result-item > .flex > .flex {
            gap: 0.5rem; /* Tablet için kompakt */
        }

        .result-item .bg-blue-100 {
            width: 2rem;
            height: 2rem;
            padding: 0.375rem;
        }

        .result-item .text-lg {
            font-size: 0.85rem;
        }

        .result-item .text-slate-600 {
            font-size: 0.75rem;
        }

    .result-radio {
        width: 0.875rem;
        height: 0.875rem;
        margin-left: 0.75rem;
    }

        .result-radio.selected::before {
            width: 3px;
            height: 3px;
        }

    .form-select,
    .form-input {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        height: 2.5rem;
    }

    .form-select {
        padding-right: 2rem;
    }

    .p-6 {
        padding: 1rem;
    }

    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .text-lg {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .mb-8 {
        margin-bottom: 1.5rem;
    }

    .mt-8 {
        margin-top: 1.5rem;
    }

    .mt-12 {
        margin-top: 2rem;
    }

    .space-y-6 > * + * {
        margin-top: 1rem;
    }

    .gap-4 {
        gap: 0.75rem;
    }

    .gap-3 {
        gap: 0.5rem;
    }

    /* Footer Responsive */
    .quick-action-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem;
    }

    .action-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .action-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .divider {
        display: none;
    }

    .app-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .app-btn {
        min-width: 160px;
        padding: 0.625rem 0.75rem;
    }

    .app-title {
        font-size: 0.75rem;
    }

    .app-subtitle {
        font-size: 0.65rem;
    }

    .status-bar {
        gap: 1rem;
        padding: 0.5rem;
    }

    .status-text {
        font-size: 0.7rem;
    }

    /* Toast Responsive */
    .validation-toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .flex.items-center.justify-center {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .mr-4 {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .tab-button {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }

    .text-3xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .px-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .main-card {
        margin: 0;
        border-radius: 1rem;
    }

    .result-item {
        padding: 0.5rem 0.625rem;
        min-height: 2.25rem;
    }

        .result-item > .flex > .flex {
            gap: 0.375rem; /* Mobil için en kompakt */
        }

        .result-item .bg-blue-100 {
            width: 1.75rem;
            height: 1.75rem;
            padding: 0.25rem;
        }

        .result-item .text-lg {
            font-size: 0.8rem;
            margin-bottom: 0.0625rem;
        }

        .result-item .text-slate-600 {
            font-size: 0.7rem;
        }

    .result-radio {
        width: 0.75rem;
        height: 0.75rem;
        margin-left: 0.5rem;
    }

        .result-radio.selected::before {
            width: 2.5px;
            height: 2.5px;
        }

    .search-button,
    .imar-button {
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem;
        height: 2.25rem;
    }

    .form-select,
    .form-input {
        height: 2.25rem;
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }

    .form-select {
        padding-right: 1.75rem;
    }

    /* Footer Mobile */
    .action-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.7rem;
        gap: 0.375rem;
    }

    .action-icon {
        width: 0.875rem;
        height: 0.875rem;
    }

    .app-btn {
        min-width: 140px;
        padding: 0.5rem 0.625rem;
        gap: 0.5rem;
    }

    .app-logo {
        width: 1.25rem;
        height: 1.25rem;
    }

    .app-title {
        font-size: 0.7rem;
    }

    .app-subtitle {
        font-size: 0.6rem;
    }

    .new-badge {
        font-size: 0.5rem;
        padding: 0.0625rem 0.25rem;
    }

    .status-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .status-item {
        gap: 0.375rem;
    }

    .status-text {
        font-size: 0.65rem;
    }

    /* Toast Mobile */
    .validation-toast {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }

    .toast-content {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .toast-title {
        font-size: 0.8rem;
    }

    .toast-text {
        font-size: 0.75rem;
    }
}

.quick-action-bar.attached {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: rgba(255,255,255,0.38);
    backdrop-filter: blur(18px);
    border-radius: 0 0 1.25rem 1.25rem;
    border-top: 1px solid rgba(226,232,240,0.18);
    border-left: 1.5px solid rgba(255,255,255,0.18);
    border-right: 1.5px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 16px -4px rgba(0,0,0,0.06);
    margin-top: -1.25rem;
    margin-bottom: 0;
    padding: 1.25rem 2rem;
    position: relative;
    z-index: 2;
}

.quick-action-bar .action-group {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.quick-action-bar .app-group {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.quick-action-bar .divider {
    display: none;
}

@media (max-width: 768px) {
    .tabs-container {
        border-top-left-radius: 1.25rem;
        border-top-right-radius: 1.25rem;
    }
    .tab-button {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    .quick-action-bar.attached {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0.75rem;
        border-radius: 0 0 1rem 1rem;
        margin-top: -1rem;
    }
    .quick-action-bar .action-group,
    .quick-action-bar .app-group {
        justify-content: center;
    }
}

.vertical-action-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-width: 170px;
    max-width: 200px;
    background: rgba(255,255,255,0.38);
    backdrop-filter: blur(18px);
    border-radius: 1.25rem;
    box-shadow: 0 4px 16px -4px rgba(0,0,0,0.06);
    border: 1.5px solid rgba(255,255,255,0.18);
    padding: 1.5rem 0.75rem 1.25rem 0.75rem;
    gap: 1.5rem;
    position: relative;
    z-index: 3;
    height: 100%;
}

.action-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.app-group-vertical {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.vertical-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, #e2e8f0 60%, transparent);
    margin: 1.25rem 0 1rem 0;
    opacity: 0.5;
}

.vertical-action-bar .action-btn {
    justify-content: flex-start;
    width: 100%;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(248,250,252,0.8);
    border: 1px solid rgba(226,232,240,0.6);
    color: #475569;
    transition: all 0.2s;
    box-shadow: none;
}

.vertical-action-bar .action-btn:hover {
    background: rgba(239,246,255,0.95);
    color: #2563eb;
    border-color: #93c5fd;
    box-shadow: 0 2px 8px -2px rgba(59,130,246,0.08);
}

.vertical-action-bar .app-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .vertical-action-bar {
        min-width: 120px;
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .container.flex-row {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: stretch !important;
    }
    .vertical-action-bar {
        flex-direction: row;
        min-width: 0;
        max-width: none;
        width: 100%;
        border-radius: 1rem;
        margin-bottom: 1rem;
        padding: 0.75rem 0.5rem;
        height: auto;
        gap: 1rem;
    }
    .action-group-vertical, .app-group-vertical {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        margin-top: 0;
    }
    .vertical-divider {
        display: none;
    }
}

.side-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    min-width: 60px;
    margin: 0 0 0 1rem;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.side-action-btn {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(226,232,240,0.6);
    border-radius: 0.875rem;
    box-shadow: 0 4px 12px -2px rgba(37,99,235,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    outline: none;
    position: relative;
}

.side-action-btn:hover, .side-action-btn:focus {
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
    border-color: #3b82f6;
    box-shadow: 0 6px 16px -2px rgba(37,99,235,0.15);
    transform: translateY(-1px);
}

.side-action-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: #2563eb;
    transition: color 0.2s;
}

.side-action-btn:hover .side-action-icon,
.side-action-btn:focus .side-action-icon {
    color: #1d4ed8;
}

.side-action-logo {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.25rem;
    object-fit: contain;
    transition: all 0.2s;
}

.side-action-btn.lider-btn:hover .side-action-logo,
.side-action-btn.lider-btn:focus .side-action-logo {
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .side-action-btn {
        width: 44px;
        height: 44px;
        border-radius: 0.75rem;
    }
    .side-action-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .side-action-logo {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 768px) {
    .min-h-screen.flex {
        padding: 0.5rem 0;
    }
    .min-h-screen.flex[style*="padding-top: 5rem"] {
        padding-top: 1.5rem !important;
    }
    .pt-20 {
        padding-top: 1.5rem;
    }
    .pt-10 {
        padding-top: 1rem;
    }
    .pt-2 {
        padding-top: 0.25rem;
    }
    .flex.flex-row {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    .main-card {
        width: 100%;
        max-width: 95vw;
        border-radius: 1.25rem;
        order: 1;
    }
    .belediye-header {
        border-radius: 1.25rem;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        width: 100%;
        order: 1;
    }
    .belediye-header .flex {
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem;
    }
    .belediye-header h1 {
        font-size: 1rem !important;
        line-height: 1.3;
    }
    .belediye-header p {
        font-size: 0.75rem !important;
        margin-top: 0.125rem;
    }
    .tabs-container {
        border-top-left-radius: 1.25rem;
        border-top-right-radius: 1.25rem;
    }
    .tab-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        border-radius: 1rem 1rem 0 0;
    }
    .side-action-buttons {
        flex-direction: row;
        gap: 0.75rem;
        min-width: 0;
        margin: 1rem 0 0 0;
        justify-content: center;
        position: static;
        align-self: stretch;
        order: 2;
    }
    .side-action-btn {
        width: 40px;
        height: 40px;
        border-radius: 0.625rem;
    }
    .side-action-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    .side-action-logo {
        width: 1.25rem;
        height: 1.25rem;
    }
    .form-select, .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        height: 2.75rem;
    }
    .search-button, .imar-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.875rem;
        height: 2.75rem;
    }
}

@media (max-width: 480px) {
    .belediye-header {
        padding: 0.625rem;
    }
    .belediye-header h1 {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }
    .belediye-header p {
        font-size: 0.7rem !important;
    }
    .belediye-header .flex {
        gap: 0.375rem;
    }
    .belediye-header img {
        width: 2rem;
        height: 2rem;
    }
}

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

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.form-select, .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #334155;
    font-weight: 400;
    /*font-size: 0.95rem;*/
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    height: 3rem;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.form-select.error, .form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-select.error:focus, .form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.search-button, .imar-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.25);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 3rem;
}

.search-button:hover:not(:disabled), .imar-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #1e3a8a 100%);
    box-shadow: 0 8px 16px -2px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.imar-button {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #166534 100%);
    box-shadow: 0 6px 12px -2px rgba(22, 163, 74, 0.25);
}

.imar-button:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 50%, #14532d 100%);
    box-shadow: 0 8px 16px -2px rgba(22, 163, 74, 0.3);
}

.belediye-header {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.belediye-header h1 {
    color: #1e293b;
    margin: 0;
}

@media (max-width: 1200px) {
    .main-card {
        width: 850px;
    }
}

@media (max-width: 1024px) {
    .main-card {
        width: 800px;
    }
    .belediye-header {
        padding: 1rem;
    }
    .belediye-header h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    .belediye-header p {
        font-size: 0.875rem !important;
    }
}

@media (max-width: 900px) {
    .main-card {
        width: 750px;
    }
    .belediye-header {
        padding: 0.875rem;
    }
    .belediye-header h1 {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }
    .belediye-header p {
        font-size: 0.8rem !important;
    }
    .belediye-header .flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    .belediye-header .text-left {
        text-align: center;
    }
    .side-action-btn {
        width: 44px;
        height: 44px;
        border-radius: 0.75rem;
    }
    .side-action-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .side-action-logo {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Field Error Styles */
.field-error {
    margin-top: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 500;
}

.error-message i {
    color: #ef4444;
    flex-shrink: 0;
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(29, 78, 216, 0.02));
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 1.5rem 2rem 1.25rem 2rem;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8, #1e40af);
    border-radius: 1.5rem 1.5rem 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title i {
    color: #2563eb;
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
    transform: scale(1.05);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-title i {
    color: #2563eb;
    flex-shrink: 0;
}

.modal-content {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.modal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    transition: all 0.2s ease;
}

.modal-list-item:last-child {
    border-bottom: none;
}

.modal-list-item:hover {
    background: rgba(248, 250, 252, 0.5);
    margin: 0 -0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
}

.modal-list-icon {
    background: rgba(219, 234, 254, 0.8);
    border-radius: 0.375rem;
    padding: 0.375rem;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.modal-list-content {
    flex: 1;
}

.modal-list-title {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.modal-list-text {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.modal-stat {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.modal-stat:hover {
    background: rgba(239, 246, 255, 0.9);
    border-color: rgba(147, 197, 253, 0.4);
    transform: translateY(-1px);
}

.modal-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.modal-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.modal-contact {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(29, 78, 216, 0.02));
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.modal-contact-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.modal-contact-icon {
    background: rgba(219, 234, 254, 0.8);
    border-radius: 0.375rem;
    padding: 0.375rem;
    color: #2563eb;
    flex-shrink: 0;
}

.modal-contact-text {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-footer {
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding: 1.25rem 2rem;
    text-align: center;
}

.modal-footer-text {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem 1rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1.25rem;
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: calc(100vh - 140px);
    }
    
    .modal-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .modal-stat {
        padding: 0.75rem;
    }
    
    .modal-stat-value {
        font-size: 1.25rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        margin: 0.25rem;
        border-radius: 1.25rem;
    }
    
    .modal-header {
        padding: 1rem 1.25rem 0.75rem 1.25rem;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .modal-close {
        top: 0.75rem;
        right: 1rem;
        width: 2rem;
        height: 2rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-list-item {
        padding: 0.5rem 0;
    }
    
    .modal-list-item:hover {
        margin: 0 -0.25rem;
        padding: 0.5rem 0.25rem;
    }
}

/* Location Detection Button */
.location-detect-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3), 0 2px 4px -1px rgba(16, 185, 129, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    height: 2.5rem;
    white-space: nowrap;
}

.location-detect-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.location-detect-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4), 0 4px 6px -2px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.location-detect-button:hover:not(:disabled)::before {
    left: 100%;
}

.location-detect-button:active:not(:disabled) {
    transform: translateY(0);
}

.location-detect-button.loading {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    cursor: not-allowed;
    opacity: 0.8;
    transform: none !important; /* Prevent any rotation of the button itself */
}

.location-detect-button.loading i {
    animation: spin 1s linear infinite;
}

.location-detect-button:disabled {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important; /* Prevent any rotation when disabled */
    opacity: 0.6;
}

.location-detect-button:disabled:hover {
    transform: none !important; /* Prevent hover effects when disabled */
    box-shadow: none;
}

@media (max-width: 1024px) {
    .location-detect-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        height: 2.25rem;
    }
}

@media (max-width: 768px) {
    .belediye-header .flex.items-center.justify-between {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .belediye-header .flex-shrink-0 {
        align-self: center;
    }
    
    .location-detect-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .location-detect-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        height: 2.25rem;
    }
    
    .location-detect-button span {
        display: none;
    }
    
    .location-detect-button {
        padding: 0.5rem;
        width: 2.25rem;
        justify-content: center;
    }
}

/* Info message styles */
.bg-blue-50 {
    background-color: #eff6ff;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.text-blue-800 {
    color: #1e40af;
}

.text-blue-600 {
    color: #2563eb;
}

.mb-4 {
    margin-bottom: 1rem;
}
