﻿/* === Version Header === */
.version-header {
    width: 100%;
    height: 46px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-top: 1px solid #007AFF;
}

/* === Custom Search Bar === */
.custom-search-bar {
    width: 420px;
    height: 36px;
    background: #fff;
    border-radius: 5px;
    box-shadow: inset 0 2px 3px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.15);
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    gap: 10px;
}

.custom-search-input {
    border: 0;
    outline: 0;
    font-size: 16px;
    width: 100%;
    box-shadow: none;
    background: transparent;
}

/* === Notes List === */
.notes-list {
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.note-item {
    position: relative;
    width: 420px;
    min-height: 85px;
    border-bottom: 2px solid #dcdcdc;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    box-sizing: border-box;
}

.note-left {
    flex: 1 1 auto;
    min-width: 0;
}

.note-item .date {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
    flex: 0 0 auto;
    text-align: right;
    font-size: 12px;
    color: #555;
}

/* === Product Styles === */
.product-name {
    margin-bottom: 0;
    height: auto;
    line-height: normal;
}

    .product-name.suitpos-text {
        font-family: Arial, sans-serif;
        font-size: 25px;
        font-weight: 700;
        text-transform: lowercase;
    }

.product-logo {
    display: block;
}

    .product-logo:not(.suit-logo) {
        width: 112px;
        height: 13px;
    }

.suit-logo {
    width: 97px;
    height: 25px;
    margin-top: -2px;
}

.version-line {
    font-size: 15px;
    color: #000;
    width: 218px;
    line-height: 20px;
    margin-top: 2px;
}

.orion-version {
    font-family: 'Orbitron', sans-serif;
}

.suitpos-version {
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.default-version {
    font-family: Arial, sans-serif;
}

/* === Version Note Description === */
.version-note-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 376px;
    line-height: 17px;
    max-height: 68px;
    margin-top: 5px;
    font-size: 11.5px;
    color: #333;
    word-break: break-word;
}

    .version-note-description.expanded,
    .version-note-description.full {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .version-note-description.short {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 376px;
        line-height: 17px;
        max-height: 68px;
        margin-top: 5px;
        font-size: 11.5px;
        color: #333;
        word-break: break-word;
    }

/* === Note Images === */
.note-image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    cursor: zoom-in;
}

.note-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    transition: transform .2s ease;
}

    .note-image:hover {
        transform: scale(1.02);
    }

/* === Card Icons (edit/delete) === */
.edit-icon,
.delete-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s ease, transform .1s ease;
}

/* Edit ikonunu koyu yap (beyaz SVG olsa da görünür) */
.edit-icon {
    filter: brightness(0) saturate(100%);
}

    .edit-icon:hover,
    .delete-icon:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

/* === Footer === */
.qr-fixed-footer {
    border-top: none !important;
    box-shadow: none !important;
}

.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: 0;
    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 .2s;
    cursor: pointer;
}

    .qr-btn .btn-icon {
        width: 22px;
        height: 22px;
        filter: brightness(0) invert(1); /* buton içi ikonlar beyaz */
    }

/* Footer renk varyantları */
.qr-btn-blue {
    background: #5c9eff;
}

    .qr-btn-blue:hover {
        background: #468cf2;
    }

.qr-btn-red {
    background: #e53935;
}

    .qr-btn-red:hover {
        background: #c62828;
    }

.qr-btn-green {
    background: #28a745;
}

    .qr-btn-green:hover {
        background: #218838;
    }

/* === Responsive === */
@media (max-width:480px) {
    .custom-search-bar, .note-item {
        width: 95%;
    }

    .version-header {
        font-size: 1.2rem;
    }

    .qr-btn {
        font-size: 1rem;
        padding: 0 12px;
    }
}

/* === General === */
body {
    padding-bottom: 80px; /* içerik footer’a çarpmasın */
}

.main-container {
    flex: 1;
}
.modal-header {
    background-color: #0d6efd; /* Mavi */
    color: #fff;
}

    .modal-header .modal-title,
    .modal-header .fa {
        color: #fff;
    }
