﻿:root {
    --bg: #07111f;
    --panel: rgba(15, 27, 48, .96);
    --panel2: rgba(22, 39, 68, .96);
    --border: rgba(255,255,255,.10);
    --text: #eef5ff;
    --muted: #9cafc9;
    --primary: #3b82f6;
    --primary2: #2563eb;
    --success: #16a34a;
    --danger: #dc2626;
    --warn: #f59e0b;
    --purple: #8b5cf6;
    --blue: #06b6d4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, #123464 0, #07111f 42%, #040812 100%);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hidden {
    display: none !important;
}

.mobile-app {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 12px;
}

.panel, .scan-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
    margin-bottom: 12px;
}

.login-panel {
    margin-top: 28px;
}

.brand-block {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    box-shadow: 0 10px 26px rgba(59,130,246,.35);
}

h1, h2, p {
    margin: 0;
}

.brand-block h1 {
    font-size: 1.25rem;
}

.brand-block p {
    color: var(--muted);
    margin-top: 4px;
    font-size: .92rem;
}

.field-label {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin: 10px 0 6px;
}

.input {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 13px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text);
    outline: none;
    font-size: 1rem;
}

    .input:focus {
        border-color: rgba(59,130,246,.85);
        box-shadow: 0 0 0 3px rgba(59,130,246,.20);
    }

select.input option {
    color: #111;
}

.btn {
    min-height: 44px;
    border: 0;
    border-radius: 13px;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: transform .08s ease, opacity .12s ease;
}

    .btn:active {
        transform: scale(.98);
    }

    .btn.full {
        width: 100%;
        margin-top: 12px;
    }

    .btn.primary {
        background: linear-gradient(135deg, var(--primary), var(--primary2));
    }

    .btn.secondary {
        background: rgba(59,130,246,.20);
        border: 1px solid rgba(59,130,246,.42);
    }

    .btn.ghost {
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.14);
    }

    .btn.danger {
        background: rgba(220,38,38,.22);
        border: 1px solid rgba(220,38,38,.45);
    }

.message {
    margin-top: 10px;
    color: var(--muted);
    font-size: .92rem;
}

    .message.error {
        color: #fecaca;
    }

    .message.ok {
        color: #bbf7d0;
    }

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -12px -12px 12px;
    padding: 12px;
    backdrop-filter: blur(12px);
    background: rgba(7,17,31,.88);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.small-muted {
    color: var(--muted);
    font-size: .75rem;
}

.net-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(22,163,74,.20);
    color: #bbf7d0;
    font-weight: 800;
    font-size: .82rem;
}

    .net-pill.offline {
        background: rgba(220,38,38,.22);
        color: #fecaca;
    }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.download-info {
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: var(--muted);
    font-size: .86rem;
}

.camera {
    width: 100%;
    height: min(52vw, 280px);
    min-height: 210px;
    object-fit: cover;
    border-radius: 16px;
    background: #000;
    border: 1px solid var(--border);
}

.scan-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.manual-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    margin-top: 10px;
}

.scan-message {
    margin-top: 10px;
    color: #dbeafe;
    font-weight: 700;
    min-height: 24px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.summary-card {
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 10px 8px;
    text-align: center;
}

    .summary-card span {
        display: block;
        color: var(--muted);
        font-size: .72rem;
    }

    .summary-card strong {
        display: block;
        font-size: 1.25rem;
        margin-top: 2px;
    }

    .summary-card.success strong {
        color: #86efac;
    }

    .summary-card.danger strong {
        color: #fca5a5;
    }

    .summary-card.warn strong {
        color: #fcd34d;
    }

.tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.tab {
    min-height: 38px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.07);
    color: var(--muted);
    border-radius: 12px;
    font-weight: 800;
}

    .tab.active {
        background: rgba(59,130,246,.24);
        color: var(--text);
        border-color: rgba(59,130,246,.55);
    }

.search {
    margin-bottom: 10px;
}

.mobile-list {
    display: grid;
    gap: 9px;
}

.item-card {
    border-radius: 15px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.06);
    padding: 11px;
}

    .item-card.success {
        border-color: rgba(22,163,74,.55);
        background: rgba(22,163,74,.13);
    }

    .item-card.partial {
        border-color: rgba(245,158,11,.62);
        background: rgba(245,158,11,.14);
    }

    .item-card.danger {
        border-color: rgba(220,38,38,.55);
        background: rgba(220,38,38,.13);
    }

    .item-card.extra {
        border-color: rgba(6,182,212,.55);
        background: rgba(6,182,212,.12);
    }

    .item-card.repeat {
        border-color: rgba(139,92,246,.60);
        background: rgba(139,92,246,.13);
    }

.item-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 7px;
}

    .item-title strong {
        font-size: .94rem;
        word-break: break-word;
    }

.badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    background: rgba(255,255,255,.10);
    white-space: nowrap;
}

.item-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
    color: var(--muted);
    font-size: .82rem;
}

    .item-meta span {
        min-width: 0;
        word-break: break-word;
    }

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.62);
    display: grid;
    place-items: center;
    padding: 16px;
}

.modal-card {
    width: min(520px, 100%);
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #0b1728;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
    padding: 18px;
}

    .modal-card h2 {
        margin-bottom: 8px;
    }

    .modal-card p {
        color: var(--muted);
        line-height: 1.45;
    }

.modal-buttons {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.redirect-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.redirect-card {
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
}

.spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.16);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-title h1 {
    font-size: 1.55rem;
    margin: 0;
}

.admin-title p {
    color: var(--muted);
    margin-top: 4px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 12px;
    align-items: start;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th, .admin-table td {
        border-bottom: 1px solid var(--border);
        padding: 9px 8px;
        text-align: left;
        font-size: .9rem;
    }

    .admin-table th {
        color: var(--muted);
        font-weight: 800;
    }

.admin-row {
    cursor: pointer;
}

    .admin-row:hover {
        background: rgba(255,255,255,.06);
    }

.admin-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.admin-list {
    display: grid;
    gap: 8px;
}

.copy-btn {
    padding: 7px 9px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.08);
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 720px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .manual-row {
        grid-template-columns: 1fr;
    }

    .item-meta {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Mobilde uzun basma ile silinebilen satırlar */
.deletable-row {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    position: relative;
}

    .deletable-row.long-pressing {
        outline: 2px solid rgba(255, 90, 90, 0.85);
        transform: scale(0.99);
        opacity: 0.85;
    }

.delete-hint {
    font-size: 11px;
    opacity: .65;
    margin-top: 4px;
}

@media print {
    body {
        background: white;
        color: black;
    }

    .topbar, .sticky-controls, .scan-card, .tabs, .finish-panel, .search, .btn {
        display: none !important;
    }

    .panel, .item-card {
        box-shadow: none;
        border-color: #ddd;
        background: white;
        color: black;
    }
}
