/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #005596;
    --primary-light: #0055ee;
    --secondary-color: #807f83;
    --alert-color: #0050a0;
    --danger-color: #d31245;
    --success-color: #28a745;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --border-color: #ddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    width: 3rem;
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--text-color);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-logout {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Features Grid */
.features {
    margin: 3rem 0;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.quick-action,
.recent-items {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-action a {
    display: block;
    margin-top: 1rem;
}

/* Tables */
.items-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.items-table thead {
    background-color: var(--bg-color);
}

.items-table th,
.items-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.items-table tr:hover {
    background-color: var(--bg-color);
}

/* QR Grid */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.qr-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qr-item img {
    max-width: 100%;
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: var(--danger-color);
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: var(--alert-color);
    border: 1px solid #bee5eb;
}

/* Toast: JS-created alert that floats above the page instead of pushing it */
.toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-bottom: 0;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toast-in 0.2s ease-out;
}

@keyframes toast-in {
    from { opacity: 0; transform: translate(-50%, -0.5rem); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--secondary-color);
}

/* Utility Classes */
.link {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.link:hover {
    text-decoration: underline;
}

.result-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.danger-zone {
    border: 2px solid var(--danger-color);
    background-color: #ffe6e6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================================
   Create QR Code page (Phase 1)
   Uses the project's existing CSS variables defined in :root.
   ========================================================================= */

.create-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

@media (max-width: 880px) {
    .create-container {
        grid-template-columns: 1fr;
    }
}

.create-container h1 {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.preview-panel {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.preview-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.qr-preview {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    overflow: hidden;
}

.qr-preview svg,
.qr-preview canvas,
.qr-preview img.preview-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.preview-empty {
    color: var(--secondary-color);
    font-style: italic;
    margin: 0;
}

.preview-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

fieldset.form-group {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.5rem 1.5rem;
}

fieldset.form-group legend {
    font-weight: 600;
    padding: 0 0.5rem;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-row > label,
.form-row-label {
    min-width: 130px;
    font-weight: 500;
    margin-bottom: 0;
}

.form-row input[type="color"] {
    width: 60px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    background-color: #fff;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.radio-option input {
    width: auto;
    margin: 0;
}

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

.short-code-preview {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.short-code-preview .domain-prefix {
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-right: 1px solid var(--border-color);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.short-code-preview input {
    flex: 1;
    border: none;
    border-radius: 0;
}

.short-code-preview input:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.form-error {
    padding: 1rem;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin-top: 1rem;
}

.required {
    color: var(--danger-color);
}

.optional {
    color: var(--secondary-color);
    font-weight: normal;
    font-size: 0.875rem;
}

.form-hint {
    display: block;
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert-warning {
    padding: 0.75rem 1rem;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* Caption size stepper (Phase 2) */
.size-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.size-display {
    min-width: 60px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.size-stepper .btn-small {
    min-width: 32px;
}

/* Color picker + hex input pair */
.color-input-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hex-input {
    width: 90px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.hex-input.invalid {
    border-color: var(--danger-color);
    background-color: #fff0f0;
}

/* --- Phase 3: Center image library --- */

.center-image-selected {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.selected-image-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.selected-image-meta {
    flex: 1;
    min-width: 0;
}

.selected-image-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-image-color {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.selected-image-color .swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    vertical-align: middle;
}

.image-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.image-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.image-tab:hover {
    color: var(--primary-color);
}

.image-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}

.image-tab-pane {
    display: none;
}

.image-tab-pane.active {
    display: block;
}

.image-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    background: white;
    transition: border-color 0.2s, background 0.2s;
}

.image-drop-zone.dragover {
    border-color: var(--primary-color);
    background: #f0f6fc;
}

.image-drop-zone p {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.5rem;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.25rem;
}

.gallery-empty {
    grid-column: 1 / -1;
    color: var(--secondary-color);
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

.gallery-tile {
    position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.4rem;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gallery-tile:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.gallery-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fafafa;
    border-radius: 2px;
}

.gallery-tile-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: space-between;
}

.gallery-tile-actions .icon-btn {
    background: transparent;
    border: none;
    padding: 0.2rem;
    color: var(--secondary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    line-height: 0;
}

.gallery-tile-actions .icon-btn svg {
    width: 14px;
    height: 14px;
}

.gallery-tile-actions .icon-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.06);
}

/* Share toggle filled-in look when the image is already shared. */
.gallery-tile-actions .icon-btn.active {
    color: var(--primary-color);
}

.gallery-tile-actions .icon-btn.danger:hover {
    color: var(--danger-color);
}

.gallery-tile .shared-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    line-height: 1.2;
}

/* My URLs listing page */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.list-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1 1 280px;
    max-width: 420px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 85, 150, 0.2);
}

.show-expired {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    cursor: pointer;
}

.items-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.items-table th.sortable:hover {
    color: var(--primary-color);
}

.items-table th.sorted {
    color: var(--primary-color);
}

.sort-indicator {
    font-size: 0.75rem;
}

.url-cell {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-cell a {
    color: var(--primary-color);
}

.muted {
    color: var(--secondary-color);
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    line-height: 1.4;
}

.badge-expired {
    background: var(--danger-color);
    color: white;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.row-actions {
    display: flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.table-message {
    text-align: center;
    color: var(--secondary-color);
    padding: 2rem 1rem;
}

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

.empty-state p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* My QR Codes listing page */
.sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.sort-select {
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 85, 150, 0.2);
}

.qr-desc {
    font-weight: 500;
    margin: 0.25rem 0;
    word-break: break-word;
}

.qr-link {
    margin-bottom: 0.5rem;
}

.qr-link a {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.qr-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

/* List/grid view toggle */
.view-toggle {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.9rem;
    border: none;
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.view-btn + .view-btn {
    border-left: 1px solid var(--border-color);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

/* List-mode thumbnail + hover-zoom preview */
.qr-list-table .qr-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.qr-hover-preview {
    position: fixed;
    z-index: 1000;
    width: 216px;
    height: 216px;
    padding: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.qr-hover-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Analytics detail page */
.analytics-subhead {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    word-break: break-word;
}

.analytics-subhead a {
    color: var(--primary-color);
}

.analytics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.analytics-panel {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.analytics-panel h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.analytics-panel .muted {
    font-size: 0.85rem;
    font-weight: 400;
}

/* Hand-rolled clicks-per-day chart */
.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-bar {
    fill: var(--primary-color);
}

.chart-bar:hover {
    fill: var(--primary-light);
}

.chart-axis-label {
    fill: var(--secondary-color);
    font-size: 11px;
}

.chart-axis-line {
    stroke: var(--border-color);
    stroke-width: 1;
}

/* Click-history user-agent column: keep long strings from blowing out the table */
.history-table .ua-cell {
    max-width: 360px;
    font-size: 0.85rem;
    word-break: break-word;
}

/* Settings page */
.settings-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.settings-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.profile-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.6rem 1.5rem;
}

.profile-list dt {
    font-weight: 600;
    color: var(--secondary-color);
}

.profile-note {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.danger-zone {
    border: 1px solid var(--danger-color);
}

.danger-zone h2 {
    color: var(--danger-color);
}

.delete-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.delete-form input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.delete-form input:focus {
    outline: none;
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(211, 18, 69, 0.2);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dashboard stats + recent lists */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.recent-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-list a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.recent-meta {
    color: var(--secondary-color);
    font-size: 0.85rem;
    white-space: nowrap;
}

.recent-qr-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.recent-qr-thumbs img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px;
    background: white;
}

.recent-items .link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
}

/* Create QR Code: post-save success panel */
.qr-success {
    background: white;
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qr-success h2 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.qr-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
