/* TamEticaret design tokens and primitive classes.
   Plain CSS: no preprocessor, no remote font or icon, no build step.
   Linking this file does not restyle a page until an element uses a .te-* class
   or a later card maps the custom properties. Dark colours apply only when
   the document sets data-te-scheme="dark". */

:root {
    --te-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    --te-font-mono: ui-monospace, "Segoe UI Mono", "Cascadia Mono", monospace;
    --te-text-xs: 0.75rem;
    --te-text-sm: 0.875rem;
    --te-text-md: 1rem;
    --te-text-lg: 1.25rem;
    --te-text-xl: 1.5rem;
    --te-text-2xl: 2rem;
    --te-leading: 1.5;
    --te-leading-tight: 1.25;
    --te-space-1: 0.25rem;
    --te-space-2: 0.5rem;
    --te-space-3: 0.75rem;
    --te-space-4: 1rem;
    --te-space-5: 1.5rem;
    --te-space-6: 2rem;
    --te-space-8: 3rem;
    --te-radius-sm: 6px;
    --te-radius-md: 10px;
    --te-radius-lg: 16px;
    --te-radius-full: 999px;
    --te-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
    --te-shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
    --te-color-bg: #f5f7fb;
    --te-color-surface: #ffffff;
    --te-color-ink: #111827;
    --te-color-muted: #5b6474;
    --te-color-line: #e4e8f0;
    --te-color-accent: #1d64d8;
    --te-color-accent-hover: #1853b4;
    --te-color-accent-ink: #ffffff;
    --te-color-on-accent: #ffffff;
    --te-color-nav: #141a2e;
    --te-color-nav-ink: #dfe6f5;
    --te-color-lime: #bdee23;
    --te-color-violet: #7840eb;
    --te-color-danger: #b42318;
    --te-color-danger-bg: #fef3f2;
    --te-color-success: #067647;
    --te-color-success-bg: #ecfdf3;
    --te-color-warning: #b54708;
    --te-color-warning-bg: #fffaeb;
    --te-color-focus: #7840eb;
    --te-z-nav: 20;
    --te-z-toast: 40;
    --te-z-modal: 50;
    --te-wrap: 72rem;
    --te-sidebar: 15rem;
}

[data-te-scheme="dark"] {
    --te-color-bg: #0b1222;
    --te-color-surface: #111a2e;
    --te-color-ink: #e8edf7;
    --te-color-muted: #9aa6bd;
    --te-color-line: #22304a;
    --te-color-accent: #2f7ef7;
    --te-color-accent-hover: #5b9bff;
    --te-color-on-accent: #0b1222;
    --te-color-nav: #070d1a;
    --te-color-nav-ink: #e8edf7;
    --te-color-danger: #f97066;
    --te-color-danger-bg: #3a1512;
    --te-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --te-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.te-skip {
    position: absolute;
    left: var(--te-space-3);
    top: -100%;
    z-index: var(--te-z-modal);
    padding: var(--te-space-2) var(--te-space-3);
    background: var(--te-color-surface);
    color: var(--te-color-ink);
    border-radius: var(--te-radius-sm);
}

.te-skip:focus { top: var(--te-space-3); }

.te-btn,
.te-input,
.te-card,
.te-table,
.te-toast,
.te-modal {
    font: inherit;
}

.te-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--te-space-2);
    min-height: 2.5rem;
    padding: var(--te-space-2) var(--te-space-4);
    border: 1px solid transparent;
    border-radius: var(--te-radius-md);
    background: var(--te-color-accent);
    color: var(--te-color-on-accent);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.te-btn:hover { background: var(--te-color-accent-hover); }

.te-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.te-btn-ghost {
    background: transparent;
    color: var(--te-color-ink);
    border-color: var(--te-color-line);
}

.te-btn-ghost:hover { background: var(--te-color-bg); }

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

.te-btn:focus-visible,
.te-input:focus-visible,
.te-sidebar a:focus-visible,
.te-navbar a:focus-visible {
    outline: 2px solid var(--te-color-focus);
    outline-offset: 2px;
}

.te-field { display: block; margin: 0 0 var(--te-space-3); color: var(--te-color-muted); font-size: var(--te-text-sm); }

.te-input {
    display: block;
    width: 100%;
    margin-top: var(--te-space-1);
    padding: var(--te-space-2) var(--te-space-3);
    color: var(--te-color-ink);
    background: var(--te-color-surface);
    border: 1px solid var(--te-color-line);
    border-radius: var(--te-radius-md);
}

.te-input[aria-invalid="true"] { border-color: var(--te-color-danger); }

.te-card {
    background: var(--te-color-surface);
    color: var(--te-color-ink);
    border: 1px solid var(--te-color-line);
    border-radius: var(--te-radius-lg);
    box-shadow: var(--te-shadow-sm);
    padding: var(--te-space-4);
}

.te-table { width: 100%; border-collapse: collapse; background: var(--te-color-surface); }

.te-table th,
.te-table td {
    padding: var(--te-space-3);
    border-bottom: 1px solid var(--te-color-line);
    text-align: left;
    vertical-align: top;
}

.te-table th { color: var(--te-color-muted); font-size: var(--te-text-sm); font-weight: 600; }

.te-empty {
    padding: var(--te-space-6) var(--te-space-4);
    text-align: center;
    color: var(--te-color-muted);
    border: 1px dashed var(--te-color-line);
    border-radius: var(--te-radius-lg);
}

.te-empty strong { display: block; margin-bottom: var(--te-space-2); color: var(--te-color-ink); font-size: var(--te-text-lg); }

.te-breadcrumb { display: flex; flex-wrap: wrap; gap: var(--te-space-2); margin: 0 0 var(--te-space-4); padding: 0; list-style: none; font-size: var(--te-text-sm); }

.te-breadcrumb a { color: var(--te-color-accent); }

.te-navbar,
.te-sidebar {
    background: var(--te-color-nav);
    color: var(--te-color-nav-ink);
}

.te-navbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--te-space-3); padding: var(--te-space-3) var(--te-space-4); }

.te-sidebar { width: var(--te-sidebar); min-height: 100%; padding: var(--te-space-4); }

.te-sidebar a,
.te-navbar a { color: inherit; text-decoration: none; }

.te-sidebar a { display: block; padding: var(--te-space-2) var(--te-space-3); border-radius: var(--te-radius-sm); }

.te-sidebar a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }

.te-toast {
    position: fixed;
    right: var(--te-space-4);
    bottom: var(--te-space-4);
    z-index: var(--te-z-toast);
    max-width: 22rem;
    padding: var(--te-space-3) var(--te-space-4);
    background: var(--te-color-surface);
    color: var(--te-color-ink);
    border: 1px solid var(--te-color-line);
    border-radius: var(--te-radius-md);
    box-shadow: var(--te-shadow-md);
}

.te-modal {
    position: fixed;
    inset: 0;
    z-index: var(--te-z-modal);
    display: grid;
    place-items: center;
    padding: var(--te-space-4);
    background: rgba(17, 24, 39, 0.48);
}

.te-modal > .te-card { width: min(32rem, 100%); box-shadow: var(--te-shadow-md); }

@media (prefers-reduced-motion: reduce) {
    .te-btn { transition: none; }
}

@media (max-width: 720px) {
    .te-sidebar { width: auto; }
    .te-btn { min-height: 2.75rem; }
}
