        /* Custom BerryWorld Font */
        @font-face {
            font-family: 'CervoNeue';
            src: url('../fonts/Typoforge Studio - CervoNeue-BlackNeue.woff2') format('woff2');
            font-weight: 900;
            font-style: normal;
            font-display: swap;
        }
        
        :root {
            --berry-purple: #792482;
            --berry-purple-light: #9d4aaa;
            --berry-purple-dark: #5a1a61;
            --berry-purple-20: rgba(121, 36, 130, 0.2);
            --berry-purple-40: rgba(121, 36, 130, 0.4);
            --berry-purple-60: rgba(121, 36, 130, 0.6);
            --berry-purple-80: rgba(121, 36, 130, 0.8);
            --berry-bg: #f8f4f9;
            --berry-white: #ffffff;
            --text-dark: #2d1830;
            --text-light: #6b4d70;
            --font-primary: 'CervoNeue', 'Poppins', sans-serif;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: var(--font-primary);
            background: linear-gradient(135deg, var(--berry-bg) 0%, #ede4f0 100%);
            min-height: 100vh;
            color: var(--text-dark);
        }
        
        /* Warning Page */
        .warning-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 2rem;
            background: radial-gradient(circle at 30% 50%, var(--berry-purple-20) 0%, transparent 50%),
                        radial-gradient(circle at 70% 50%, var(--berry-purple-20) 0%, transparent 50%);
        }
        
        .warning-box {
            background: var(--berry-white);
            border-radius: 24px;
            padding: 3rem;
            max-width: 600px;
            box-shadow: 0 20px 60px rgba(121, 36, 130, 0.15);
            border: 3px solid var(--berry-purple);
            animation: slideUp 0.6s ease-out;
        }
        
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .warning-box h1 {
            font-family: 'CervoNeue';
            src: url('../fonts/Typoforge Studio - CervoNeue-BlackNeue.woff2') format('woff2');
            color: var(--berry-purple);
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            text-align: center;
        }
        
        .warning-logos {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .warning-logo {
            height: 100px;
            width: 100px;
            object-fit: contain;
            filter: drop-shadow(0 4px 12px rgba(121, 36, 130, 0.3));
        }
        
        .warning-box p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-light);
            margin-bottom: 2rem;
            text-align: center;
        }
        
        .btn-primary {
            background: var(--berry-purple);
            color: white;
            border: none;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }
        
        .btn-primary:hover {
            background: var(--berry-purple-dark);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px var(--berry-purple-40);
        }
        
        /* Loading Screen */
        .loading-container {
            display: none;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 2rem;
        }
        
        .loading-box {
            background: var(--berry-white);
            border-radius: 24px;
            padding: 3rem;
            max-width: 500px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(121, 36, 130, 0.15);
        }
        
        .loading-box h2 {
            font-family: 'CervoNeue';
            src: url('../fonts/Typoforge Studio - CervoNeue-BlackNeue.woff2') format('woff2');
            color: var(--berry-purple);
            margin-bottom: 2rem;
            text-align: center;
            font-size: 2rem;
        }
        
        .progress-bar {
            width: 100%;
            height: 12px;
            background: var(--berry-purple-20);
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 1rem;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--berry-purple) 0%, var(--berry-purple-light) 100%);
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 10px;
        }
        
        .progress-text {
            text-align: center;
            color: var(--text-light);
            font-size: 0.95rem;
        }
        
        /* Main App */
        .app-container {
            display: none;
            min-height: 100vh;
            flex-direction: column;
        }
        
        /* Top Bar */
        .top-bar {
            background: rgba(121, 36, 130, 0.4);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            box-shadow: 0 4px 20px rgba(121, 36, 130, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 2rem;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .top-bar-left {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            flex: 1;
            max-width: 800px;
        }
        
        .top-bar-logo {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 0.5rem;
        }

        .header-logo {
            height: 160px;
            width: 160px;
            object-fit: contain;
            filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
        }
        
        .search-section {
            display: flex;
            gap: 0.5rem;
            width: 100%;
        }
        
        .search-filters {
            display: flex;
            gap: 1rem;
            align-items: center;
            flex-wrap: wrap;
            padding: 0.5rem 1rem;
            background: var(--berry-bg);
            border-radius: 12px;
            width: 100%;
        }
        
        .radio-label {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--text-dark);
            white-space: nowrap;
        }
        
        .radio-label input[type="radio"] {
            cursor: pointer;
            width: 16px;
            height: 16px;
            accent-color: var(--berry-purple);
        }
        
        .radio-label:hover {
            color: var(--berry-purple);
        }
        
        .search-input {
            flex: 1;
            padding: 0.75rem 1.25rem;
            border: 2px solid var(--berry-purple-20);
            border-radius: 50px;
            font-size: 1rem;
            font-family: 'Poppins', sans-serif;
            background: var(--berry-white);
            color: var(--text-dark);
            transition: all 0.3s ease;
        }
        
        .search-input::placeholder {
            color: rgba(45, 24, 48, 0.5);
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--berry-purple);
            background: var(--berry-white);
            box-shadow: 0 0 0 4px var(--berry-purple-20);
        }
        
        .btn-search {
            background: var(--berry-purple);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .btn-search:hover {
            background: var(--berry-purple-dark);
            transform: translateY(-2px);
        }
        
        .button-group {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        
        .btn-secondary {
            background: var(--berry-purple-light);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .btn-secondary:hover {
            background: var(--berry-purple);
            transform: translateY(-2px);
        }
        
        .btn-logout {
            background: #dc3545;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-logout:hover {
            background: #c82333;
            transform: translateY(-2px);
        }
        
        /* Main Content */
        .main-content {
            display: flex;
            flex: 1;
            overflow: hidden;
        }
        
        .users-grid-container {
            flex: 2;
            padding: 2rem;
            overflow-y: auto;
            max-height: calc(100vh - 120px); /* Adjusted for larger top bar */
        }
        
        .users-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
        }
        
        .user-card {
            background: var(--berry-white);
            border-radius: 16px;
            padding: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            box-shadow: 0 4px 12px rgba(121, 36, 130, 0.08);
        }
        
        .user-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(121, 36, 130, 0.15);
            border-color: var(--berry-purple-20);
        }
        
        .user-card.selected {
            border-color: var(--berry-purple);
            background: linear-gradient(135deg, var(--berry-white) 0%, var(--berry-purple-20) 100%);
        }
        
        .user-photo {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 12px;
            object-fit: cover;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--berry-purple-20) 0%, var(--berry-purple-40) 100%);
        }
        
        .user-name {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--berry-purple);
            margin-bottom: 0.5rem;
        }
        
        .user-department {
            color: var(--text-light);
            font-size: 0.9rem;
        }
        
        /* Selected Users Sidebar */
        .selected-sidebar {
            flex: 1;
            background: var(--berry-white);
            padding: 2rem;
            overflow-y: auto;
            max-height: calc(100vh - 120px); /* Adjusted for larger top bar */
            border-left: 3px solid var(--berry-purple-20);
            box-shadow: -4px 0 20px rgba(121, 36, 130, 0.1);
        }
        
        .selected-sidebar h2 {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            color: var(--berry-purple);
            margin-bottom: 1.5rem;
            font-size: 1.8rem;
        }
        
        .selected-user-item {
            background: var(--berry-bg);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid var(--berry-purple-20);
        }
        
        .selected-user-item:hover {
            border-color: var(--berry-purple);
            background: var(--berry-purple-20);
        }
        
        .selected-user-name {
            font-weight: 600;
            color: var(--berry-purple);
            margin-bottom: 0.25rem;
        }
        
        .selected-user-dept {
            font-size: 0.85rem;
            color: var(--text-light);
        }
        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(45, 24, 48, 0.7);
            backdrop-filter: blur(5px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }
        
        .modal-content {
            background: var(--berry-white);
            border-radius: 20px;
            padding: 2.5rem;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(121, 36, 130, 0.3);
            animation: slideUp 0.3s ease-out;
        }
        
        .modal-content h3 {
            font-family: 'CervoNeue';
            src: url('../fonts/Typoforge Studio - CervoNeue-BlackNeue.woff2') format('woff2');
            color: var(--berry-purple);
            margin-bottom: 1.5rem;
            font-size: 1.8rem;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--text-dark);
        }
        
        .form-group input {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid var(--berry-purple-20);
            border-radius: 12px;
            font-size: 1rem;
            font-family: 'Poppins', sans-serif;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: var(--berry-purple);
            box-shadow: 0 0 0 4px var(--berry-purple-20);
        }
        
        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            cursor: pointer;
            font-size: 0.95rem;
        }
        
        .checkbox-label input[type="checkbox"] {
            cursor: pointer;
            width: 18px;
            height: 18px;
            accent-color: var(--berry-purple);
        }
        
        .checkbox-label:hover {
            color: var(--berry-purple);
        }
        
        .checkbox-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem 1rem;
        }
        
        .modal-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }
        
        .btn-modal {
            flex: 1;
            padding: 0.875rem;
            border-radius: 12px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
        }
        
        .btn-modal-primary {
            background: var(--berry-purple);
            color: white;
        }
        
        .btn-modal-primary:hover {
            background: var(--berry-purple-dark);
        }
        
        .btn-modal-secondary {
            background: var(--berry-bg);
            color: var(--text-dark);
        }
        
        .btn-modal-secondary:hover {
            background: var(--berry-purple-20);
        }
        
        .empty-state {
            text-align: center;
            padding: 3rem;
            color: var(--text-light);
        }
        
        .empty-state p {
            margin-top: 1rem;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }
            
            .users-grid-container {
                height: 50vh; /* Half screen on mobile */
            }
            
            .selected-sidebar {
                border-left: none;
                border-top: 3px solid var(--berry-purple-20);
                height: 50vh; /* Half screen on mobile */
            }
            
            .top-bar {
                flex-direction: column;
                align-items: stretch;
            }
            
            .top-bar-left {
                max-width: 100%;
            }
            
            .top-bar-logo {
                justify-content: center;
            }
            
            .header-logo {
                height: 120px;
            }
            
            .search-section {
                min-width: 100%;
            }
            
            .search-filters {
                justify-content: center;
                gap: 0.5rem;
            }
            
            .radio-label {
                font-size: 0.85rem;
            }
            
            .button-group {
                justify-content: stretch;
            }
            
            .button-group button {
                flex: 1;
            }
        }

/* User Data Preview Section */
#selectedUsersPreview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.preview-container {
    background: var(--berry-bg);
    border-radius: 16px;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.preview-container h3 {
    color: var(--berry-purple);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.preview-card {
    background: white;
    border: 2px solid var(--berry-purple-20);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.preview-card:hover {
    border-color: var(--berry-purple);
    box-shadow: 0 4px 12px rgba(121, 36, 130, 0.1);
}

.preview-card h4 {
    color: var(--berry-purple);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
}

.editable-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--berry-purple-10);
}

.editable-field:last-child {
    border-bottom: none;
}

.editable-field label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    min-width: 120px;
}

.editable-field span {
    flex: 1;
    margin: 0 1rem;
    color: var(--text-dark);
}

.editable-field .missing {
    color: #e74c3c;
    font-style: italic;
    font-weight: 500;
}

.editable-field button {
    padding: 0.4rem 0.8rem;
    border: none;
    background: var(--berry-purple);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.editable-field button:hover {
    background: #5c1b64;
    transform: translateY(-1px);
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 2px solid var(--berry-purple-20);
}

.preview-actions button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .preview-actions button {
        width: 100%;
    }
}

/* Wide Modal for Print Settings */
.modal-content-wide {
    max-width: 900px;
    width: 95%;
}

/* Top Row Settings */
.settings-top-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--berry-purple-20);
}

.form-group-inline label.radio-label {
    display: inline-flex;
    margin-right: 1rem;
}

/* Two Column Checkbox Sections */
.checkbox-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.checkbox-section {
    border: 2px solid var(--berry-purple-20);
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(121, 36, 130, 0.03);
}

.checkbox-section h4 {
    color: var(--berry-purple);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--berry-purple-20);
    padding-bottom: 0.5rem;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label-qr {
    opacity: 0.9;
}

.checkbox-label-qr input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label-qr input[type="checkbox"]:disabled + span {
    opacity: 0.5;
    font-style: italic;
}

@media (max-width: 768px) {
    .modal-content-wide {
        width: 98%;
        max-width: none;
    }
    
    .settings-top-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Element Positioning Controls */
.position-control {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--berry-purple-10);
}

.position-control:last-child {
    border-bottom: none;
}

.position-label {
    font-weight: 600;
    min-width: 120px;
    color: var(--text-dark);
}

.position-inputs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.radio-label-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.radio-label-inline input[type="radio"] {
    margin-right: 0.25rem;
}

.position-inputs input[type="number"] {
    border: 2px solid var(--berry-purple-20);
    border-radius: 6px;
    font-family: var(--font-primary);
}

.position-inputs input[type="number"]:focus {
    outline: none;
    border-color: var(--berry-purple);
}

/* Color Picker Styling */
.color-picker-group {
    display: flex;
    flex-direction: column;
}

.color-picker-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.color-picker-group input[type="color"] {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-picker-group input[type="color"]:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(121, 36, 130, 0.3);
}

.color-picker-group input[type="color"]:focus {
    outline: none;
    border-color: var(--berry-purple);
    box-shadow: 0 0 0 3px rgba(121, 36, 130, 0.2);
}

@media (max-width: 768px) {
    #textColorsGroup > div:first-child {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Layout Editor Styles */
.layout-element {
    position: absolute;
    border: 2px dashed rgba(255, 208, 0, 1);
    background: rgba(255, 208, 0, 0.1);
    cursor: move;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: black;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.layout-element:hover {
    background: rgba(255, 208, 0, 0.4);
    border-color: rgba(255, 208, 0, 1);
    box-shadow: 0 2px 8px rgba(115, 94, 0, 0.3);
    z-index: 100;
}

.layout-element.dragging {
    opacity: 0.6;
    cursor: grabbing;
    z-index: 1000;
}

.element-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 208, 0, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    bottom: -6px;
    right: -6px;
    cursor: nwse-resize;
}

.element-list-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border: 2px solid var(--berry-purple);
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.element-list-item.active {
    border-color: var(--berry-purple);
    background: var(--berry-purple-20);
}

.element-position-display {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Accent Button Style */
.btn-modal-accent {
    background: linear-gradient(135deg, #9d4aaa 0%, #792482 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-modal-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 36, 130, 0.3);
}

/* Color & Size Group */
.color-size-group {
    display: flex;
    flex-direction: column;
}

.color-size-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Reception Mode Button */
.btn-reception {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-reception:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Reception Mode Overlay */
.reception-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--berry-bg) 0%, #ede4f0 100%);
    z-index: 2000;
    flex-direction: column;
    overflow: hidden;
}

.reception-overlay.active {
    display: flex;
}

.reception-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(121, 36, 130, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(121, 36, 130, 0.2);
    position: relative;
}

.reception-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.reception-logo {
    height: 100px;
    width: 100px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.reception-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.reception-header h1 {
    font-family: 'CervoNeue', 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.reception-title p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0.25rem 0 0 0;
    font-weight: 400;
}

.reception-sort-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.reception-sort-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid white;
    border-radius: 25px;
    background: transparent;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.reception-sort-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.reception-sort-btn.active {
    background: white;
    color: var(--berry-purple);
}

.reception-users-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    align-content: start;
}

.reception-user-card {
    background: var(--berry-white);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 8px 24px rgba(121, 36, 130, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reception-user-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(121, 36, 130, 0.2);
    border-color: var(--berry-purple);
}

.reception-user-card:active {
    transform: translateY(-4px) scale(1.01);
}

.reception-user-card .user-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--berry-purple-20);
    box-shadow: 0 4px 12px rgba(121, 36, 130, 0.15);
}

.reception-user-card .user-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--berry-purple);
    margin-bottom: 0.5rem;
}

.reception-user-card .user-title {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.reception-user-card .user-department {
    font-size: 0.95rem;
    color: var(--text-light);
}

.reception-user-card .user-company {
    font-size: 0.9rem;
    color: var(--berry-purple-light);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Reception Exit Button */
.reception-exit-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(121, 36, 130, 0.3);
    border: 2px solid var(--berry-purple-40);
    color: var(--berry-purple);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    opacity: 0.5;
}

.reception-exit-btn:hover {
    background: var(--berry-purple);
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

/* Reception User Detail Modal */
.reception-user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(45, 24, 48, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.reception-user-modal.active {
    display: flex;
}

.reception-user-modal-content {
    background: var(--berry-white);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(121, 36, 130, 0.4);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reception-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--berry-purple-20);
    border: none;
    color: var(--berry-purple);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reception-modal-close:hover {
    background: var(--berry-purple);
    color: white;
    transform: scale(1.1);
}

.reception-user-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reception-user-detail .detail-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--berry-purple);
    box-shadow: 0 8px 24px rgba(121, 36, 130, 0.25);
}

.reception-user-detail .detail-name {
    font-family: 'CervoNeue', 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--berry-purple);
    margin-bottom: 0.5rem;
}

.reception-user-detail .detail-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.reception-user-detail .detail-department {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.reception-user-detail .detail-company {
    font-size: 1rem;
    color: var(--berry-purple-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.reception-user-detail .detail-contact {
    width: 100%;
    padding: 1rem;
    background: var(--berry-purple-20);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.reception-user-detail .detail-contact p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.reception-user-detail .detail-contact a {
    color: var(--berry-purple);
    text-decoration: none;
}

.reception-user-detail .detail-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--berry-bg) 0%, var(--berry-purple-20) 100%);
    border-radius: 16px;
    width: 100%;
}

.reception-user-detail .detail-qr-section h3 {
    font-size: 1rem;
    color: var(--berry-purple);
    margin-bottom: 1rem;
    font-weight: 600;
}

.reception-user-detail .detail-qr-code {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(121, 36, 130, 0.15);
}

.reception-user-detail .detail-qr-code canvas,
.reception-user-detail .detail-qr-code img {
    display: block;
    max-width: 200px;
    height: auto;
}

/* Reception Mode - Responsive */
@media (max-width: 768px) {
    .reception-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .reception-logos {
        gap: 1rem;
    }

    .reception-logo {
        height: 70px;
        width: 70px;
    }

    .reception-title {
        position: static;
        transform: none;
    }

    .reception-header h1 {
        font-size: 1.8rem;
    }

    .reception-title p {
        font-size: 0.9rem;
    }

    .reception-sort-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .reception-sort-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .reception-users-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .reception-user-card .user-photo {
        width: 100px;
        height: 100px;
    }

    .reception-user-card .user-name {
        font-size: 1.1rem;
    }

    .reception-exit-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1rem;
        right: 1rem;
    }

    .reception-user-modal-content {
        padding: 2rem;
        max-width: 95%;
    }

    .reception-user-detail .detail-photo {
        width: 120px;
        height: 120px;
    }

    .reception-user-detail .detail-name {
        font-size: 1.5rem;
    }
}
