﻿.qr-header {
    width: 100%;
    height: 46px;
    background-color: #000;
    display: flex;
    align-items: center;
    padding-left: 16px;
    box-sizing: border-box;
}

    .qr-header h2 {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
    }

@media (min-width: 768px) {
    .qr-header {
        height: 60px;
        padding-left: 24px;
    }

        .qr-header h2 {
            font-size: 1.5rem;
        }
}

.qr-search-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 12px auto;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

.qr-search-box {
    width: 100%;
    height: 36px;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
}

    .qr-search-box input {
        border: none;
        outline: none;
        font-size: 1rem;
        width: 100%;
        color: #333;
    }

    .qr-search-box .search-icon {
        width: 20px;
        height: 20px;
        opacity: 0.6;
    }

.qr-list {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 16px 80px;
}

/* <-- Dikey ortalama için değişiklik: align-items: center --> */
.qr-card {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.3s;
    flex-wrap: nowrap;
    gap: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

    .qr-card:hover {
        background-color: #f5f5f5;
    }

/* <-- Dikey ortalama için değişiklik: align-items: center --> */
.qr-card-left {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    flex-grow: 1;
}

/* <-- Dikey ortalama için değişiklik: align-self: center --> */
.qr-card-right {
    flex: 0 0 auto;
    align-self: center;
}

    .qr-card-right .icon-stack > img {
        display: block;
    }

.qr-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    margin-bottom: 4px;
    display: inline-block;
}

    .qr-title:hover {
        text-decoration: underline;
    }

.qr-date {
    font-size: 0.95rem;
    color: #333;
}

    .qr-date.expired {
        color: red !important;
        font-weight: 700;
    }

    .qr-date.near-expiry {
        color: #ff6600 !important;
        font-weight: 600;
    }

.qr-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    cursor: pointer;
}

/* Düzenle ve Sil İkonları */
.action-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-icon,
.delete-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    filter: brightness(0.3);
    transition: filter 0.2s;
}

    .edit-icon:hover {
        filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    }

    .delete-icon:hover {
        filter: brightness(1);
    }

.qr-fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 12px 0;
    z-index: 999;
}

.qr-action-buttons {
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
}

.qr-btn {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    transition: background-color 0.2s;
}

    .qr-btn .btn-icon {
        width: 22px;
        height: 22px;
    }

.qr-btn-blue {
    background-color: #5c9eff;
}

    .qr-btn-blue:hover {
        background-color: #468cf2;
    }

.qr-btn-red {
    background-color: #e53935;
}

    .qr-btn-red:hover {
        background-color: #c62828;
    }

@media (max-width: 480px) {
    .qr-btn {
        font-size: 1rem;
        padding: 0 12px;
    }
}

/* drag & drop */
.qr-drag-handle {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    opacity: .7;
    cursor: grab;
    flex-shrink: 0;
}

    .qr-drag-handle:active {
        cursor: grabbing;
    }

.qr-list .sortable-chosen {
    background: #f0f6ff;
}

.qr-list .sortable-ghost {
    opacity: .5;
}

/* search yardımcıları */
.show-card {
    display: flex !important;
}

.hide-card {
    display: none !important;
}
