/* ==========================================
   D Event Tedarikçi Panel v6.0 — CSS
   ========================================== */

:root {
    --primary: #0c4a6e;
    --primary-dark: #082f49;
    --primary-darker: #07273d;
    --primary-light: #0ea5e9;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --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;
    --sidebar-w: 260px;
    --header-h: 60px;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, .1), 0 4px 6px rgba(0, 0, 0, .05);
}

html {
    scroll-behavior: smooth;
}

.legacy-ui *,
.legacy-ui *::before,
.legacy-ui *::after {
    box-sizing: border-box;
    margin: 0;
}

/* Modal: restore Bootstrap padding (legacy-ui reset above zeroes it) */
.legacy-ui .modal {
    padding: 0;
}

.legacy-ui .modal-dialog {
    margin: 1.75rem auto;
    padding: 0 1rem;
}

.legacy-ui .modal-content {
    padding: 0;
}

.legacy-ui .modal-header {
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid var(--gray-200);
}

.legacy-ui .modal-body {
    padding: 1rem;
}

.legacy-ui .modal-footer {
    padding: 0.75rem 1rem 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-shrink: 0;
    border-top: 1px solid var(--gray-200);
}

.legacy-ui .modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.legacy-ui .modal .form-label {
    margin-bottom: 0.25rem;
    display: block;
}

.legacy-ui .modal .form-control {
    padding: 0.375rem 0.75rem;
}

.legacy-ui .modal .row.g-3 {
    margin: -0.375rem;
}

.legacy-ui .modal .row.g-3>[class*="col-"] {
    padding: 0.375rem;
}

.legacy-ui .modal .btn-close {
    padding: 0.5rem;
    margin: -0.5rem 0.5rem -0.5rem auto;
}

/* Performans formu - özel yıldız puanlama */
.legacy-ui .perf-rating-group {
    display: flex;
    gap: 2px;
    font-size: 28px;
    line-height: 1;
}

.legacy-ui .perf-star {
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}

.legacy-ui .perf-star:hover,
.legacy-ui .perf-star.filled {
    color: var(--accent);
}

.legacy-ui {
    font-size: 15px;
}

.legacy-ui {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
}

.legacy-ui a {
    color: inherit;
    text-decoration: none;
}

.legacy-ui img {
    max-width: 100%;
}

.legacy-ui svg {
    margin-right: 0 !important;
}

/* ---- Login Page ---- */
.legacy-ui .login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c4a6e 0%, #082f49 40%, #0ea5e9 100%);
    position: relative;
    overflow: hidden;
}

.legacy-ui .login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 60px 60px;
    }
}

.legacy-ui .login-card {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .3);
}

.legacy-ui .login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.legacy-ui .login-logo .brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.legacy-ui .login-logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
}

.legacy-ui .login-logo p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

.legacy-ui .form-group {
    margin-bottom: 18px;
}

.legacy-ui .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.legacy-ui .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
    transition: border-color .2s, box-shadow .2s;
    background: white;
}

.legacy-ui .form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}

.legacy-ui .form-control.is-invalid {
    border-color: var(--danger);
}

.legacy-ui .invalid-feedback {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

/* ---- Buttons ---- */
.legacy-ui .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}

.legacy-ui .btn-primary {
    background: var(--primary);
    color: white;
}

.legacy-ui .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.legacy-ui .btn-accent {
    background: var(--accent);
    color: white;
}

.legacy-ui .btn-accent:hover {
    background: var(--accent-dark);
}

.legacy-ui .btn-success {
    background: var(--success);
    color: white;
}

.legacy-ui .btn-success:hover {
    background: #059669;
}

.legacy-ui .btn-danger {
    background: var(--danger);
    color: white;
}

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

.legacy-ui .btn-warning {
    background: var(--warning);
    color: white;
}

.legacy-ui .btn-warning:hover {
    background: #f59e0b;
}

.legacy-ui .btn-light {
    background: var(--gray-100);
    color: white;
}

.legacy-ui .btn-light:hover {
    background: var(--gray-200);
}

.legacy-ui .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.legacy-ui .btn-outline:hover {
    background: var(--primary);
    color: white;
}

.legacy-ui .btn-ghost {
    background: transparent;
    color: var(--gray-600);
    box-shadow: none;
}

.legacy-ui .btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.legacy-ui .btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.legacy-ui .btn-lg {
    padding: 13px 28px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
}

.legacy-ui .btn-icon {
    padding: 8px;
    border-radius: 8px;
}

/* ---- App Layout ---- */
.legacy-ui .app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.legacy-ui .app-sidebar {
    width: var(--lte-sidebar-width);
    background: var(--primary-dark);
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: transform .3s;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .1) transparent;
}

.legacy-ui .sidebar-brand.sidebar-header,
.legacy-ui .sidebar-header {
    padding: 12px 15px 12px;
    border-bottom: 0px solid rgba(255, 255, 255, .08);
    background: var(--primary-darker);
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    justify-content: left;
    height: var(--header-h);
}

.legacy-ui .sidebar-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.legacy-ui .sidebar-title h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.legacy-ui .sidebar-title span {
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
    margin: 0;
    margin-top: 1px;
    display: block;
    line-height: 1.2;
}

.legacy-ui .sidebar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0px;
}

.legacy-ui .sidebar-wrapper>nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

/* AdminLTE 4 sidebar menu */
.legacy-ui .sidebar-menu {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.legacy-ui .app-sidebar .nav-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .35);
    padding: 8px 8px 4px;
    margin-bottom: 2px;
}

.legacy-ui .app-sidebar .nav-item {
    margin-bottom: 1px;
}

.legacy-ui .app-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    margin: 0;
    border-radius: 8px;
    width: 100%;
    color: rgba(255, 255, 255, .75) !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: all .15s;
    text-decoration: none;
}

.legacy-ui .app-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .08) !important;
    color: white !important;
}

.legacy-ui .app-sidebar .nav-link.active {
    background: rgba(14, 165, 233, .25) !important;
    color: white !important;
    font-weight: 600;
}

.legacy-ui .app-sidebar .nav-link .nav-icon {
    min-width: auto;
    max-width: none;
}

.legacy-ui .app-sidebar .nav-link p {
    margin: 0;
    padding: 0;
    flex: 1;
}

.legacy-ui .app-sidebar .nav-link.disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, .4) !important;
}

.legacy-ui .app-sidebar .nav-link.disabled:hover {
    background: transparent !important;
    color: rgba(255, 255, 255, .4) !important;
}

/* Legacy: keep .nav-item as alias for link-style if used elsewhere */
.legacy-ui .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 0px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .75);
    font-size: 13.5px;
    font-weight: 500;
    transition: all .15s;
    margin-bottom: 1px;
}


.legacy-ui .nav-item.active {
    background: rgba(14, 165, 233, .25);
    color: white;
    font-weight: 600;
}

.legacy-ui .nav-item .icon,
.legacy-ui .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Lucide icons (CDN) — replace <i> with <svg>; keep size via class */
.legacy-ui .nav-icon,
.legacy-ui .nav-icon svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.legacy-ui .evaluation-tabs {
    border-bottom: 0;
}

.legacy-ui .evaluation-tabs .nav-link:not(.active) {
    color: var(--bs-link-hover-color);
    border-color: var(--bs-border-color) !important;
}

.legacy-ui .lucide-stat {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.legacy-ui .lucide-quick {
    width: 24px;
    height: 24px;
    display: inline-block;
    color: var(--gray-600);
}

.legacy-ui .lucide-action {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.legacy-ui .lucide-search {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.legacy-ui .lucide-inline {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.legacy-ui .lucide-badge {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

.legacy-ui .btn .lucide-action:first-child {
    margin-right: 6px;
}

.legacy-ui .d-inline-flex {
    display: inline-flex;
}

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

.legacy-ui .gap-1 {
    gap: 0.25rem;
}

.legacy-ui .nav-icon-lock {
    width: 14px;
    height: 14px;
    margin-left: -4px;
    opacity: 0.8;
}

.legacy-ui .nav-item-disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, .4) !important;
}

.legacy-ui .nav-item-disabled:hover {
    background: transparent !important;
    color: rgba(255, 255, 255, .4) !important;
}

.legacy-ui .nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
}

.legacy-ui .sidebar-footer {
    padding: 3px 12px;
}

.legacy-ui .sidebar-footer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.legacy-ui .sidebar-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    min-width: 0;
}

.legacy-ui .sidebar-logout-form {
    flex-shrink: 0;
}

.legacy-ui .sidebar-logout-btn {
    color: rgba(255, 255, 255, .7) !important;
    padding: 8px;
}

.legacy-ui .sidebar-logout-btn:hover {
    color: white !important;
    background: rgba(255, 255, 255, .1);
}

.legacy-ui .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.legacy-ui .user-info .name {
    font-size: 13px;
    font-weight: 600;
}

.legacy-ui .user-info .role {
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

/* Main content */
.legacy-ui .main-content {
    min-height: 100vh;
}

/* Top header */
.legacy-ui .top-header {
    height: var(--header-h);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.legacy-ui .top-header-white {
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.legacy-ui .top-header .page-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
}

.legacy-ui .top-header-white .page-title {
    flex: 1;
}

.legacy-ui .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Page content */
.legacy-ui .page-content {
    padding: 24px;
    flex: 1;
}

.legacy-ui .app-content,
.legacy-ui .container-fluid {
    padding: 0px;
}

/* ---- Cards ---- */
.legacy-ui .card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 0px;
}

.legacy-ui .card-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
    background-color: #fff;
}

.legacy-ui .card-header-white {
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.legacy-ui .card-header .card-title {
    flex: 1;
}

.legacy-ui .card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.legacy-ui .card-body {
    padding: 20px;
}

.legacy-ui .card-footer {
    padding: 0px;
}

.legacy-ui .card-outline {
    border-top: 3px solid var(--lte-card-variant-bg);
}

.legacy-ui .card-outline-start {
    border-left: 3px solid var(--lte-card-variant-bg);
}

/* ---- Stat Cards ---- */
/* Bootstrap 5–compatible grid fallback when Bootstrap CSS is not loaded (e.g. dashboard) */
.legacy-ui .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.legacy-ui .row.g-3>[class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.legacy-ui .row.mb-4 {
    margin-bottom: 1.5rem;
}

.legacy-ui .row.mb-4:last-child {
    margin-bottom: 0;
}

.legacy-ui .info-box-content {
    padding: 0px;
}

.legacy-ui .info-box-content .info-box-text {
    white-space: normal;
    line-height: 1.2;
}

.legacy-ui .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.legacy-ui .stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}

.legacy-ui .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.legacy-ui .card-animate {
    transition: transform .2s, box-shadow .2s;
    box-shadow: var(--shadow);
}

.legacy-ui .card-animate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---- Survey Active Cards ---- */
.legacy-ui .survey-active-list .survey-card {
    color: inherit;
    display: block;
}

.legacy-ui .survey-active-list .survey-card:hover {
    color: inherit;
}

.legacy-ui .survey-active-list .survey-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(12, 74, 110, .1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legacy-ui .survey-active-list .survey-card-icon .lucide-action {
    width: 22px;
    height: 22px;
}

.legacy-ui .survey-active-list .survey-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.legacy-ui .survey-active-list .survey-card-meta {
    font-size: 12px;
}

.legacy-ui .survey-active-list .survey-card-meta .badge-period {
    margin-right: 4px;
}

.legacy-ui .survey-active-list .survey-card-questions {
    font-size: 13px;
    margin-bottom: 0;
}

.legacy-ui .survey-active-list .survey-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gray-100);
    color: var(--gray-400);
}

.legacy-ui .survey-active-list .survey-empty-icon svg {
    width: 28px;
    height: 28px;
}

/* ---- Survey Fill Split Layout ---- */
.legacy-ui .survey-fill-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 400px;
}

@media (max-width: 991px) {
    .legacy-ui .survey-fill-split {
        grid-template-columns: 1fr;
    }
}

.legacy-ui .survey-fill-left {
    min-height: 350px;
}

.legacy-ui .survey-fill-left .card {
    height: 100%;
}

.legacy-ui .survey-fill-left .card-body {
    overflow-y: auto;
    max-height: calc(100vh - 320px);
}

.legacy-ui .survey-fill-right .accordion-body {
    max-height: 280px;
    overflow-y: auto;
}

.legacy-ui .supplier-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legacy-ui .supplier-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}

.legacy-ui .supplier-list-item:hover {
    background: var(--gray-100);
}

.legacy-ui .supplier-list-item.selected {
    background: rgba(12, 74, 110, .08);
}

.legacy-ui .supplier-list-item .form-check-input {
    flex-shrink: 0;
    margin-top: 0;
}

.legacy-ui .supplier-list-item .supplier-list-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
}

.legacy-ui .supplier-list-item .badge-sm {
    font-size: 10px;
}

.legacy-ui .survey-accordion .accordion-button {
    font-size: 14px;
    padding: 12px 16px;
}

.legacy-ui .survey-accordion .accordion-button:not(.collapsed) {
    background: rgba(12, 74, 110, .06);
}

.legacy-ui .survey-accordion .accordion-body {
    padding: 16px;
}

.legacy-ui .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.legacy-ui .stat-icon.blue {
    background: rgba(14, 165, 233, .12);
    color: #0ea5e9;
}

.legacy-ui .stat-icon.green {
    background: rgba(16, 185, 129, .12);
    color: #10b981;
}

.legacy-ui .stat-icon.amber {
    background: rgba(245, 158, 11, .12);
    color: #f59e0b;
}

.legacy-ui .stat-icon.red {
    background: rgba(239, 68, 68, .12);
    color: #ef4444;
}

.legacy-ui .stat-icon.purple {
    background: rgba(139, 92, 246, .12);
    color: #8b5cf6;
}

.legacy-ui .stat-icon.navy {
    background: rgba(12, 74, 110, .12);
    color: var(--primary);
}

.legacy-ui .stat-icon svg {
    flex-shrink: 0;
}

.legacy-ui .quick-access-icon {
    display: inline-flex;
    color: var(--gray-600);
}

.legacy-ui .quick-access-disabled .quick-access-icon {
    color: var(--gray-400);
}

.legacy-ui .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.legacy-ui .stat-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ---- Tables ---- */
.legacy-ui .table-container {
    overflow-x: auto;
}

.legacy-ui table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.legacy-ui thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.legacy-ui tbody td {
    padding: 2px 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.legacy-ui tbody tr:last-child td {
    border-bottom: none;
}

.legacy-ui tbody tr:hover {
    background: var(--gray-50);
}

/* ---- Badges ---- */
.legacy-ui .badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.legacy-ui .badge-success {
    background: rgba(16, 185, 129, .12);
    color: #047857;
}

.legacy-ui .badge-warning {
    background: rgba(245, 158, 11, .12);
    color: #92400e;
}

.legacy-ui .badge-danger {
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
}

.legacy-ui .badge-info {
    background: rgba(59, 130, 246, .12);
    color: #1d4ed8;
}

.legacy-ui .badge-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
}

.legacy-ui .badge-navy {
    background: rgba(12, 74, 110, .12);
    color: var(--primary);
}

.legacy-ui .badge-period {
    background: var(--gray-100);
    color: var(--gray-800);
}

.legacy-ui .survey-period-cell {
    color: var(--gray-800);
}

.legacy-ui .survey-period-label {
    color: var(--gray-700);
    margin-left: 6px;
    font-size: 13px;
}

/* ---- Stars ---- */
.legacy-ui .stars {
    display: inline-flex;
    gap: 2px;
    font-size: 14px;
}

.legacy-ui .star-filled {
    color: #f59e0b;
}

.legacy-ui .star-empty {
    color: var(--gray-300);
}

/* ---- Forms ---- */
.legacy-ui .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.legacy-ui .form-row.three {
    grid-template-columns: 1fr 1fr 1fr;
}

.legacy-ui .form-full {
    grid-column: 1 / -1;
}

.legacy-ui select.form-control {
    cursor: pointer;
}

.legacy-ui textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.legacy-ui .form-help {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ---- Alert ---- */
.legacy-ui .alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legacy-ui .alert-success {
    background: rgba(16, 185, 129, .1);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.legacy-ui .alert-danger {
    background: rgba(239, 68, 68, .1);
    color: #7f1d1d;
    border-left: 4px solid var(--danger);
}

.legacy-ui .alert-warning {
    background: rgba(245, 158, 11, .1);
    color: #78350f;
    border-left: 4px solid var(--warning);
}

.legacy-ui .alert-info {
    background: rgba(59, 130, 246, .1);
    color: #1e3a8a;
    border-left: 4px solid var(--info);
}

/* ---- Search Bar ---- */
.legacy-ui .search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.legacy-ui .search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.legacy-ui .search-input-wrap input {
    padding-left: 38px;
}

.legacy-ui .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

/* ---- Pagination ---- */
.legacy-ui .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
}

.legacy-ui .pagination a,
.legacy-ui .pagination span {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    transition: all .15s;
}

.legacy-ui .pagination a:hover {
    background: var(--gray-100);
}

.legacy-ui .pagination .active span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ---- Calculator ---- */
.legacy-ui .calc-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.legacy-ui .calc-result {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--gray-200);
}

.legacy-ui .calc-total {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.legacy-ui .calc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.legacy-ui .calc-line:last-child {
    border-bottom: none;
}

.legacy-ui .calc-line .label {
    color: var(--gray-600);
}

.legacy-ui .calc-line .amount {
    font-weight: 600;
}

.legacy-ui .calc-grand {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

/* ---- Vehicle Mix Sliders ---- */
.legacy-ui .mix-sliders {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.legacy-ui .mix-row {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    align-items: center;
    gap: 10px;
}

.legacy-ui .mix-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.legacy-ui input[type=range] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--primary);
}

.legacy-ui .mix-pct {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

/* ---- Category Pills ---- */
.legacy-ui .category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.legacy-ui .category-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    background: transparent;
    font-family: inherit;
}

.legacy-ui .category-pill:hover,
.legacy-ui .category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ---- Category Color Coding ---- */
.legacy-ui .cat-teknik_dekor {
    color: #7c3aed;
}

.legacy-ui .cat-transfer {
    color: #0ea5e9;
}

.legacy-ui .cat-dijital {
    color: #10b981;
}

.legacy-ui .cat-dil_baski {
    color: #f59e0b;
}

.legacy-ui .cat-tanitim_ik {
    color: #ef4444;
}

.legacy-ui .cat-restoran {
    color: #ec4899;
}

/* ---- Score Bars ---- */
.legacy-ui .score-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.legacy-ui .score-bar-track {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.legacy-ui .score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 3px;
    transition: width .6s ease;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .legacy-ui .main-content {
        margin-left: 0;
    }

    .legacy-ui .form-row {
        grid-template-columns: 1fr;
    }

    .legacy-ui .form-row.three {
        grid-template-columns: 1fr;
    }

    .legacy-ui .calc-container {
        grid-template-columns: 1fr;
    }

    .legacy-ui .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .legacy-ui .top-header {
        padding: 0 16px;
    }

    .legacy-ui .page-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .legacy-ui .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Utilities ---- */
.legacy-ui .flex {
    display: flex;
}

.legacy-ui .flex-center {
    display: flex;
    align-items: center;
}

.legacy-ui .gap-1 {
    gap: 4px;
}

.legacy-ui .gap-2 {
    gap: 8px;
}

.legacy-ui .gap-3 {
    gap: 12px;
}

.legacy-ui .mt-1 {
    margin-top: 4px;
}

.legacy-ui .mt-2 {
    margin-top: 8px;
}

.legacy-ui .mt-3 {
    margin-top: 12px;
}

.legacy-ui .mb-1 {
    margin-bottom: 4px;
}

.legacy-ui .mb-2 {
    margin-bottom: 8px;
}

.legacy-ui .mb-3 {
    margin-bottom: 12px;
}

.legacy-ui .mb-4 {
    margin-bottom: 16px;
}

.legacy-ui .mb-6 {
    margin-bottom: 24px;
}

.legacy-ui .text-sm {
    font-size: 13px;
}

.legacy-ui .text-xs {
    font-size: 11px;
}

.legacy-ui .text-gray {
    color: var(--gray-500);
}

.legacy-ui .text-right {
    text-align: right;
}

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

.legacy-ui .w-full {
    width: 100%;
}

.legacy-ui .hidden {
    display: none !important;
}

.legacy-ui .ml-auto {
    margin-left: auto !important;
}