@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: hsl(210, 100%, 50%);
    --primary-bg: hsla(210, 100%, 50%, 0.1);
    --secondary: hsl(260, 100%, 65%);
    --accent: hsl(150, 100%, 40%);
    --background: #0a0c10;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f0f0f0;
    --text-muted: #a0a0a0;
    --radius: 16px;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    background-image: 
        radial-gradient(at 0% 0%, hsla(210, 30%, 15%, 1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(210, 40%, 10%, 1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* Glassmorphism utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

header {
    padding: 24px;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

main {
    padding: 24px 16px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

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

.section {
    margin-bottom: 24px;
    padding: 20px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Input Styles */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

/* List/Search Results */
.search-results {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    display: none;
}

.search-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

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

.search-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-item .name {
    font-weight: 500;
    display: block;
}

.search-item .code {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Basket/Items */
.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.item-info {
    flex: 1;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-control {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
}

.qty-val {
    padding: 0 8px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    width: 100%;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

/* Status Messages */
.loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive fixes */
@media (max-width: 480px) {
    header h1 { font-size: 1.25rem; }
    .section { padding: 16px; }
}

/* Form grid - 2 kolonlu düzen */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

/* Alan etiketi */
.field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.input-group .field-label + input,
.input-group .field-label + select {
    padding: 10px 12px;
    font-size: 0.9rem;
}

/* Select dropdown */
select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

select option {
    background: #1a1d24;
    color: var(--text);
}

/* Bölüm ikonları renkleri */
#tasiyici-section .section-title { color: hsl(45, 100%, 65%); }
#teslimat-section .section-title { color: hsl(150, 100%, 45%); }

@media (max-width: 380px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid .full-width {
        grid-column: 1;
    }
}

/* ===== BOTTOM NAVIGATION BAR ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 1024px) {
    .bottom-nav {
        top: 50%;
        left: 24px;
        bottom: auto;
        width: 100px;
        height: auto;
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
        border: 1px solid var(--border);
        border-radius: 30px;
        background: rgba(10, 12, 16, 0.9);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        transform: translateY(-50%);
    }

    .nav-item {
        flex: none;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        padding: 15px 4px;
        gap: 6px;
    }

    .nav-item i {
        margin-bottom: 0;
        width: 24px;
        text-align: center;
    }

    .nav-item span {
        font-size: 0.6rem;
        text-align: center;
        max-width: 80px;
    }

    .nav-item::before {
        top: 15%;
        left: 0;
        bottom: auto;
        width: 3px;
        height: 70%;
        transform: scaleY(0);
        transform-origin: center;
        border-radius: 0 4px 4px 0;
    }

    .nav-item.active::before {
        transform: scaleY(1);
    }

    /* Adjust main content for floating sidebar */
    main, header {
        margin-left: 140px !important;
        max-width: calc(100% - 180px);
    }

    /* Update other fixed elements if necessary */
    #toast {
        left: calc(50% + 50px);
    }

    .nav-item:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text);
    }

    .nav-item.active {
        background: var(--primary-bg);
        color: var(--primary);
    }

    .nav-item.active i {
        transform: scale(1.1);
    }
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
    text-decoration: none;
    border: none;
    background: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0 0 4px 4px;
    transition: transform 0.3s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-item.active i {
    transform: scale(1.15);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

    .nav-item.active::before {
        transform: scaleY(1);
    }

.nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ===== PAGE TRANSITIONS ===== */
.page {
    display: none;
    animation: pageIn 0.35s ease-out;
}

.page.active {
    display: block;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== WAYBILL LIST PAGE ===== */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-bar input[type="text"],
.filter-bar input[type="date"] {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    font-size: 0.85rem;
}

.filter-bar input[type="date"] {
    flex: 0 1 140px;
}

.filter-bar .filter-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.85rem;
}

.filter-bar .filter-btn:active {
    transform: scale(0.96);
}

/* Waybill Cards */
.waybill-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.waybill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.waybill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.waybill-card:hover::before {
    opacity: 1;
}

.waybill-card:active {
    transform: translateY(0);
}

.wb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.wb-evrak {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.wb-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.wb-cari {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.wb-cari-code {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.wb-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wb-total {
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, hsl(150, 100%, 45%), hsl(150, 80%, 60%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wb-items-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wb-items-count i {
    font-size: 0.65rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 0;
}

.pagination button {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.pagination button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination .page-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0 8px;
    min-width: 80px;
    text-align: center;
}

/* List loading skeleton */
.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}

.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.long { width: 90%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Results Count Badge */
.results-badge {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    display: inline-block;
}

.results-bar {
    text-align: center;
    margin-bottom: 4px;
}

/* ===== WAYBILL DETAIL MODAL ===== */
.detail-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

.detail-modal-overlay.active {
    display: flex;
}

.detail-modal {
    width: 100%;
    max-width: 560px;
    background: linear-gradient(165deg, rgba(20, 22, 30, 0.97) 0%, rgba(15, 17, 25, 0.99) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0;
    margin: 20px auto;
    overflow: hidden;
    animation: modalSlideIn 0.35s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.detail-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-modal-header h2 i {
    color: var(--primary);
}

.detail-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.detail-close-btn:hover {
    background: rgba(255, 70, 70, 0.15);
    border-color: rgba(255, 70, 70, 0.3);
    color: #ff4444;
}

.detail-modal-body {
    padding: 24px;
}

/* Detail Info Grid */
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.detail-field {
    padding: 0;
}

.detail-field.full-span {
    grid-column: 1 / -1;
}

.detail-field-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.detail-field-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

.detail-field-value.highlight {
    color: var(--primary);
    font-weight: 700;
}

.detail-field-value.green {
    background: linear-gradient(135deg, hsl(150, 100%, 45%), hsl(150, 80%, 60%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Detail Section Title */
.detail-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    padding: 12px 0 8px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-title i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Detail Items Table */
/* ===== AUTH SCREEN STYLES ===== */
.auth-full-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 30px;
}

.auth-logo i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.auth-logo h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.auth-logo p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-view {
    display: none;
    animation: slideUp 0.4s ease;
}

.auth-view.active {
    display: block;
}

.view-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

.firm-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.firm-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.firm-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateX(4px);
}

.firm-card i {
    font-size: 1.2rem;
    color: var(--primary);
}

.firm-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.error-text {
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 16px;
    padding: 8px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
}

/* ===== ADMIN PANEL STYLES ===== */
.admin-table-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: auto;
    max-height: 50vh;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.admin-table input {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.admin-table select {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
    width: auto;
}

.firm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.firm-tag {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.detail-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin-top: 8px;
}

.detail-items-table th {
    text-align: left;
    padding: 8px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.detail-items-table td {
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}

.detail-items-table tr:last-child td {
    border-bottom: none;
}

.detail-items-table .item-name {
    font-weight: 500;
    line-height: 1.3;
}

.detail-items-table .item-code {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.detail-items-table .text-right {
    text-align: right;
}

/* Detail Extra Sections */
.detail-extra-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
}

.detail-extra-card .detail-info-grid {
    margin-bottom: 0;
}

/* Loading State in Detail */
.detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    color: var(--text-muted);
}

.detail-loading .spinner {
    width: 32px;
    height: 32px;
}

/* ===== BARCODE SCANNER ===== */
.barcode-btn {
    width: auto !important;
    padding: 10px 14px !important;
    font-size: 1.1rem !important;
    border-color: hsl(30, 100%, 55%);
    color: hsl(30, 100%, 55%);
    border-radius: 12px;
    transition: all 0.3s;
}

.barcode-btn:active {
    transform: scale(0.94);
    background: hsla(30, 100%, 55%, 0.15);
}

#barcode-reader {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

#barcode-reader video {
    border-radius: 12px;
}

/* Override html5-qrcode defaults */
#barcode-reader__scan_region {
    min-height: 250px;
}

#barcode-reader__dashboard_section_csr button {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

#barcode-reader__dashboard_section_csr select {
    background: rgba(255,255,255,0.05) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
}

.barcode-found-card {
    background: rgba(0, 200, 100, 0.08);
    border: 1px solid rgba(0, 200, 100, 0.25);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideUp 0.3s ease-out;
}

.barcode-found-card .product-info .product-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.barcode-found-card .product-info .product-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.default-carrier-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.default-carrier-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.default-carrier-item .unvan {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.default-carrier-item .details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.input-grid {
    display: grid;
    gap: 12px;
}

.item-edit-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.item-edit-btn:hover {
    background: rgba(0, 183, 255, 0.1);
}
/* ===== ADMIN PAGE STYLES ===== */

/* Admin page header */
#page-admin .section {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

/* Stats bar */
.admin-stats-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.admin-stat-chip i {
    font-size: 0.7rem;
}

.admin-stat-chip .stat-val {
    color: var(--primary);
}

/* User card */
.admin-user-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.admin-user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px 0 0 4px;
}

.admin-user-card:hover {
    border-color: rgba(0, 102, 255, 0.25);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.admin-user-card:hover::before {
    opacity: 1;
}

.admin-user-card.expired {
    border-color: rgba(255, 80, 80, 0.2);
    opacity: 0.7;
}

.admin-user-card.expired::before {
    background: linear-gradient(180deg, #ff4444, #ff8888);
    opacity: 1;
}

/* User card header */
.admin-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.admin-user-email {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.admin-user-role {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.admin-user-role.admin {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(100, 50, 255, 0.15));
    color: hsl(220, 100%, 75%);
    border: 1px solid rgba(0, 102, 255, 0.2);
}

/* User detail grid */
.admin-user-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-detail-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.admin-detail-value {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
}

.admin-detail-value.warning {
    color: #ff8888;
}

.admin-detail-value.success {
    color: hsl(150, 80%, 55%);
}

/* Firm tags */
.admin-firm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.admin-firm-tag {
    font-size: 0.72rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(100, 50, 255, 0.05));
    color: hsl(220, 80%, 75%);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 102, 255, 0.12);
    font-weight: 500;
}

/* User card actions */
.admin-user-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-user-actions .btn {
    border-radius: 10px;
    font-size: 0.78rem;
    padding: 7px 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    gap: 6px;
}

.admin-user-actions .btn:hover {
    transform: translateY(-1px);
}

.admin-action-edit {
    background: rgba(0, 102, 255, 0.1) !important;
    border-color: rgba(0, 102, 255, 0.2) !important;
    color: hsl(220, 100%, 75%) !important;
}

.admin-action-edit:hover {
    background: rgba(0, 102, 255, 0.18) !important;
}

.admin-action-firms {
    background: rgba(100, 50, 255, 0.1) !important;
    border-color: rgba(100, 50, 255, 0.2) !important;
    color: hsl(260, 100%, 80%) !important;
}

.admin-action-firms:hover {
    background: rgba(100, 50, 255, 0.18) !important;
}

.admin-action-delete {
    background: rgba(255, 70, 70, 0.08) !important;
    border-color: rgba(255, 70, 70, 0.2) !important;
    color: #ff6666 !important;
}

.admin-action-delete:hover {
    background: rgba(255, 70, 70, 0.15) !important;
}

/* User Edit Modal (inline) */
.admin-user-edit-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    overflow-y: auto;
}

.admin-user-edit-overlay.active {
    display: flex;
}

.admin-user-edit-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(165deg, rgba(20, 22, 30, 0.98) 0%, rgba(12, 14, 20, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    animation: modalSlideIn 0.35s ease-out;
}

.admin-edit-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.admin-edit-title i {
    color: var(--primary);
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admin-edit-grid .full-width {
    grid-column: 1 / -1;
}

/* Firm Edit Sub-view */
#admin-firm-edit-container {
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--radius);
}

.firm-edit-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
    transition: border-color 0.25s ease;
}

.firm-edit-item:hover {
    border-color: rgba(100, 50, 255, 0.2);
}

.firm-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .admin-user-details {
        grid-template-columns: 1fr;
    }
    .admin-edit-grid {
        grid-template-columns: 1fr;
    }
    .firm-edit-grid {
        grid-template-columns: 1fr;
    }
    .admin-user-actions {
        flex-wrap: wrap;
    }
}


/* Profile Selection Styles */
.profile-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.profile-card:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.profile-card i {
    font-size: 2rem;
    color: var(--primary);
}
.profile-card .profile-name {
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-word;
}
.profile-card .profile-type {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Permission Toggle Styles */
.perm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary);
}
input:checked + .slider:before {
    transform: translateX(22px);
}

/* Subuser Card Styles */
.subuser-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.subuser-info h4 {
    margin: 0;
    font-size: 1rem;
}
.subuser-info p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.subuser-actions {
    display: flex;
    gap: 10px;
}

/* Order Type Selector */
.order-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.order-type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-type-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

.order-type-card .check-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    opacity: 0.3;
}

.order-type-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.order-type-card.active {
    background: var(--primary-bg);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.order-type-card.active span {
    color: var(--primary);
}

.order-type-card.active .check-icon {
    color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .order-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CARİ BAKİYE SAYFASI ===== */

/* Bakiye Tip Filtre Butonları */
.bakiye-type-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bakiye-type-btn {
    flex: 1;
    min-width: 90px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.bakiye-type-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.bakiye-type-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.bakiye-type-btn.active[data-filter="B"] {
    background: linear-gradient(135deg, hsl(0, 80%, 55%), hsl(15, 90%, 50%));
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.bakiye-type-btn.active[data-filter="A"] {
    background: linear-gradient(135deg, hsl(150, 80%, 40%), hsl(170, 80%, 45%));
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Bakiye Özet Kartları */
.bakiye-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.bakiye-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bakiye-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

.bakiye-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.bakiye-summary-card.bakiye-borc::before {
    background: linear-gradient(90deg, hsl(0, 80%, 55%), hsl(15, 90%, 50%));
}
.bakiye-summary-card.bakiye-alacak::before {
    background: linear-gradient(90deg, hsl(150, 80%, 40%), hsl(170, 80%, 45%));
}
.bakiye-summary-card.bakiye-net::before {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.bakiye-summary-card.bakiye-count::before {
    background: linear-gradient(90deg, hsl(45, 100%, 50%), hsl(30, 100%, 55%));
}

.bakiye-summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bakiye-summary-card.bakiye-borc .bakiye-summary-label i { color: hsl(0, 80%, 60%); }
.bakiye-summary-card.bakiye-alacak .bakiye-summary-label i { color: hsl(150, 80%, 50%); }
.bakiye-summary-card.bakiye-net .bakiye-summary-label i { color: var(--primary); }
.bakiye-summary-card.bakiye-count .bakiye-summary-label i { color: hsl(45, 100%, 55%); }

.bakiye-summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

@media (max-width: 400px) {
    .bakiye-summary {
        grid-template-columns: 1fr;
    }
    .bakiye-summary-value {
        font-size: 0.95rem;
    }
}

/* Bakiye Tablosu - Kart Stili */
.bakiye-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.bakiye-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    transition: opacity 0.25s ease;
}

.bakiye-card.tip-B::before {
    background: linear-gradient(180deg, hsl(0, 80%, 55%), hsl(15, 90%, 50%));
    opacity: 1;
}

.bakiye-card.tip-A::before {
    background: linear-gradient(180deg, hsl(150, 80%, 40%), hsl(170, 80%, 45%));
    opacity: 1;
}

.bakiye-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.bakiye-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bakiye-cari-name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
    flex: 1;
    padding-right: 10px;
}

.bakiye-cari-code {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 500;
}

.bakiye-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.bakiye-field {
    text-align: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.bakiye-field-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bakiye-field-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.bakiye-field-value.borc-val {
    color: hsl(0, 80%, 60%);
}

.bakiye-field-value.alacak-val {
    color: hsl(150, 80%, 50%);
}

.bakiye-field-value.bakiye-val-B {
    color: hsl(0, 80%, 60%);
}

.bakiye-field-value.bakiye-val-A {
    color: hsl(150, 80%, 50%);
}

.bakiye-tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.bakiye-tip-badge.tip-B {
    background: rgba(239, 68, 68, 0.15);
    color: hsl(0, 80%, 60%);
}

.bakiye-tip-badge.tip-A {
    background: rgba(16, 185, 129, 0.15);
    color: hsl(150, 80%, 50%);
}

/* Bakiye loading */
.bakiye-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.bakiye-loading .spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
}

/* ===== STOK BAKİYE MODÜLÜ ===== */

/* Stok Summary Grid */
.stok-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.stok-summary-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stok-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.stok-summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stok-summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* Stok Summary Colors */
.stok-devir {
    border-left: 3px solid hsl(220, 80%, 60%);
}
.stok-devir .stok-summary-label i { color: hsl(220, 80%, 60%); }
.stok-devir .stok-summary-value { color: hsl(220, 80%, 70%); }

.stok-giris {
    border-left: 3px solid hsl(150, 80%, 50%);
}
.stok-giris .stok-summary-label i { color: hsl(150, 80%, 50%); }
.stok-giris .stok-summary-value { color: hsl(150, 80%, 60%); }

.stok-cikis {
    border-left: 3px solid hsl(0, 80%, 60%);
}
.stok-cikis .stok-summary-label i { color: hsl(0, 80%, 60%); }
.stok-cikis .stok-summary-value { color: hsl(0, 80%, 65%); }

.stok-gercek {
    border-left: 3px solid hsl(45, 90%, 55%);
}
.stok-gercek .stok-summary-label i { color: hsl(45, 90%, 55%); }
.stok-gercek .stok-summary-value { color: hsl(45, 90%, 65%); }

.stok-fiili {
    border-left: 3px solid hsl(280, 80%, 65%);
}
.stok-fiili .stok-summary-label i { color: hsl(280, 80%, 65%); }
.stok-fiili .stok-summary-value { color: hsl(280, 80%, 72%); }

.stok-count {
    border-left: 3px solid hsl(180, 60%, 50%);
}
.stok-count .stok-summary-label i { color: hsl(180, 60%, 50%); }
.stok-count .stok-summary-value { color: hsl(180, 60%, 60%); }

/* Stok Cards */
.stok-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.stok-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.stok-card.stok-positive::before { background: linear-gradient(180deg, hsl(150, 80%, 50%), hsl(150, 60%, 40%)); }
.stok-card.stok-zero::before { background: linear-gradient(180deg, hsl(45, 80%, 55%), hsl(45, 60%, 40%)); }
.stok-card.stok-negative::before { background: linear-gradient(180deg, hsl(0, 80%, 55%), hsl(0, 60%, 40%)); }

.stok-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Stok Card Header */
.stok-card-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stok-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.stok-code {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stok-birim {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Stok Status Badge */
.stok-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.stok-status-badge.stok-positive {
    background: rgba(16, 185, 129, 0.15);
    color: hsl(150, 80%, 50%);
}

.stok-status-badge.stok-zero {
    background: rgba(234, 179, 8, 0.15);
    color: hsl(45, 85%, 55%);
}

.stok-status-badge.stok-negative {
    background: rgba(239, 68, 68, 0.15);
    color: hsl(0, 80%, 60%);
}

/* Stok Card Body */
.stok-card-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.stok-field {
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.stok-field-highlight {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stok-field-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stok-field-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.stok-giris-val { color: hsl(150, 80%, 55%); }
.stok-cikis-val { color: hsl(0, 75%, 60%); }
.stok-gercek-val { color: hsl(45, 90%, 60%); }

.stok-fiili-val-positive { color: hsl(150, 80%, 55%); font-weight: 700; }
.stok-fiili-val-zero { color: hsl(45, 85%, 55%); font-weight: 700; }
.stok-fiili-val-negative { color: hsl(0, 80%, 60%); font-weight: 700; }

/* Stok Konsinye Row */
.stok-card-kons {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.stok-card-kons i {
    color: hsl(200, 70%, 55%);
    margin-right: 4px;
}

/* Responsive: 2 columns on very small */
@media (max-width: 400px) {
    .stok-card-body {
        grid-template-columns: repeat(3, 1fr);
    }
    .stok-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== FAST SELECTION (CARDBOARD) STYLES ===== */
.fast-select-btn {
    width: auto;
    padding: 10px;
    border-color: var(--primary);
    color: var(--primary);
}

.fast-select-btn:hover {
    background: var(--primary-bg);
}

.cardboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    padding: 10px 0;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.product-card:active {
    transform: scale(0.95);
}

.product-card .img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .img-wrapper i {
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.product-card .name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4rem;
}

.product-card .price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.product-card .code {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Manage List */
.favs-manage-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.fav-manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.fav-manage-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.fav-manage-item .info {
    flex: 1;
}

.fav-manage-item .info .name {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

.fav-manage-item .info .code {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.fav-manage-actions {
    display: flex;
    gap: 8px;
}

.fav-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    transition: all 0.2s;
}

.fav-action-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,0.1);
}

.fav-action-btn.delete:hover {
    background: rgba(255, 70, 70, 0.2);
    border-color: rgba(255, 70, 70, 0.3);
    color: #ff4444;
}

@media (max-width: 400px) {
    .cardboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    animation: toastFadeIn 0.3s ease-out;
}

@keyframes toastFadeIn {
    from { bottom: 10px; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

