/*
 * This is a manifest file that'll be compiled into application.css.
 *
 *= require_tree .
 *= require_self
 */

@import url("/assets/landing-0d3329de.css");

/* App Logo Styles */
.app-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.header h1 {
    margin: 0;
    display: flex;
    align-items: center;
}

/* Terms and Conditions Styles */
.terms-section {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

.terms-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.terms-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.last-updated {
    color: #718096;
    font-size: 14px;
    font-style: italic;
}

.terms-content {
    line-height: 1.8;
}

.terms-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f7fafc;
}

.terms-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-item h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.terms-item p {
    color: #4a5568;
    margin-bottom: 12px;
}

.terms-item ul {
    margin-left: 20px;
    color: #4a5568;
}

.terms-item li {
    margin-bottom: 8px;
}

.prohibited {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 20px;
    border-bottom: 1px solid #feb2b2 !important;
}

.prohibited h2 {
    color: #c53030;
}

.contact-info {
    background: #f7fafc;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #4299e1;
}

.contact-info a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.terms-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

/* User Management Styles */
/* Search and Filter Section */
.search-filter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    margin-bottom: 32px;
}

.search-filter-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Search Container */
.search-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    pointer-events: none;
}

.search-input {
    flex: 1;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-search {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Collapsible Filters Accordion */
.filters-accordion {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 16px;
    color: #2d3748;
    background: white;
    transition: all 0.3s ease;
    list-style: none;
}

.filters-toggle::-webkit-details-marker {
    display: none;
}

.filters-toggle:hover {
    background: #f7fafc;
}

.icon-filter {
    color: #667eea;
    flex-shrink: 0;
}

.icon-chevron {
    color: #a0aec0;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.filters-accordion[open] .icon-chevron {
    transform: rotate(180deg);
}

/* Filters Content */
.filters-content {
    padding: 24px;
    background: #f7fafc;
    border-top: 2px solid #e2e8f0;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-of-type {
    margin-bottom: 20px;
}

.filter-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section-title svg {
    color: #667eea;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.filter-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-chip:hover .chip-content {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Selected but not applied state (lighter purple) */
.filter-chip.selected .chip-content {
    background: linear-gradient(135deg, #c3b1e1 0%, #d4c5f9 100%);
    border-color: #b8a2d7;
    color: #5a3a8f;
    box-shadow: 0 4px 12px rgba(184, 162, 215, 0.3);
    transform: scale(1.02);
}

/* Applied state (active - darker purple) */
.filter-chip.active .chip-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Hover on selected state */
.filter-chip.selected:hover .chip-content {
    border-color: #9f7aea;
    transform: scale(1.02) translateY(-2px);
}

.chip-icon {
    font-size: 16px;
    line-height: 1;
}

.chip-text {
    font-weight: 500;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.btn-apply {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-clear {
    padding: 14px 24px;
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-clear:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* New User Card Design */
.user-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.user-card.inactive {
    background: #fff5f5;
    border-color: #feb2b2;
}

/* User Card Header */
.user-card-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f7fafc;
}

.user-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-name-row h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.user-email {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.user-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-status.active {
    background: #c6f6d5;
    color: #22543d;
}

.user-status.inactive {
    background: #fed7d7;
    color: #c53030;
}

/* Features Section */
.user-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
}

.badge-design {
    background: #e6fffa;
    color: #047857;
    border: 1px solid #99f6e4;
}

.badge-onetime {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-password {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-url-onetime {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.badge-url-password {
    background: #ffe4e6;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.badge-geo {
    background: #dfe8ff;
    color: #1e3a8a;
    border: 1px solid #a5b4fc;
}

.badge-edit {
    background: #fce7f3;
    color: #9f1239;
    border: 1px solid #fbcfe8;
}

.badge-api {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}

/* Actions Grid */
.user-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.btn-action {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action.btn-view {
    background: #4299e1;
    color: white;
}

.btn-action.btn-view:hover {
    background: #3182ce;
}

.btn-action.btn-feature {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.btn-action.btn-feature:hover {
    background: #e2e8f0;
    border-color: #a0aec0;
}

.btn-action.btn-deactivate {
    background: #fc8181;
    color: white;
}

.btn-action.btn-deactivate:hover {
    background: #f56565;
}

.btn-action.btn-activate {
    background: #68d391;
    color: white;
}

.btn-action.btn-activate:hover {
    background: #48bb78;
}

.btn-action.btn-protected {
    background: #e2e8f0;
    color: #718096;
    cursor: not-allowed;
    border: 1px solid #cbd5e0;
}

/* Legacy styles - keeping for compatibility */
.user-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

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

.user-item.inactive {
    background: #fed7d7;
    border-color: #feb2b2;
    opacity: 0.8;
}

.user-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.user-info p {
    margin: 0 0 8px 0;
    color: #718096;
    font-size: 14px;
}

.user-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-toggle {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-detail {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.user-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.info-item span {
    color: #2d3748;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .form-section,
    .qr-codes-section {
        padding: 20px;
    }

    .qr-code-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .qr-code-actions {
        flex-direction: row;
        align-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
        min-width: auto;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .user-actions {
        align-self: flex-end;
    }

    /* New User Card Responsive */
    .user-card {
        padding: 16px;
    }

    .user-actions-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .user-features {
        gap: 6px;
    }

    .feature-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    .user-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-menu-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 42px;
}

.lang-menu-btn:hover {
    background: #f8f9fa;
    border-color: #cbd5e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.language-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.flag-icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.lang-menu .menu-item:hover {
    background: #f8f9fa;
}

.lang-menu .menu-item.active {
    background: #e6fffa;
    color: #065f46;
    font-weight: 600;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header h1:hover {
    transform: scale(1.05);
}

/* Navigation styles */
.user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-text {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.admin-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.btn-nav {
    background: #4299e1;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

/* Language selector */
.language-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-link {
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.lang-link:hover {
    color: #4299e1;
    border-color: #4299e1;
}

.lang-link.active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

/* Main content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Form section */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

.form-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background-color: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Button styles */
/* ============================================
   BUTTON SYSTEM - Business & Professional Design
   ============================================ */

/* Base Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    line-height: 1.5;
}

/* Primary Button - Purple Gradient */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b3fa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* Form section buttons should be full width */
.form-section .btn {
    width: 100%;
    display: block;
    margin-top: 10px;
}

/* Success Button - Green Gradient */
.btn-success {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(56, 161, 105, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(56, 161, 105, 0.4);
}

/* Danger Button - Red Gradient */
.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.4);
}

/* Secondary Button - Gray Gradient */
.btn-secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(113, 128, 150, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(113, 128, 150, 0.4);
}

/* Info Button - Blue Gradient */
.btn-info,
.btn-view {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}

.btn-info:hover,
.btn-view:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.4);
}

/* Download Button - Green Gradient (same as success) */
.btn-download {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(56, 161, 105, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(56, 161, 105, 0.4);
}

/* Analytics Button - Purple Gradient */
.btn-analytics {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-analytics:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b3fa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* Outline Buttons */
.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Navigation Buttons */
.btn-nav {
    background: transparent;
    color: #667eea;
    padding: 8px 16px;
    font-size: 14px;
    border: 2px solid transparent;
}

.btn-nav:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
    border-color: #667eea;
    transform: none;
    box-shadow: none;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-md {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* Button Widths */
.btn-block {
    width: 100%;
    display: block;
}

.btn-auto {
    width: auto;
}

/* ============================================
   END BUTTON SYSTEM
   ============================================ */

/* Navigation Buttons */
.btn-nav {
    background: transparent;
    color: #667eea;
    padding: 8px 16px;
    font-size: 14px;
    border: 2px solid transparent;
}

.btn-nav:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
    border-color: #667eea;
    transform: none;
    box-shadow: none;
}

/* Native Dialog Element Styles - Direct targeting */
dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: white !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 40px !important;
    max-width: 480px !important;
    width: 90% !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
    z-index: 10000 !important;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

dialog p,
dialog h2,
dialog h3 {
    color: #2d3748 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    margin: 0 0 32px 0 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

dialog form {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 0 !important;
}

dialog button,
dialog input[type="submit"] {
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    min-width: 100px !important;
}

dialog button[value="confirm"],
dialog input[type="submit"],
dialog button:last-of-type {
    background: #dc2626 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
}

dialog button[value="confirm"]:hover,
dialog input[type="submit"]:hover,
dialog button:last-of-type:hover {
    background: #b91c1c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4) !important;
}

dialog button[value="cancel"],
dialog button:first-of-type {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border: 2px solid #e5e7eb !important;
}

dialog button[value="cancel"]:hover,
dialog button:first-of-type:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    transform: translateY(-1px) !important;
}

/* Turbo Confirm Dialog Styles */
/* Important: Using !important to override any default Turbo styles */
turbo-confirm-dialog,
dialog[open][method="dialog"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    animation: fadeIn 0.2s ease !important;
    border: none !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

turbo-confirm-dialog>div,
turbo-confirm-dialog div[role="document"],
dialog[open][method="dialog"]>div {
    background: white !important;
    border-radius: 20px !important;
    padding: 40px !important;
    max-width: 480px !important;
    width: 90% !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
    animation: slideUp 0.3s ease !important;
    border: none !important;
    margin: 0 auto !important;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

turbo-confirm-dialog p,
turbo-confirm-dialog div[role="document"] p,
dialog[open][method="dialog"] p {
    color: #2d3748 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    margin: 0 0 32px 0 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

turbo-confirm-dialog [type="submit"],
turbo-confirm-dialog button[value="confirm"],
dialog[open][method="dialog"] [type="submit"] {
    background: #dc2626 !important;
    color: white !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    text-transform: none !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
    min-width: 100px !important;
}

turbo-confirm-dialog [type="submit"]:hover,
turbo-confirm-dialog button[value="confirm"]:hover,
dialog[open][method="dialog"] [type="submit"]:hover {
    background: #b91c1c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4) !important;
}

turbo-confirm-dialog button[type="button"],
turbo-confirm-dialog button[value="cancel"],
dialog[open][method="dialog"] button[type="button"] {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border: 2px solid #e5e7eb !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    text-transform: none !important;
    min-width: 100px !important;
}

turbo-confirm-dialog button[type="button"]:hover,
turbo-confirm-dialog button[value="cancel"]:hover,
dialog[open][method="dialog"] button[type="button"]:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    transform: translateY(-1px) !important;
}

turbo-confirm-dialog form,
dialog[open][method="dialog"] form {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 8px !important;
    flex-direction: row !important;
}

/* QR Codes list */
.qr-codes-section {
    background: #f7fafc;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
    border: none;
}

.qr-codes-section>h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
    text-align: left;
}

.qr-code-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    display: flex;
    gap: 16px;
    align-items: center;
}

.qr-code-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.qr-code-preview-mini {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px;
}

.qr-code-preview-mini svg,
.qr-code-preview-mini img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.qr-code-header {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.qr-code-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qr-code-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qr-code-url {
    color: #718096;
    font-size: 13px;
    word-break: break-all;
    line-height: 1.4;
}

.qr-code-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}

.scan-count {
    color: #718096;
    font-size: 12px;
}

.qr-code-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    align-items: stretch;
    min-width: 140px;
}

.qr-code-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
}

.qr-code-actions form {
    display: flex;
    margin: 0;
    width: 100%;
}

.qr-code-actions form button {
    width: 100%;
}

.qr-code-actions .collection-move-select {
    width: 100%;
    min-width: auto;
}

/* QR Show page actions - horizontal layout */
.qr-show-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* QR Code display page */
.qr-display {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.qr-display h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.qr-display .url {
    color: #4299e1;
    font-size: 18px;
    margin-bottom: 30px;
    word-break: break-all;
}

.qr-code-container {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.qr-code-container img.custom-qr-code {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.qr-code-container svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Collection Assignment Section */
.collection-assignment-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.collection-assignment-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.collection-label {
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    white-space: nowrap;
}

.collection-select {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background: white;
    transition: all 0.2s ease;
}

.collection-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .collection-assignment-form {
        flex-direction: column;
        align-items: stretch;
    }

    .collection-select {
        min-width: 100%;
    }

    .collection-actions {
        width: 100%;
        justify-content: stretch;
    }

    .collection-actions .btn {
        flex: 1;
    }
}

/* Error messages */
.error-messages {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.error-messages ul {
    list-style: none;
    margin: 0;
}

.error-messages li {
    color: #c53030;
    font-weight: 500;
}

/* Success messages */
.notice {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #22543d;
    font-weight: 500;
}

/* Alert messages */
.alert {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #c53030;
    font-weight: 500;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 16px;
}

/* Main content area */
main {
    flex: 1;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 20px 0;
    text-align: center;
    color: #718096;
    margin-top: auto;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 42px;
}

.user-menu-btn:hover {
    background: #f8f9fa;
    border-color: #cbd5e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.admin-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.menu-item:hover {
    background: #f8f9fa;
}

/* Submenu styles for Admin dropdown */
.menu-item-with-submenu {
    position: relative;
}

.menu-item-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    transition: background-color 0.2s ease;
}

.menu-item-parent:hover {
    background: #f8f9fa;
}

.submenu-arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.menu-item-with-submenu:hover .submenu-arrow {
    transform: rotate(90deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    background: #f8f9fa;
    transition: max-height 0.3s ease;
}

.menu-item-with-submenu:hover .submenu {
    max-height: 200px;
}

.submenu-item {
    display: block;
    padding: 10px 16px 10px 32px;
    text-decoration: none;
    color: #2d3748;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.submenu-item:hover {
    background: #e2e8f0;
}

.logout-btn {
    color: #e53e3e;
    border-top: 1px solid #e2e8f0;
}

.logout-btn:hover {
    background: #fed7d7;
}

/* Tracking and Analytics Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.form-checkbox {
    margin-top: 2px;
}

.checkbox-label {
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
}

.form-text {
    color: #718096;
    font-size: 13px;
    margin-left: 24px;
    margin-top: 4px;
}

.qr-code-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.scan-count {
    color: #718096;
    font-size: 13px;
    font-weight: 500;
    margin-left: 0;
}

.tracking-info {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.tracking-url {
    font-family: monospace;
    color: #2d3748;
    margin-top: 8px;
    word-break: break-all;
}

.quick-stats {
    margin: 24px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Analytics Dashboard - Business Professional */
.analytics-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 80px);
}

/* Header Card */
.analytics-header-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.analytics-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.qr-info h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.qr-meta-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.tracking-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.url-display {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-icon-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-icon-header:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary-header {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.2);
}

.btn-secondary-header:hover {
    background: rgba(148, 163, 184, 0.25);
}

/* Advanced Analytics Button in Header */
.header-actions .btn-advanced-analytics {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.header-actions .btn-advanced-analytics:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.header-actions .btn-advanced-analytics svg {
    stroke-width: 2.5;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.8;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.kpi-card.primary {
    color: #3b82f6;
}

.kpi-card.success {
    color: #10b981;
}

.kpi-card.warning {
    color: #f59e0b;
}

.kpi-card.info {
    color: #8b5cf6;
}

.kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: currentColor;
    opacity: 0.1;
}

.kpi-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    opacity: 10;
}

.kpi-content {
    color: inherit;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.kpi-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.kpi-trend.positive {
    color: #10b981;
}

.kpi-trend svg {
    width: 12px;
    height: 12px;
}

/* Analytics Content Grid */
.analytics-content-grid {
    display: grid;
    gap: 1.5rem;
}

.analytics-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.analytics-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(to right, #f8fafc, white);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.card-header svg {
    color: #3b82f6;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

/* Scan Info Grid */
.scan-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.info-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

/* Modern Table */
.modern-table {
    padding: 0;
}

.table-header-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.table-header-row .th {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.table-row-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    align-items: center;
}

.table-row-item:hover {
    background: #f8fafc;
}

.table-row-item:last-child {
    border-bottom: none;
}

.time-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.time-cell svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.device-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid;
}

.device-pill.device-mobile {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-color: #93c5fd;
}

.device-pill.device-desktop {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    border-color: #a5b4fc;
}

.device-pill.device-tablet {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
    border-color: #f9a8d4;
}

.device-pill svg {
    flex-shrink: 0;
}

.browser-text {
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
}

.location-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
}

.location-text svg {
    color: #94a3b8;
    flex-shrink: 0;
}

/* Empty State */
.empty-scans-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-scans-state svg {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-scans-state h4 {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-scans-state p {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Analytics Responsive Design */
@media (max-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .analytics-dashboard {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .qr-info h1 {
        font-size: 1.5rem;
    }

    .header-actions {
        width: 100%;
    }

    .btn-icon-header {
        flex: 1;
        justify-content: center;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .kpi-value {
        font-size: 2rem;
    }

    .scan-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .table-header-row {
        display: none;
    }

    .table-row-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .form-section,
    .qr-codes-section {
        padding: 20px;
    }

    .qr-code-header {
        flex-direction: column;
        gap: 12px;
    }

    .qr-code-actions {
        align-self: flex-end;
        width: auto;
        min-width: 140px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .analytics-actions {
        flex-direction: column;
    }
}

/* vCard Form Styles */
.qr-type-fields {
    margin-top: 20px;
}

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

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-select.error {
    border-color: #f56565;
}

/* vCard Type Indicator */
.qr-type-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    margin: 0;
}

.qr-type-badge.url {
    background-color: #bee3f8;
    color: #2b6cb0;
}

.qr-type-badge.vcard {
    background-color: #c6f6d5;
    color: #276749;
}

/* Responsive QR Code List */
@media (max-width: 768px) {
    .qr-code-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .qr-code-preview-mini {
        width: 60px;
        height: 60px;
    }

    .qr-code-header {
        width: 100%;
    }

    .qr-code-actions {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .qr-code-actions .btn {
        flex: 1;
        min-width: calc(50% - 3px);
    }

    .qr-code-actions form {
        flex: 1;
        min-width: 100%;
    }

    .qr-code-info h3 {
        font-size: 14px;
    }

    .qr-code-url {
        font-size: 12px;
    }

    .vcard-form-grid {
        grid-template-columns: 1fr;
    }
}

/* vCard Form Styles */
.qr-type-fields {
    margin-top: 20px;
}

.vcard-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
}

.form-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-select.error {
    border-color: #ef4444;
}

/* vCard Type Badge */
.qr-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-type-badge.url {
    background-color: #dbeafe;
    color: #1e40af;
}

.qr-type-badge.vcard {
    background-color: #ecfdf5;
    color: #059669;
}

/* Responsive vCard Form */
@media (max-width: 768px) {
    .vcard-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   PAGINATION - Business & Professional Design
   ============================================ */

.pagination-wrapper {
    margin-top: 32px;
    padding: 24px 0;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pagination .page,
.pagination .first,
.pagination .prev,
.pagination .next,
.pagination .last,
.pagination .gap {
    display: inline-block;
}

.pagination a,
.pagination .current,
.pagination .gap {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    line-height: 1.5;
}

/* Normal page links */
.pagination a {
    background: white;
    color: #667eea;
    border: 2px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #5a67d8;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

/* Current active page */
.pagination .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    cursor: default;
}

/* Gap/ellipsis */
.pagination .gap {
    background: transparent;
    color: #cbd5e0;
    border: 2px solid transparent;
    cursor: default;
    font-weight: 700;
    box-shadow: none;
}

/* First and Last page links - Compact & Professional */
.pagination .first a,
.pagination .last a {
    font-weight: 600;
    background: white;
    color: #667eea;
    padding: 8px 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.pagination .first a::before {
    content: "«";
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.pagination .last a::after {
    content: "»";
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.pagination .first a:hover,
.pagination .last a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Previous and Next - Compact & Aligned */
.pagination .prev a,
.pagination .next a {
    font-weight: 600;
    padding: 8px 12px;
    background: white;
    color: #4299e1;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.pagination .prev a::before {
    content: "‹";
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.pagination .next a::after {
    content: "›";
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.pagination .prev a:hover,
.pagination .next a:hover {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

/* Disabled state */
.pagination .disabled a {
    background: #f7fafc;
    color: #cbd5e0;
    border-color: #e2e8f0;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination .disabled a:hover {
    background: #f7fafc;
    color: #cbd5e0;
    transform: none;
    box-shadow: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pagination-wrapper {
        margin-top: 24px;
        padding: 20px 0;
    }

    .pagination {
        gap: 6px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .pagination a,
    .pagination .current {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }

    .pagination .prev a,
    .pagination .next a {
        padding: 8px 14px;
    }

    /* Hide First/Last on mobile */
    .pagination .first,
    .pagination .last {
        display: none;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
        padding: 8px 10px;
    }

    .pagination a,
    .pagination .current,
    .pagination .gap {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }

    .pagination .prev a,
    .pagination .next a {
        padding: 6px 12px;
    }

    /* Simplify arrows on small mobile */
    .pagination .prev a::before {
        content: "‹ ";
        margin-right: 2px;
    }

    .pagination .next a::after {
        content: " ›";
        margin-left: 2px;
    }
}

/* ============================================
   END PAGINATION
   ============================================ */

/* QR Design Customization Styles */
.design-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #cbd5e0;
}

.design-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cost-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.cost-badge.free {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.logo-upload-group {
    grid-column: 1 / -1;
}

.form-color-input {
    width: 100%;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-color-input:hover {
    border-color: #cbd5e0;
    transform: scale(1.02);
}

.form-color-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-file-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.form-file-input:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.form-file-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-file-input::file-selector-button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.form-file-input::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Geo URL Styles */
.geo-url-section {
    margin-top: 20px;
}

.geo-countries-container {
    margin-top: 20px;
}

.geo-country-row {
    margin-bottom: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.geo-country-fields {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 15px;
    align-items: end;
}

.geo-country-fields .form-group {
    margin-bottom: 0;
}

.geo-country-fields .btn-remove-country {
    padding: 12px 20px;
    height: 48px;
    margin-top: 25px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background-color: #fff;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

@media (max-width: 768px) {
    .design-grid {
        grid-template-columns: 1fr;
    }

    .geo-country-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .geo-country-fields .btn-remove-country {
        margin-top: 0;
        width: 100%;
    }

    .search-filter-section {
        padding: 20px;
    }

    .search-container {
        padding: 16px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        padding: 14px 16px;
    }

    .btn-search {
        width: 100%;
    }

    .filters-content {
        padding: 16px;
    }

    .filter-chips {
        gap: 8px;
    }

    .chip-content {
        padding: 8px 12px;
        font-size: 13px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .btn-apply,
    .btn-clear {
        width: 100%;
    }

    /* Language and User Dropdowns - Mobile Responsive */
    .language-dropdown,
    .user-dropdown {
        position: static;
    }

    .lang-menu,
    .user-menu {
        position: fixed;
        top: auto;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: calc(100vw - 20px);
        margin-top: 8px;
    }

    .lang-menu-btn,
    .user-menu-btn {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
        min-height: 38px;
        border-radius: 8px;
    }

    .admin-badge {
        font-size: 8px;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .flag-icon {
        font-size: 16px;
    }

    .dropdown-arrow {
        font-size: 8px;
    }

    /* Header spacing for mobile */
    .header .container>div {
        gap: 8px !important;
    }

    .header .container>div>div {
        gap: 8px !important;
    }
}

/* ============================================
   QR Demo Interactive Cards - Professional Design
   ============================================ */

.qr-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
}

.qr-code-sample {
    position: relative;
    width: 280px;
    height: 280px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.qr-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2));
}

/* Animated QR pixels */
.qr-pixel {
    animation: pixelPulse 3s ease-in-out infinite;
}

.qr-pixel:nth-child(2n) {
    animation-delay: 0.1s;
}

.qr-pixel:nth-child(3n) {
    animation-delay: 0.2s;
}

.qr-pixel:nth-child(4n) {
    animation-delay: 0.3s;
}

@keyframes pixelPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Scanning line animation */
.qr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: scan 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(280px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Interactive QR Type Cards Grid */
.qr-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 500px;
}

.qr-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qr-type-card:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.qr-type-card:active {
    transform: translateY(-2px);
}

.qr-type-icon {
    font-size: 32px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.qr-type-card:hover .qr-type-icon {
    transform: scale(1.15) rotate(5deg);
}

.qr-type-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    transition: color 0.3s ease;
}

.qr-type-card:hover .qr-type-label {
    color: #667eea;
}

/* Premium card styling */
.qr-type-card.qr-type-premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.qr-type-card.qr-type-premium:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    border-color: #f59e0b;
    box-shadow: 0 12px 24px rgba(251, 191, 36, 0.25);
}

.premium-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .qr-demo {
        padding: 24px;
        gap: 24px;
    }

    .qr-code-sample {
        width: 220px;
        height: 220px;
        padding: 16px;
    }

    .qr-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 100%;
    }

    .qr-type-card {
        padding: 16px 12px;
    }

    .qr-type-icon {
        font-size: 28px;
    }

    .qr-type-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .qr-demo {
        padding: 20px;
        gap: 20px;
    }

    .qr-code-sample {
        width: 180px;
        height: 180px;
        padding: 12px;
    }

    .qr-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .qr-type-card {
        padding: 14px 10px;
    }

    .qr-type-icon {
        font-size: 24px;
    }

    .qr-type-label {
        font-size: 11px;
    }

    .premium-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* Collections Styles */
.collections-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.collection-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.collection-card.uncategorized {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px dashed #cbd5e0;
}

.collection-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.collection-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.collection-icon-large {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.collection-info {
    flex: 1;
}

.collection-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.collection-description {
    color: #718096;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.collection-count {
    color: #a0aec0;
    font-size: 0.85rem;
    margin: 0;
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: white;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.btn-outline:hover {
    background: #f7fafc;
    border-color: #a0aec0;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #718096;
    margin-bottom: 1.5rem;
}

/* Collection Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.collection-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.icon-selector,
.color-selector {
    margin-top: 0.5rem;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.icon-option {
    padding: 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.icon-option:hover {
    border-color: #4299e1;
    transform: scale(1.1);
}

.icon-option.selected {
    border-color: #4299e1;
    background: #ebf8ff;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-option {
    width: 100%;
    height: 50px;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-option.selected {
    border-color: #2d3748;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #2d3748;
}

.custom-color-input {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.custom-color-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
}

#custom_color_picker {
    width: 100%;
    height: 50px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Collection Show Page */
.collection-show {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.collection-title-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.collection-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.collection-actions-bar {
    display: flex;
    gap: 1rem;
}

.qr-codes-list {
    display: grid;
    gap: 1rem;
}

.qr-code-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.qr-preview img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.qr-preview svg {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
}

.qr-info {
    flex: 1;
}

.qr-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #2d3748;
}

.qr-type {
    color: #718096;
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

.qr-date {
    color: #a0aec0;
    font-size: 0.8rem;
    margin: 0;
}

.qr-actions {
    display: flex;
    gap: 0.5rem;
}

/* Collection Badge in QR List */
.badge-collection {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Collection Filter */
.collection-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-form {
    margin: 0;
}

.form-select-sm {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.form-select-sm:focus {
    outline: none;
    border-color: #4299e1;
}

/* Responsive */
@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }

    .icon-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 0.4rem;
    }

    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .collection-title-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .qr-code-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* QR List Header */
.qr-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    gap: 1rem;
    flex-wrap: wrap;
}

.qr-list-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
}

.qr-list-title h2 {
    margin: 0 !important;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    text-align: left !important;
}

.qr-count-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.qr-list-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-form-inline {
    display: flex;
    margin: 0;
}

.filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    color: #2d3748;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 200px;
    font-weight: 500;
}

.filter-select:hover {
    border-color: #4299e1;
    background-color: #f7fafc;
}

.filter-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.btn-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-control:hover {
    border-color: #4299e1;
    color: #2b6cb0;
    background: #ebf8ff;
}

.btn-control-active {
    border-color: #4299e1;
    color: #2b6cb0;
    background: #ebf8ff;
}

/* Collection Move Select in QR List */
.collection-move-select {
    padding: 6px 24px 6px 8px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 13px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 160px;
}

.collection-move-select:hover {
    border-color: #4299e1;
    background-color: #f7fafc;
}

.collection-move-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.collection-move-select option {
    padding: 8px;
}

/* Responsive Header */
@media (max-width: 768px) {
    .qr-list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-list-title {
        justify-content: space-between;
        width: 100%;
    }

    .qr-list-controls {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .filter-select,
    .btn-control {
        width: 100%;
        min-width: auto;
        justify-content: center;
    }
}

/* ============================================
   PROFESSIONAL BUSINESS DASHBOARD
   Modern Design System
   ============================================ */

/* Dashboard Container */
.dashboard-container {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 2rem;
    max-width: 1900px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 80px);
    align-items: start;
}

/* Professional Sidebar */
.dashboard-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    height: fit-content;
    position: relative;
    overflow-y: visible;
    z-index: 1;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.sidebar-title-group {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.sidebar-title-group svg {
    color: #3b82f6;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.sidebar-title-group h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Professional Form Buttons */
.btn-professional {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-professional-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-professional-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Dashboard Main Content */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Professional Header Card */
.dashboard-header-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.dashboard-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-title-section h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-title-section svg {
    flex-shrink: 0;
}

.total-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.dashboard-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form-professional {
    display: flex;
    align-items: center;
}

.filter-group-professional {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.filter-group-professional svg {
    color: #cbd5e1;
    flex-shrink: 0;
}

.filter-select-professional {
    background: transparent;
    border: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.filter-select-professional option {
    background: #1e293b;
    color: white;
}

.btn-header-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-header-action:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-header-active {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Professional QR Cards Grid */
.qr-codes-professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.qr-professional-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.qr-professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Card Preview Section */
.qr-card-preview {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.qr-card-preview svg {
    max-width: 160px;
    max-height: 160px;
    transition: transform 0.3s ease;
}

.qr-professional-card:hover .qr-card-preview svg {
    transform: scale(1.05);
}

.qr-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-professional-card:hover .qr-card-overlay {
    opacity: 1;
}

.overlay-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.overlay-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Card Content */
.qr-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.qr-card-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.qr-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.qr-type-badge-professional {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.qr-type-badge-professional.url,
.qr-type-badge-professional.url_one_time,
.qr-type-badge-professional.url_one_time_password,
.qr-type-badge-professional.geo_url {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.qr-type-badge-professional.vcard {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    border: 1px solid #a5b4fc;
}

.qr-type-badge-professional.wifi {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    color: #6d28d9;
    border: 1px solid #a78bfa;
}

.qr-type-badge-professional.text,
.qr-type-badge-professional.one_time_text,
.qr-type-badge-professional.one_time_text_password {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
    border: 1px solid #f9a8d4;
}

.qr-type-badge-professional.phone {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.qr-card-url-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.qr-card-url-section svg {
    color: #64748b;
    flex-shrink: 0;
}

.qr-card-url-text {
    font-size: 0.875rem;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.qr-card-meta-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.meta-tracking {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-color: #6ee7b740;
}

.meta-no-tracking {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border-color: #cbd5e140;
}

.meta-owner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #fcd34d40;
}

/* Card Actions */
.qr-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.btn-card-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid;
}

.btn-view-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
}

.btn-view-card:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-analytics-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-color: #7c3aed;
}

.btn-analytics-card:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

/* More Menu */
.btn-card-more-menu {
    position: relative;
}

.btn-card-more {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-card-more:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.card-more-dropdown {
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.show-menu .card-more-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.dropdown-item svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.dropdown-item-danger {
    color: #dc2626;
}

.dropdown-item-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.dropdown-item-danger svg {
    color: #dc2626;
}

.dropdown-form {
    padding: 0.5rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.dropdown-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.dropdown-label svg {
    color: #94a3b8;
}

.dropdown-select {
    width: calc(100% - 2rem);
    margin: 0 1rem 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #f8fafc;
    cursor: pointer;
}

.dropdown-select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Empty State */
.empty-state-professional {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.empty-state-professional svg {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-state-professional h3 {
    font-size: 1.5rem;
    color: #475569;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.empty-state-professional p {
    font-size: 1rem;
    color: #94a3b8;
}

/* Pagination */
.pagination-professional {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Dashboard */
@media (max-width: 1600px) {
    .dashboard-container {
        grid-template-columns: 450px 1fr;
    }
}

@media (max-width: 1400px) {
    .dashboard-container {
        grid-template-columns: 420px 1fr;
    }
}

@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .dashboard-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
        gap: 1rem;
    }

    .dashboard-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-header-action {
        width: 100%;
        justify-content: center;
    }

    .qr-codes-professional-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-sidebar {
        padding: 1.5rem;
    }

    .qr-card-actions {
        flex-direction: column;
    }

    .btn-card-action {
        width: 100%;
    }
}

/* ============================================
   QR CODE SHOW PAGE - Professional Design
   ============================================ */

.qr-show-professional {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 80px);
}

/* Header Card */
.qr-show-header-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.qr-show-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.qr-show-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.qr-show-title-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.qr-show-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.qr-show-icon svg {
    color: #60a5fa;
}

.qr-show-title-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.75rem 0;
}

.qr-show-meta-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qr-type-badge-show {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid;
}

.qr-type-badge-show.url,
.qr-type-badge-show.url_one_time,
.qr-type-badge-show.url_one_time_password,
.qr-type-badge-show.geo_url {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.qr-type-badge-show.vcard {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.3);
}

.qr-type-badge-show.wifi {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.3);
}

.qr-type-badge-show.text,
.qr-type-badge-show.one_time_text,
.qr-type-badge-show.one_time_text_password {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
    border-color: rgba(236, 72, 153, 0.3);
}

.qr-type-badge-show.phone {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.tracking-badge-show {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-show-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-show-header:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Grid */
.qr-show-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.qr-show-left-column,
.qr-show-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Card Styling */
.qr-show-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header-show {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(to right, #f8fafc, white);
}

.card-header-show h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.card-header-show svg {
    color: #3b82f6;
}

/* QR Code Display Card */
.qr-code-display-card {
    padding: 2rem;
}

.qr-code-preview-large {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 2px solid #e2e8f0;
}

.qr-code-preview-large svg {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
}

.qr-code-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.btn-qr-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid;
}

.btn-download-qr {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
}

.btn-download-qr:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-analytics-qr {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-color: #7c3aed;
}

.btn-analytics-qr:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-advanced-analytics {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #d97706;
}

.btn-advanced-analytics:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-edit-qr {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
}

.btn-edit-qr:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-delete-qr {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #dc2626;
}

.btn-delete-qr:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Details Card */
.qr-details-card {
    padding: 0;
}

.qr-details-content {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    color: white;
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    word-break: break-word;
}

.detail-text-content {
    font-weight: 400;
    white-space: pre-wrap;
}

/* Stats Card */
.stats-card-show {
    padding: 0;
}

.stats-grid-show {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item-show {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
}

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

.stat-item-show.stat-primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1e40af;
}

.stat-item-show.stat-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #6ee7b7;
    color: #065f46;
}

.stat-item-show.stat-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
    color: #92400e;
}

.stat-icon-show {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon-show svg {
    width: 28px;
    height: 28px;
}

.stat-content-show {
    flex: 1;
}

.stat-number-show {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label-show {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Collection Card */
.collection-card-show {
    padding: 0;
}

.collection-form-show {
    padding: 1.5rem 2rem 2rem;
}

.collection-select-show {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.collection-select-show:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.collection-form-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-collection-save {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-collection-save:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-collection-manage {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-collection-manage:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Info Note Card */
.info-note-card {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    display: flex;
    gap: 1.25rem;
}

.info-note-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.info-note-icon svg {
    color: #3b82f6;
}

.info-note-content {
    flex: 1;
}

.info-note-content p {
    margin: 0;
    color: #1e40af;
    font-weight: 500;
    line-height: 1.6;
}

/* Responsive QR Show */
@media (max-width: 1200px) {
    .qr-show-content-grid {
        grid-template-columns: 1fr;
    }

    .qr-show-right-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .qr-show-professional {
        padding: 1rem;
    }

    .qr-show-header-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .qr-show-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-show-header {
        width: 100%;
        justify-content: center;
    }

    .qr-code-actions-grid {
        grid-template-columns: 1fr;
    }

    .qr-code-preview-large {
        padding: 2rem;
    }

    .qr-code-preview-large svg {
        max-width: 200px;
        max-height: 200px;
    }
}

/* ============================================
   QR CODE EDIT PAGE - Professional Design
   ============================================ */

.qr-edit-professional {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 80px);
}

/* Header Card */
.qr-edit-header-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.qr-edit-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.qr-edit-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.qr-edit-title-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.qr-edit-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.qr-edit-icon svg {
    color: #60a5fa;
}

.qr-edit-title-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
}

.qr-edit-title-text p {
    font-size: 1rem;
    color: #cbd5e1;
    margin: 0;
}

.btn-edit-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-edit-header:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Info Alert */
.info-alert-edit {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.info-alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.info-alert-icon svg {
    color: #3b82f6;
}

.info-alert-content {
    flex: 1;
    color: #1e40af;
    line-height: 1.6;
}

.info-alert-content strong {
    font-weight: 700;
    color: #1e3a8a;
}

/* Content Grid */
.qr-edit-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.qr-edit-left-column,
.qr-edit-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Card */
.qr-edit-form-card,
.qr-preview-card-edit {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header-edit {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(to right, #f8fafc, white);
}

.card-header-edit h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.card-header-edit svg {
    color: #3b82f6;
}

.qr-edit-form-content {
    padding: 2rem;
}

/* Error Messages */
.error-messages-edit {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.error-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.error-icon svg {
    color: #ef4444;
}

.error-messages-edit ul {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.error-messages-edit li {
    color: #991b1b;
    font-weight: 500;
    line-height: 1.6;
}

.error-messages-edit li:before {
    content: '• ';
    color: #dc2626;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Form Groups */
.form-group-edit {
    margin-bottom: 1.5rem;
}

.form-label-edit {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input-edit,
.form-select-edit {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    transition: all 0.2s ease;
}

.form-input-edit:focus,
.form-select-edit:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-edit.error {
    border-color: #ef4444;
}

.form-input-edit.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

textarea.form-input-edit {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-text-edit {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.form-readonly-display {
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    color: #475569;
}

/* Type Badges in Edit */
.qr-type-badge-edit {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid;
}

.qr-type-badge-edit.url,
.qr-type-badge-edit.url_one_time,
.qr-type-badge-edit.url_one_time_password,
.qr-type-badge-edit.geo_url {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-color: #93c5fd;
}

.qr-type-badge-edit.vcard {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
    border-color: #c4b5fd;
}

.qr-type-badge-edit.wifi {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #6b21a8;
    border-color: #d8b4fe;
}

.qr-type-badge-edit.text,
.qr-type-badge-edit.one_time_text,
.qr-type-badge-edit.one_time_text_password {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9f1239;
    border-color: #f9a8d4;
}

.qr-type-badge-edit.phone {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-color: #6ee7b7;
}

/* vCard and WiFi Form Grids */
.vcard-form-grid-edit,
.wifi-form-grid-edit {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Checkbox Group */
.checkbox-group-edit {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-checkbox-edit {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
}

.checkbox-label-edit {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

/* Geo URL Specific */
.geo-country-row-edit {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.btn-add-geo-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-add-geo-edit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-remove-geo-edit {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-geo-edit:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.05);
}

/* Form Actions */
.form-actions-edit {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.btn-save-edit {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-edit:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-cancel-edit {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cancel-edit:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* QR Preview Card */
.qr-preview-content-edit {
    padding: 2rem;
    text-align: center;
}

.qr-preview-display-edit {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.qr-preview-display-edit svg {
    max-width: 280px;
    max-height: 280px;
    width: 100%;
    height: auto;
    display: block;
}

.qr-preview-note-edit {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    margin: 0;
}

/* Responsive Edit Page */
@media (max-width: 1200px) {
    .qr-edit-content-grid {
        grid-template-columns: 1fr;
    }

    .qr-edit-right-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .qr-edit-professional {
        padding: 1rem;
    }

    .qr-edit-header-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .qr-edit-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-edit-header {
        width: 100%;
        justify-content: center;
    }

    .vcard-form-grid-edit,
    .wifi-form-grid-edit {
        grid-template-columns: 1fr;
    }

    .geo-country-row-edit {
        grid-template-columns: 1fr;
    }

    .form-actions-edit {
        flex-direction: column;
    }

    .qr-preview-display-edit svg {
        max-width: 200px;
        max-height: 200px;
    }
}

/* ============================================
   COLLECTIONS INDEX PAGE - Professional Design
   ============================================ */

/* Main container */
.collections-professional {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

/* Header Card */
.collections-header-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.collections-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.collections-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.collections-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.collections-icon svg {
    color: white;
}

.collections-title-text h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.collections-title-text p {
    color: #cbd5e1;
    font-size: 15px;
    margin: 0;
}

.btn-collections-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    white-space: nowrap;
}

.btn-collections-header:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Profile Page Styles */
.profile-info-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

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

.profile-info-blue {
    border-left: 4px solid #3b82f6;
}

.profile-info-green {
    border-left: 4px solid #10b981;
}

.profile-info-orange {
    border-left: 4px solid #f59e0b;
}

.profile-info-label {
    font-size: 13px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.profile-info-value {
    font-size: 16px;
    color: #1a202c;
    font-weight: 600;
}

.profile-api-status {
    margin-bottom: 24px;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.status-active {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    color: #1a472a;
    border: 2px solid #68d391;
}

.status-inactive {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.profile-token-section {
    margin-bottom: 28px;
}

.profile-token-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a202c;
    font-size: 15px;
    margin-bottom: 12px;
}

.profile-token-display-wrapper {
    position: relative;
}

.profile-token-display {
    background: #1a202c;
    border: 3px solid #4a5568;
    border-radius: 12px;
    padding: 20px;
    padding-right: 140px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 14px;
    color: #48bb78;
    word-break: break-all;
    user-select: all;
    line-height: 1.6;
}

.profile-copy-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.4);
    transition: all 0.2s ease;
}

.profile-copy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.5);
}

.profile-warning-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    margin-top: 12px;
    border-radius: 8px;
    color: #92400e;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.profile-btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
}

.profile-btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.5);
}

.profile-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    transition: all 0.2s ease;
}

.profile-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.5);
}

.profile-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

.profile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.5);
}

.profile-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #cbd5e0;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(71, 85, 105, 0.15);
}

.profile-docs-section {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #c7d2fe;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-docs-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    color: white;
}

.profile-docs-content {
    flex: 1;
    min-width: 200px;
}

.profile-docs-content h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.profile-docs-content p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
}

.profile-docs-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
    font-size: 15px;
}

.profile-docs-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.5);
    color: white;
}

.profile-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
}

.profile-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #667eea;
}

.profile-empty-state h3 {
    color: #1a202c;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.profile-empty-state p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.profile-disabled-state {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 3px solid #fca5a5;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #991b1b;
}

.profile-disabled-state svg {
    color: #991b1b;
    margin-bottom: 20px;
}

.profile-disabled-state h3 {
    color: #991b1b;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.profile-disabled-state p {
    color: #7f1d1d;
    font-size: 15px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Collections Grid */
.collections-grid-professional {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* Collection Cards */
.collection-card-professional {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.collection-card-professional:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.collection-card-professional.uncategorized {
    border-left: 4px solid #64748b !important;
}

/* Collection Card Header */
.collection-card-header-pro {
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.collection-icon-pro {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.collection-icon-pro svg {
    color: white;
}

.collection-info-pro {
    flex: 1;
    min-width: 0;
}

.collection-info-pro h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    word-wrap: break-word;
}

.collection-description-pro {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

/* Collection Meta */
.collection-meta-pro {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.collection-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

.collection-count-badge svg {
    color: #64748b;
}

/* Collection Actions */
.collection-actions-pro {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-collection-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-collection-view:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-collection-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.btn-collection-edit:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.btn-collection-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    color: #dc2626;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #fecaca;
    cursor: pointer;
}

.btn-collection-delete:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* Empty State */
.collections-empty-state-pro {
    text-align: center;
    padding: 80px 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.empty-state-icon-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    margin: 0 auto 24px;
}

.empty-state-icon-pro svg {
    color: #94a3b8;
}

.collections-empty-state-pro h2 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.collections-empty-state-pro p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-empty-state-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-empty-state-pro:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .collections-grid-professional {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .collections-professional {
        padding: 16px;
    }

    .collections-header-card {
        padding: 24px;
        margin-bottom: 24px;
    }

    .collections-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .collections-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .collections-icon {
        width: 56px;
        height: 56px;
    }

    .collections-title-text h1 {
        font-size: 24px;
    }

    .btn-collections-header {
        width: 100%;
        justify-content: center;
    }

    .collections-grid-professional {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .collection-card-header-pro {
        padding: 20px;
    }

    .collection-actions-pro {
        padding: 12px 20px;
    }

    .collections-empty-state-pro {
        padding: 60px 24px;
    }
}

/* ============================================
   COLLECTIONS SHOW PAGE - Professional Design
   ============================================ */

/* Main container */
.collection-show-professional {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

/* Header Card */
.collection-show-header-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.collection-show-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.collection-show-title-section {
    display: flex;
    gap: 20px;
    flex: 1;
}

.collection-show-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.collection-show-title-text {
    flex: 1;
}

.collection-show-title-text h1 {
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.collection-show-description {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.collection-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.meta-badge svg {
    color: #64748b;
}

/* Header Actions */
.collection-show-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-collection-show-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    white-space: nowrap;
}

.btn-collection-show-edit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-collection-show-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.btn-collection-show-back:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* QR Codes Grid */
.qr-codes-grid-professional {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* QR Code Card */
.qr-code-card-professional {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.qr-code-card-professional:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* QR Card Preview */
.qr-card-preview-pro {
    padding: 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-preview-display-pro {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qr-preview-display-pro svg {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* QR Card Content */
.qr-card-content-pro {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.qr-card-info-pro h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    word-wrap: break-word;
}

.qr-card-meta-pro {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* QR Type Badges */
.qr-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-type-url {
    background: #dbeafe;
    color: #1e40af;
}

.qr-type-text {
    background: #e0e7ff;
    color: #4338ca;
}

.qr-type-phone {
    background: #d1fae5;
    color: #065f46;
}

.qr-type-sms {
    background: #fef3c7;
    color: #92400e;
}

.qr-type-email {
    background: #fce7f3;
    color: #9f1239;
}

.qr-type-vcard {
    background: #f3e8ff;
    color: #6b21a8;
}

.qr-type-wifi {
    background: #dbeafe;
    color: #1e3a8a;
}

.qr-type-geo {
    background: #d1fae5;
    color: #14532d;
}

.qr-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.qr-date-badge svg {
    color: #94a3b8;
}

/* QR Card Actions */
.qr-card-actions-pro {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-qr-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.btn-qr-view:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-qr-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    flex: 1;
    justify-content: center;
}

.btn-qr-download:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Empty State for Show Page */
.collection-show-empty-state-pro {
    text-align: center;
    padding: 80px 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.empty-state-icon-show-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    margin: 0 auto 24px;
}

.empty-state-icon-show-pro svg {
    color: #94a3b8;
}

.collection-show-empty-state-pro h2 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.collection-show-empty-state-pro p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-empty-state-show-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-empty-state-show-pro:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Responsive Design for Show Page */
@media (max-width: 1200px) {
    .qr-codes-grid-professional {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .collection-show-professional {
        padding: 16px;
    }

    .collection-show-header-card {
        padding: 24px;
        margin-bottom: 24px;
    }

    .collection-show-header-content {
        flex-direction: column;
    }

    .collection-show-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .collection-show-icon {
        width: 64px;
        height: 64px;
    }

    .collection-show-title-text h1 {
        font-size: 24px;
    }

    .collection-show-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-collection-show-edit,
    .btn-collection-show-back {
        width: 100%;
        justify-content: center;
    }

    .qr-codes-grid-professional {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .qr-card-content-pro {
        padding: 16px;
    }

    .collection-show-empty-state-pro {
        padding: 60px 24px;
    }
}

/* ============================================
   COLLECTION FORM (NEW/EDIT) - Professional Design
   ============================================ */

/* Main container */
.collection-form-professional {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
}

/* Header Card */
.collection-form-header-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.collection-form-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.collection-form-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.collection-form-icon svg {
    color: white;
}

.collection-form-title-text h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.collection-form-title-text p {
    color: #cbd5e1;
    font-size: 15px;
    margin: 0;
}

/* Form Card */
.collection-form-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Error Alert */
.collection-error-alert {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #dc2626;
    border-radius: 12px;
    margin-bottom: 24px;
}

.error-icon {
    flex-shrink: 0;
}

.error-icon svg {
    color: #dc2626;
}

.error-content h3 {
    color: #991b1b;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.error-content ul {
    margin: 0;
    padding-left: 20px;
    color: #b91c1c;
}

.error-content li {
    margin-bottom: 4px;
    font-size: 14px;
}

/* Form Groups */
.form-group-collection {
    margin-bottom: 24px;
}

.form-label-collection {
    display: block;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-text-collection {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.form-input-collection {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.2s ease;
    background: white;
}

.form-input-collection:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-collection::placeholder {
    color: #94a3b8;
}

.form-textarea-collection {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.2s ease;
    background: white;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.form-textarea-collection:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea-collection::placeholder {
    color: #94a3b8;
}

/* Icon Selector */
.icon-selector-pro {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.icon-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
}

.icon-option-pro {
    width: 60px;
    height: 60px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 28px;
    padding: 0;
}

.icon-option-pro:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.icon-option-pro.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.icon-option-pro.selected .icon-emoji {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.icon-emoji {
    display: block;
    line-height: 1;
}

/* Color Selector */
.color-selector-pro {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.color-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.color-option-pro {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.color-option-pro.selected {
    border-color: #1e293b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.color-option-pro .check-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.color-option-pro.selected .check-icon {
    opacity: 1;
}

/* Custom Color Picker */
.custom-color-section {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.custom-color-label {
    display: block;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.custom-color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-color-picker {
    width: 80px;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-color-picker:hover {
    border-color: #3b82f6;
}

.custom-color-value {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

/* Form Actions */
.collection-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.btn-save-collection {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    cursor: pointer;
}

.btn-save-collection:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-save-collection:active {
    transform: translateY(0);
}

.btn-cancel-collection {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: white;
    color: #64748b;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-cancel-collection:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .collection-form-professional {
        padding: 16px;
    }

    .collection-form-header-card {
        padding: 24px;
        margin-bottom: 24px;
    }

    .collection-form-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .collection-form-icon {
        width: 56px;
        height: 56px;
    }

    .collection-form-title-text h1 {
        font-size: 24px;
    }

    .collection-form-card {
        padding: 24px;
    }

    .icon-grid-pro {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 8px;
    }

    .icon-option-pro {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .color-grid-pro {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 8px;
    }

    .color-option-pro {
        width: 45px;
        height: 45px;
    }

    .collection-form-actions {
        flex-direction: column;
    }

    .btn-save-collection,
    .btn-cancel-collection {
        width: 100%;
    }
}

/* ============================================
   ADVANCED ANALYTICS - Professional Design
   ============================================ */

/* Main Container */
.advanced-analytics-professional {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px;
}

/* Header Card */
.advanced-analytics-header-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-content-advanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.analytics-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.analytics-icon-advanced {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3);
}

.analytics-icon-advanced svg {
    color: white;
}

.analytics-title-text h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.analytics-title-text p {
    color: #cbd5e1;
    font-size: 15px;
    margin: 0;
}

.analytics-actions-advanced {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-analytics-secondary,
.btn-analytics-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-analytics-secondary {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-analytics-secondary:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.btn-analytics-view {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-analytics-view:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Date Range Filter */
.date-range-filter-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 10px 20px;
    background: white;
    color: #64748b;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.btn-filter.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

/* KPI Grid */
.advanced-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.advanced-kpi-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.advanced-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.kpi-icon-advanced {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.primary-advanced .kpi-icon-advanced {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.success-advanced .kpi-icon-advanced {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.warning-advanced .kpi-icon-advanced {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.info-advanced .kpi-icon-advanced {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.kpi-content-advanced {
    flex: 1;
}

.kpi-value-advanced {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1;
}

.kpi-label-advanced {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* Charts Grid */
.charts-grid-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card-advanced {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.chart-card-advanced.full-width {
    grid-column: 1 / -1;
}

.chart-header-advanced {
    margin-bottom: 20px;
}

.chart-header-advanced h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.chart-header-advanced svg {
    color: #8b5cf6;
}

.chart-content-advanced {
    position: relative;
    height: 300px;
}

/* Stats Grid */
.stats-grid-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stats-card-advanced {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.stats-header-advanced {
    margin-bottom: 20px;
}

.stats-header-advanced h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.stats-header-advanced svg {
    color: #3b82f6;
}

.stats-list-advanced {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item-advanced {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    align-items: center;
    gap: 12px;
}

.stat-label-advanced {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.stat-bar-container {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-advanced {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stat-bar-advanced.location-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.stat-value-advanced {
    text-align: right;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.empty-stats-advanced {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* Referrers Card */
.referrers-card-advanced {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.referrers-header-advanced {
    margin-bottom: 20px;
}

.referrers-header-advanced h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.referrers-header-advanced svg {
    color: #f59e0b;
}

.referrers-list-advanced {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referrer-item-advanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.referrer-url-advanced {
    color: #475569;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.referrer-count-advanced {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    background: white;
    border-radius: 6px;
}

/* Recent Scans Table */
.recent-scans-card-advanced {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.recent-scans-header-advanced {
    margin-bottom: 20px;
}

.recent-scans-header-advanced h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.recent-scans-header-advanced svg {
    color: #10b981;
}

.scans-table-container {
    overflow-x: auto;
}

.scans-table-advanced {
    width: 100%;
    border-collapse: collapse;
}

.scans-table-advanced thead {
    background: #f8fafc;
}

.scans-table-advanced th {
    padding: 12px 16px;
    text-align: left;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.scans-table-advanced td {
    padding: 16px;
    color: #64748b;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.scans-table-advanced tbody tr:hover {
    background: #f8fafc;
}

.time-badge-advanced {
    display: inline-flex;
    padding: 4px 10px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.device-badge-advanced {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {

    .charts-grid-advanced,
    .stats-grid-advanced {
        grid-template-columns: 1fr;
    }

    .chart-card-advanced.full-width {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .advanced-analytics-professional {
        padding: 16px;
    }

    .advanced-analytics-header-card {
        padding: 24px;
        margin-bottom: 24px;
    }

    .header-content-advanced {
        flex-direction: column;
        align-items: stretch;
    }

    .analytics-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .analytics-icon-advanced {
        width: 56px;
        height: 56px;
    }

    .analytics-title-text h1 {
        font-size: 24px;
    }

    .analytics-actions-advanced {
        width: 100%;
        flex-direction: column;
    }

    .btn-analytics-secondary,
    .btn-analytics-view {
        width: 100%;
        justify-content: center;
    }

    .advanced-kpi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .btn-filter {
        width: 100%;
        text-align: center;
    }

    .stat-item-advanced {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-value-advanced {
        text-align: left;
    }

    .scans-table-advanced {
        font-size: 12px;
    }

    .scans-table-advanced th,
    .scans-table-advanced td {
        padding: 8px;
    }
}