﻿:root {
    /* --- COLOR PALETTE --- */
    /* Backgrounds */
    --bg-app: #09090b;
    /* Zinc 950 */
    --bg-panel: #18181b;
    /* Zinc 900 */
    --bg-surface: #ffffff;
    /* Zinc 800 */
    --bg-glass: rgba(24, 24, 27, 0.75);
    /* Text Colors */
    --text-main: #f4f4f5;
    /* Zinc 100 */
    --text-dim: #a1a1aa;
    /* Zinc 400 */
    --text-muted: #52525b;
    /* Zinc 600 */
    /* Brand Colors */
    --primary: #6366f1;
    /* Indigo 500 */
    --primary-hover: #4f46e5;
    /* Indigo 600 */
    --primary-glow: rgba(99, 102, 241, 0.25);
    /* Semantic Colors */
    --success: #10b981;
    /* Emerald 500 */
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    /* Red 500 */
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    /* Amber 500 */
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    /* Blue 500 */
    --info-bg: rgba(59, 130, 246, 0.1);
    /* Borders */
    --border: #27272a;
    /* Zinc 800 */
    --border-light: #3f3f46;
    /* Zinc 700 */
    /* Dimensions */
    --nav-height: 80px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --container-max: 1440px;
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);
    /* --- ANIMATION VARIABLES (Apple Spring Physics) --- */
    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --obs-deep: #fafaff;
    --obs-card: rgba(240, 240, 240, 0.75);
    --obs-card-h: rgba(240, 240, 240, 0.85);
    --obs-brd: rgba(40, 40, 40, 0.06);
    --obs-brd-h: rgba(40, 40, 40, 0.12);
    --obs-t1: #040405;
    --obs-t2: #a1a1aa;
    --obs-t3: #71717a;
    --n-indigo: #f3f6f1;
    --n-emerald: #10b981;
    --n-rose: #ec4899;
    --n-amber: #f59e0b;
    --n-sky: #38bdf8;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --radius: 14px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-generating {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.startup-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    font-family: Arial;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.top-bar {
    background-color: #f4f6fd;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.buyer-card {
    display: flex;
    justify-content: space-between; /* Sol isim, sağ buton */
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .buyer-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

.buyer-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-grow: 1;
}

.buyer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.buyer-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-right: 1rem;
}

.buyer-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.buyer-date {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    text-align: right;
}

.buyer-balance {
    font-weight: 600;
    font-size: 1.1rem; /* biraz daha büyük */
    min-width: 80px;
    text-align: right;
}

    .buyer-balance.high {
        color: red;
    }

    .buyer-balance.normal {
        color: gray;
    }

.details-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background-color: #0d6efd;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

    .details-btn:hover {
        background-color: #084298;
        transform: scale(1.05);
    }

/* Responsive: dar ekranlarda info alt alta */
@media (max-width: 500px) {
    .buyer-card {
        flex-direction: column;
        align-items: stretch;
    }

    .buyer-info {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .details-btn {
        align-self: flex-end;
    }
}

/* OrderDetail.razor için genel container */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Satırlar arasında boşluk */
    padding: 10px;
}

/* Her bir sipariş kartı */
.order-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .order-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

/* Soldaki sipariş bilgileri */
.order-info {
    display: flex;
    flex-direction: column;
}

    /* Ürün ismi ve miktar */
    .order-info .product-name {
        font-weight: 600;
        font-size: 16px;
        color: #333;
    }

    .order-info .product-qty {
        font-size: 14px;
        color: #777;
    }

/* Sağdaki fiyat ve detay butonu */
.order-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

    /* Fiyat gösterimi */
    .order-actions .price {
        font-weight: 700;
        font-size: 16px;
        color: #555;
    }

    /* Detay butonu */
    .order-actions button {
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 6px 14px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .order-actions button:hover {
            background-color: #0056b3;
        }

    /* Eğer fiyat negatif veya borç varsa kırmızı yap */
    .order-actions .price.negative {
        color: #e74c3c;
    }

/* ==== GRID ==== */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

/* ==== CARD ==== */

.compact-card {
    border-radius: 18px;
    padding: 16px;
    transition: all 0.25s ease;
    position: relative;
}

.glass-card {
    background: rgba(240, 240, 230, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding:1.0rem;
}

.compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* ==== HEADER ==== */
.card-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-checkbox-wrap {
    display: flex;
    align-items: center;
}

.customer-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ==== AVATAR ==== */
.avatar-small {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ==== INFO ==== */
.info-block {
    flex: 1;
    min-width: 0;
}

.name-text {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(50,50,50,0.8);
}

.status-indicator {
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 0.4rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    font-weight: 500;
}

/* ==== CONTACT ==== */
.card-contact-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.contact-chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

    .contact-chip:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #2563eb;
    }

/* ==== ACTIONS ==== */
.card-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-link {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.text-primary {
    color: #2563eb;
}

.action-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.2s;
}

    .action-icon:hover {
        background: rgba(0,0,0,0.1);
    }

.btn-delete-single {
    color: #e11d48;
}

    .btn-delete-single:hover {
        background: rgba(225, 29, 72, 0.1);
    }

/* ==== PAGE TITLE ==== */
.page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--obs-brd);
    /*padding-bottom: 1rem;*/
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
}

.avatar-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 6px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.grid-1 {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.kpi-title {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 8px;
    color: #222;
}

.kpi-value {
    display: flex;
    align-items: center;
    font-size: 2.0rem;
    font-weight: 700;
    color: #222;
}

.success {
    color: var(--success);
}

.danger {
    color: var(--danger);
}

.primary {
    color: var(--primary);
}

.warning {
    color: var(--warning);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.3rem;
}

.table-thread-tr {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.table-row-tr {
    background: rgba(255,255,255,0.4);
}

.table-row-td {
    padding: 12px;
    border-radius: 0 0 0 0;
    vertical-align: middle;
}

.clickable-cell {
    cursor: pointer;
    transition: 0.2s;
}

.clickable-cell:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.section-title {
    margin-bottom: 1rem;
    opacity: 0.7;
    color: #222;
}

.amount.positive {
    color: var(--success);
    text-align:right;
}

.amount.negative {
    color: var(--danger);
    text-align: right;
}

.stock.positive {
    color: var(--success);
    text-align: left;
}

.stock.negative {
    color: var(--danger);
    text-align: left;
}

@media (max-width:1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.input-group {
    position: relative;
}

.input-group-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    width: 18px;
    height: 18px;
}

.input-with-icon {
    width: 100%;
    padding: 12px 12px 12px 42px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: black;
    transition: .2s;
}

.input-with-icon:focus {
        outline: none;
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}

.input-without-icon {
    width: 100%;
    padding: 12px 12px 12px 12px;
    /*background: rgba(255,255,255,0.9);*/
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: black;
    transition: .2s;
}

.input-without-icon:focus {
        outline: none;
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}

.compact-filter {
    color: var(--text-muted);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    background: var(--obs-card);
    border: 1px solid var(--obs-brd);
    border-radius: 10px;
}
    .compact-filter input:focus,
    .compact-filter select:focus {
        background: var(--obs-card-h);
        border-color: var(--n-indigo);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

.compact-search {
    position: relative;
    /* width: 200px;*/
}
    .compact-search input,
    .compact-search select {
        width: 100%;
        background: var(--obs-card);
        border: 1px solid var(--obs-brd);
        border-radius: 10px;
        padding: 6px 12px 6px 34px;
        color: var(--obs-t1);
        font-size: 1rem;
        outline: none;
        transition: all .25s;
        box-sizing: border-box;
    }

    .compact-search select {
        padding-left: 12px;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

        .compact-search input:focus,
        .compact-search select:focus {
            background: var(--obs-card-h);
            border-color: var(--n-indigo);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
        }

    .compact-search input::placeholder {
        color: var(--obs-t3);
    }

.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--obs-t3);
    pointer-events: none;
}
/* Temizle (çarpı) butonu */
.clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--obs-t3);
    cursor: pointer;
    display: none; /* input boşsa gizli */
}
.compact-search input:not(:placeholder-shown) ~ .clear-icon {
    display: block; /* input doluyken göster */
}

.btn-create {
    display: flex;
    align-items: center;
    gap: 7px;
    background: --n-indigo;
    color: #0071c1;
    padding: 9px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all .25s;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

    .btn-create:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    }

.q-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.q-modal-content {
    width: 480px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    animation: modalUp .25s ease;
}

@keyframes modalUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.q-modal-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(40, 40, 40, 0.1);
    position: relative;
}

    .q-modal-header h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #444;
        margin: 0;
    }

.q-modal-subtitle {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-top: 4px;
}

.q-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
}

    .q-modal-close:hover {
        color: #222;
    }

.q-modal-body {
    padding: 24px;
}

.q-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.05);
}

.q-btn-primary {
    background: #6366f1;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    flex:1;
}

.btn-flex {
    background: #6a1b9a;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    flex: 1;
}
    .btn-flex:hover {
        background: #5a0b8a;
        color: white;
    }

.q-btn-ghost {
    background: #e3e4e6;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    flex:1;
}

.q-tabs {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.q-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    background: #f3f4f6;
    cursor: pointer;
    transition: .2s;
}

.q-tab:hover {
    background: #e5e7eb;
}

.q-title-bar {
    width: 4px;
    height: 32px;
    background: linear-gradient(180deg, var(--n-indigo), var(--n-emerald));
    border-radius: 4px;
}

.q-grid-layout {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: 24px;
}

.q-col-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.q-col-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kdv-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left : 1rem;
}

.permission-list {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fafafa;
    transition: 0.2s;
}

.permission-item:hover {
    background: #f5f7ff;
}

.permission-text {
    font-weight: 500;
}

/* Switch Container */
.switch {
    position: relative;
    width: 46px;
    height: 24px;
    display: inline-block;
    cursor: pointer;
}

    /* Arka Plan */
    .switch .slider {
        position: absolute;
        inset: 0;
        background-color: #ccc;
        border-radius: 50px;
        transition: 0.3s;
    }

        /* Top */
        .switch .slider::before {
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            left: 3px;
            top: 3px;
            background: white;
            border-radius: 50%;
            transition: 0.3s;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }

/* Checked durum */
input:checked + .switch .slider {
    background-color: #4CAF50;
}

    input:checked + .switch .slider::before {
        transform: translateX(22px);
    }

.switch-label {
    font-weight: 500;
}

.q-status {
    padding: 4px 8px;
    border-radius: 0.5rem;
    display: inline-block;
    border: 1px solid;
    background: transparent;
}

.q-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid transparent;
}

    .q-badge.sales {
        background: rgba(16, 185, 129, 0.1);
        color: var(--n-emerald);
        border-color: rgba(16, 185, 129, 0.2);
    }

    .q-badge.purchase {
        background: rgba(236, 72, 153, 0.1);
        color: var(--n-rose);
        border-color: rgba(236, 72, 153, 0.2);
    }

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    /* küçük ok */
    .tooltip-text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

.tooltip-container:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    bottom: 150%;
}

.kpi-convert {
    margin-top: 4px;
    font-size: 16px;
    opacity: .7;
    margin-left: 1rem;
}

.pagination-modern {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0px 0;
}

/* Base buttons */
.page-btn,
.page-number {
    min-width: 40px;
    height: 35px;
    padding: 0 4px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

    /* Number buttons */
    .page-number:hover {
        background: #f3f4f6;
        transform: translateY(-1px);
    }

    /* Active page */
    .page-number.active {
        background: #2563eb;
        color: white;
        border-color: #2563eb;
        box-shadow: 0 4px 12px rgba(37,99,235,.35), 0 0 0 2px rgba(37,99,235,.15);
    }

/* Navigation buttons */
.page-btn {
    width: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

    .page-btn:hover {
        background: #f8fafc;
        transform: translateY(-2px);
    }

    .page-btn:active {
        transform: scale(.95);
    }

    /* Disabled */
    .page-btn:disabled {
        opacity: .35;
        cursor: not-allowed;
        box-shadow: none;
    }

    /* SVG Icons */
    .page-btn svg {
        width: 14px;
        height: 14px;
        stroke: #4b5563;
        stroke-width: 1.8;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Ellipsis */
.ellipsis {
    padding: 0 6px;
    color: #9ca3af;
    font-weight: 600;
}

.nav-link img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #e5e7eb;
    }

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -22px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-content {
    background: white;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.timeline-date {
    font-size: 12px;
    color: #6b7280;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 14px;
    color: #444;
    white-space: pre-line;
}

.timeline-actions {
    display: flex;
    gap: 6px;
}

.icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
}

    .icon-btn.warning {
        color: #f59e0b;
    }

    .icon-btn.danger {
        color: #ef4444;
    }

.again-group {
    align-items: center;
}

.again-number {
    max-width: 80px;
    text-align: center;
}

.again-select {
    max-width: 120px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: 0.2s all;
    cursor: pointer;
}

.radio-item:hover {
    background-color: #f0f0f0;
    border-color: #888;
}

.radio-item input[type="radio"] {
    accent-color: #4f46e5; /* Mor ton, dilersen değiştirebilirsin */
    width: 18px;
    height: 18px;
}

.days-input {
    width: 80px;
    margin-left: 0px;
}

.date-input {
    width: 120px;
    margin-left: 0px;
}

.profile-container {
    position: relative;
    display: inline-block;
    font-family: "Segoe UI", sans-serif;
}

.profile-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    background: transparent;
    color: #4a0072; /* koyu mor yazı */
}

.profile-button:hover {
    background: #f3e5f5; /* açık mor hover */
    color: #6a1b9a;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    /*border: 2px solid #6a1b9a;*/ /* mor çerçeve */
    background-color: transparent;
}

.user-name {
    font-weight: 600;
    color: #4a0072;
}

.arrow {
    margin-left: 8px;
    border: solid #4a0072;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.arrow.up {
    transform: rotate(-135deg);
}

/* Panel */
.profile-panel {
    position: absolute;
    top: 50px;
    right: 0;
    min-width:380px;
    /*width: 360px;*/
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    color: #4a0072;
    padding: 0;
    font-size: 14px;
}

/* Header */
.profile-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.header-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-right: 12px;
    /*border: 2px solid #6a1b9a;*/
    background-color: transparent;
}

.header-info .name {
    font-weight: 700;
    font-size: 16px;
    color: #4a0072;
}

.header-info .license {
    font-size: 14px;
    color: #6a1b9a;
    opacity: 0.8;
}

.edit-btn {
    margin-left: auto;
    background: #6a1b9a;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 8px 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.edit-btn:hover {
    background: #4a0072;
}

/* Accounts */
.accounts {
    padding: 10px 0;
}

.account-section-title {
    padding: 0 15px;
    font-weight: 600;
    font-size: 14px;
    color: #6a1b9a;
    margin-bottom: 5px;
}

.account-item {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border-left: 4px solid transparent;
    transition: background 0.2s, border-left 0.2s;
    color: #4a0072;
}

.account-item:hover {
    background: #f3e5f5;
}

.account-item.active {
    border-left: 4px solid #6a1b9a;
    background: #f3e5f5;
    font-weight: 600;
}

.active-tag {
    font-size: 13px;
    color: #6a1b9a;
    font-weight: 600;
}

/* Footer */
.profile-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.logout-btn {
    background: #6a1b9a;
    border: none;
    color: white;
    padding: 12px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #4a0072;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.empty-icon-svg {
    width: 72px;
    height: 72px;
    background: #666c;
    border-radius: 50%;
    padding:0.5rem
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    max-width: 400px;
    margin: auto;
    margin-bottom: 20px;
}

.empty-state .btn {
    padding: 10px 18px;
    font-weight: 500;
}

.sticky-card {
    position: sticky;
    top: 20px;
}

.action-panel {
    padding: 24px;
}

.action-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: .2s;
}

    .action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .action-btn.active {
        border-color: var(--primary);
        background: var(--primary-soft);
    }

    .action-btn .icon {
        font-size: 18px;
    }

.date-panel {
    position: absolute;
    top: 45px;
    right: 0;
    width: 420px;
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    color: #4a0072;
    font-size: 16px;
    z-index: 1000;
}

.preset-panel {
    width: 150px;
    border-right: 1px solid #eee;
    padding: 10px;
}

.preset-panel button {
        display: block;
        width: 100%;
        text-align: left;
        padding: 6px;
        border: none;
        background: none;
}

.calendar-panel {
    flex: 1;
    padding: 15px;
    background: #f3e5f5;
}