/* Alap stílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header-controls {
    display: flex;
    gap: 10px;
}

/* Gombok */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-warning {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

/* Kártya konténerek */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

/* Keresési form */
.search-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#searchInput {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.help-text {
    color: #7f8c8d;
    font-style: italic;
    font-size: 14px;
}

/* Kártya részletek */
.card-details {
    margin-top: 20px;
    padding: 0;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    position: relative;
}

.card-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px 8px 0 0;
}

.card-details-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-details .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.card-details .close-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.card-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.card-image-container {
    flex: 0 0 200px;
    text-align: center;
}

.card-image {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card-image:hover {
    transform: scale(1.05);
}

.card-data {
    flex: 1;
    min-width: 300px;
}

.card-data h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.stat .label {
    font-weight: 600;
    color: #7f8c8d;
}

.stat span:last-child {
    color: #2c3e50;
    font-weight: 500;
}

.card-description {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.card-description h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.card-description p {
    line-height: 1.6;
    color: #555;
}

/* Hozzáadás form */
.add-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.add-form h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.status-text {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Keresési eredmények */
.search-results {
    margin-top: 20px;
}

.result-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.result-image {
    width: 60px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.result-image:hover {
    transform: scale(1.05);
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.result-type {
    color: #7f8c8d;
    font-size: 14px;
}

/* Gyűjtemény */
.collection-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collection-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#collectionSearch {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.collection-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.collection-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.collection-item:hover {
    border-color: #27ae60;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
    transform: translateY(-2px);
}

.collection-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.collection-item-image {
    width: 50px;
    height: auto;
    border-radius: 6px;
}

.collection-item-name {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.collection-item-quantity {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.collection-item-details {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Debug Console Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: block;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.debug-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.debug-logs {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .card-info {
        flex-direction: column;
        text-align: center;
    }
    
    .card-image-container {
        flex: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .collection-list {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    /* Mobil kamera stílusok */
    #scanVideo {
        max-width: 100%;
        max-height: 300px;
    }
    
    .scan-panel {
        margin-top: 8px;
        padding: 8px;
    }
    
    .scan-header {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .scan-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .scan-actions button {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .scan-actions label {
        font-size: 12px;
    }
}

/* Animációk */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-details,
.search-results,
.collection-item {
    animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Adatbázis statisztikák */
.database-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.database-search {
    margin-bottom: 30px;
}

.database-search .input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.database-search .input-group input {
    flex: 1;
}

.database-search .input-group button {
    white-space: nowrap;
}

/* Adatbázis eredmények */
.database-results {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.database-card-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.database-card-item:hover {
    background-color: #f0f0f0;
}

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

.database-card-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.database-card-image:hover {
    transform: scale(1.05);
}

.database-card-info {
    flex: 1;
}

.database-card-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.database-card-type {
    color: #7f8c8d;
    font-size: 14px;
}

.database-card-stats {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 12px;
    color: #95a5a6;
}

.database-card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pagináció */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #f0f0f0;
}

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

.pagination .current-page {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.page-info {
    font-weight: 600;
    color: #2c3e50;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Collection item styles */
.collection-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.collection-item-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
}

.collection-item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.collection-item-name {
    flex: 1;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.collection-item-quantity {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

.delete-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    min-width: 60px;
}

.delete-btn:hover {
    background: #c0392b;
}

/* Kártya kép modal */
#cardImageModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

#cardImageModal.show {
    display: flex !important;
}

#cardImageModal .modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    margin: 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
    margin: 0 auto;
}

.modal-image:hover {
    transform: scale(1.02);
}

.modal-card-info {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.modal-card-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-card-info p {
    color: #7f8c8d;
    margin: 5px 0;
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Kattintható kártya kép */
.card-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Szkennelő panel */
.scan-panel {
    margin-top: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
}

.scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.scan-body {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#scanVideo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 8px;
}

.card-image:hover {
    transform: scale(1.05);
}

.collection-item-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.collection-item-image:hover {
    transform: scale(1.05);
}

/* Gyors Hozzáadás Modal */
.quick-add-content {
    max-width: 600px;
    width: 90%;
    height: 80vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.resizable-modal {
    min-width: 400px;
    min-height: 300px;
    max-width: 90vw;
    max-height: 90vh;
    resize: both;
    overflow: hidden;
    position: relative;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(-45deg, transparent 0%, transparent 30%, #ccc 30%, #ccc 40%, transparent 40%, transparent 70%, #ccc 70%);
    cursor: nw-resize;
    z-index: 10;
}

.resize-handle:hover {
    background: linear-gradient(-45deg, transparent 0%, transparent 30%, #999 30%, #999 40%, transparent 40%, transparent 70%, #999 70%);
}

.quick-add-body {
    padding: 10px 15px 5px 15px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
}

.quick-add-input-section {
    margin-bottom: 25px;
}

.quick-add-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.quick-add-input-section .input-group {
    display: flex;
    gap: 10px;
}

.quick-add-input-section .input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.quick-add-input-section .input-group input:focus {
    outline: none;
    border-color: #3498db;
}

.quick-add-results {
    margin-top: 15px;
    margin-bottom: 2px;
    flex: 1;
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: thick;
    scrollbar-color: #3498db #f1f1f1;
}

.quick-add-results::-webkit-scrollbar {
    width: 30px;
}

.quick-add-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.quick-add-results::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 6px;
}

.quick-add-results::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.quick-card-preview {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 2px;
    border: 2px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

.quick-card-img {
    width: 92px;
    height: 127px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.quick-card-img:hover {
    transform: scale(1.05);
}

.quick-card-info {
    flex: 1;
}

.quick-card-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.quick-card-info p {
    margin: 4px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.quick-add-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 2px;
    flex: 1;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: thick;
    scrollbar-color: #3498db #f1f1f1;
}

.quick-add-form::-webkit-scrollbar {
    width: 30px;
}

.quick-add-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.quick-add-form::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 6px;
}

.quick-add-form::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-group:nth-child(5),
.form-group:nth-child(6) {
    grid-column: 1 / -1;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 10px;
}

.quick-add-loading {
    text-align: center;
    padding: 40px;
}

.quick-add-loading .loading {
    margin-bottom: 15px;
}

.quick-add-error {
    text-align: center;
    padding: 20px;
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 10px;
    color: #c33;
}

/* Responsive design for quick add */
@media (max-width: 768px) {
    .quick-add-content {
        width: 95%;
        max-height: 85vh;
    }
    
    /* Mobil scan modal optimalizálás */
    #mobileScanModal .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 2% auto;
    }
    
    .quick-add-body {
        padding: 15px;
        max-height: calc(95vh - 120px);
    }
    
    .quick-add-form {
        grid-template-columns: 1fr;
        max-height: 250px;
    }
    
    .last-added-card {
        overflow: visible;
        flex-shrink: 0;
    }
    
    .quick-add-results {
        max-height: 300px;
    }
    
    .quick-add-input-section .input-group {
        flex-direction: column;
    }
    
    .quick-card-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-card-img {
        width: 138px;
        height: 184px;
        margin: 0 auto;
    }
}

/* Gyűjteményi státusz stílusok */
.collection-status {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 60px;
    overflow-y: auto;
}

.status-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.status-value {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
    background: #d4edda;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #c3e6cb;
}

.status-value.has-cards {
    color: #007bff;
    background: #d1ecf1;
    border-color: #bee5eb;
}

.status-value.no-cards {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #e9ecef;
}

/* Utoljára hozzáadott kártya stílusok */
.last-added-card {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    overflow: visible;
    flex-shrink: 0;
}

.last-added-label {
    font-weight: 600;
    color: #155724;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.last-added-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.last-added-img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.last-added-img:hover {
    transform: scale(1.05);
}

.last-added-info {
    flex: 1;
    min-height: auto;
}

.last-added-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 4px;
}

.last-added-quantity {
    color: #28a745;
    font-size: 12px;
    font-weight: 500;
}