/* Leltár Kezelő - CSS Stílusok */

:root {
    --primary-color: #4CAF50;
    --primary-dark: #45a049;
    --secondary-color: #2196F3;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --success-color: #4CAF50;
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* ============ LOGIN PAGE ============ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-color);
}

.login-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* ============ ADMIN PANEL ============ */

.admin-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content h1 {
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 5px;
}

.admin-main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

/* ============ CARDS ============ */

.card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h2 {
    margin: 0;
    color: var(--text-color);
}

.card-body {
    padding: 20px;
}

/* ============ FORMS ============ */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* ============ BUTTONS ============ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1976D2;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #da190b;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* ============ SETTINGS ============ */

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-row:last-child {
    border-bottom: none;
}

.text-muted {
    color: var(--text-muted);
    font-size: 14px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

/* ============ FILTERS ============ */

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

/* ============ TABLE ============ */

.table-responsive {
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.inventory-table thead {
    background-color: #f8f9fa;
}

.inventory-table th,
.inventory-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.inventory-table th {
    font-weight: 600;
    color: var(--text-color);
}

.inventory-table tr:hover {
    background-color: #f8f9fa;
}

.inventory-table .actions-wrapper {
    display: flex;
    gap: 10px;
}

.text-center {
    text-align: center;
}

/* ============ BADGES ============ */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-új {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-jó {
    background-color: #e8f5e9;
    color: #388e3c;
}

.badge-közepes {
    background-color: #fff3e0;
    color: #f57c00;
}

.badge-rossz {
    background-color: #ffebee;
    color: #d32f2f;
}

.badge-selejtezett {
    background-color: #f5f5f5;
    color: #616161;
}

/* ============ ALERTS ============ */

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============ MODAL ============ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
}

.modal-small {
    max-width: 500px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

.close-btn:hover {
    color: var(--text-color);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#itemForm {
    padding: 20px;
}

/* QR Code Container */
.qr-container {
    padding: 30px;
    text-align: center;
}

.qr-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* ============ PUBLIC PAGES ============ */

.public-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.public-header h1 {
    margin: 0;
    flex: 1;
}

.public-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2em;
    color: var(--text-muted);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.info-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.info-box h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.info-box ol {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 10px;
}

.admin-quick-access {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.quick-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quick-link-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s;
}

.quick-link-btn:hover {
    background-color: var(--primary-dark);
}

.public-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* ============ VIEW PAGE ============ */

.view-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.item-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.item-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
}

.item-header h1 {
    margin: 0 0 10px 0;
}

.item-code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.item-details {
    padding: 30px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
}

.detail-value {
    color: var(--text-color);
    font-size: 16px;
}

.metadata {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    color: var(--text-muted);
}

.item-actions {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

/* Login Required */
.login-required {
    max-width: 500px;
    margin: 100px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.lock-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.inline-login-form {
    margin-top: 30px;
    text-align: left;
}

/* ============ NOTIFICATIONS ============ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* User Info in Header */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* My Inventory Styles */
.my-inventory {
    margin-bottom: 40px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.inventory-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.inventory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.inventory-card.scanned {
    border-color: var(--success-color);
    background-color: #f8fff9;
}

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2em;
}

.item-code {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.item-location {
    color: #888;
    font-size: 0.85em;
    margin-top: 10px;
}

.notification-success {
    background-color: var(--success-color);
    color: white;
}

.notification-error {
    background-color: var(--danger-color);
    color: white;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .inventory-table {
        font-size: 14px;
    }

    .inventory-table th,
    .inventory-table td {
        padding: 8px;
    }

    .hero h2 {
        font-size: 1.8em;
    }


}

.detail-section h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
}

.detail-value {
    color: var(--text-color);
    font-size: 16px;
}

.metadata {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    color: var(--text-muted);
}

.item-actions {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

/* Login Required */
.login-required {
    max-width: 500px;
    margin: 100px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.lock-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.inline-login-form {
    margin-top: 30px;
    text-align: left;
}

/* ============ NOTIFICATIONS ============ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* User Info in Header */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* My Inventory Styles */
.my-inventory {
    margin-bottom: 40px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.inventory-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.inventory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.inventory-card.scanned {
    border-color: var(--success-color);
    background-color: #f8fff9;
}

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2em;
}

.item-code {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.item-location {
    color: #888;
    font-size: 0.85em;
    margin-top: 10px;
}

.notification-success {
    background-color: var(--success-color);
    color: white;
}

.notification-error {
    background-color: var(--danger-color);
    color: white;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .inventory-table {
        font-size: 14px;
    }

    .inventory-table th,
    .inventory-table td {
        padding: 8px;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ ASSIGNMENT MODAL (MODERN) ============ */
.assignment-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 16px;
}

.assignment-controls input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.assignment-controls input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding: 5px;
}

.location-card {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.location-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-card:hover .card-content {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icon-box {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.2s;
}

.location-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.check-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selected State */
.location-card input:checked+.card-content {}

.notification-success {
    background-color: var(--success-color);
    color: white;
}

.notification-error {
    background-color: var(--danger-color);
    color: white;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .inventory-table {
        font-size: 14px;
    }

    .inventory-table th,
    .inventory-table td {
        padding: 8px;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ ASSIGNMENT MODAL (MODERN) ============ */
.assignment-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 16px;
}

.assignment-controls input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.assignment-controls input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding: 5px;
}

.location-card {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.location-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-card:hover .card-content {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icon-box {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.2s;
}

.location-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.check-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selected State */
.location-card input:checked+.card-content {
    border-color: var(--primary-color);
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.location-card input:checked+.card-content .icon-box {
    background: white;
}

.location-card input:checked+.card-content .check-indicator {
    opacity: 1;
    transform: scale(1);
}

/* ============ ACTIVE LOCATION STYLES ============ */

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.active-location-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.active-location-badge:hover {
    background: rgba(255, 255, 255, 0.3);
}

.change-icon {
    font-size: 12px;
    opacity: 0.8;
}

/* Location Selection Modal */
.location-select-content {
    max-width: 600px;
    text-align: center;
}

.location-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.btn-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    width: 100%;
}

.btn-location:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-location.active {
    border-color: var(--primary-color);
    background: #e3f2fd;
}

.loc-icon {
    font-size: 24px;
}

.loc-name {
    font-weight: 600;
    color: var(--text-color);
}

.loc-check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Inventory Header & Filter */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.current-location-filter {
    background: #e3f2fd;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.current-location-item {
    border: 2px solid var(--primary-color);
    position: relative;
}

.current-location-item::after {
    content: '📍 Itt vagy';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}
/* ============ REBRANDING STYLES ============ */

.site-logo {
    height: 50px;
    width: auto;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
}

.school-name {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.9;
    max-width: 300px;
    line-height: 1.2;
}

.hero-logo {
    height: 100px;
    width: auto;
    margin-bottom: 20px;
}

.school-subtitle {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .school-name {
        display: none; /* Hide long name on mobile header to save space */
    }
    
    .site-logo {
        height: 40px;
    }
}
