:root {
    --color-vivid-orange: #FF9F1C;
    --color-hunyadi-yellow: #FFBF69;
    --color-buff: #CB997E;
    --color-pale-peach: #FFE8D6;
    --color-white: #FFFFFF;
    --color-dark: #1A1A1A;
    --color-bg: var(--color-pale-peach);
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-dark);
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    /* Main scroll handled by wrapper */
}

/* App container */
main {
    width: 100%;
}

.mobile-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    /* Mobile width constraint */
    height: 100vh;
    margin: 0 auto;
    background-color: var(--color-bg);
    /* Seamless background */
    overflow-y: auto;
    /* Internal scrolling */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Tool styles */
.tool-container {
    padding: 1.5rem;
    width: 100%;
}

h1 {
    color: var(--color-vivid-orange);
    margin: 1.5rem 0;
    font-size: 2.2rem;
    text-align: center;
    outline: none;
    /* Removes the focus box from FocusOnNavigate */
}

.tool-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 6rem;
    /* Space for FAB */
}

.tool-card {
    background: var(--color-white);
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    /* Ensure pointer for interactive cards */
    border: none;
    /* Reset button styles implies */
    width: 100%;
    text-align: left;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: var(--color-hunyadi-yellow);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.tool-info h3 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.tool-info p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

/* Floating Menu Overlay for Click-Outside */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    /* Below menu, above everything else */
    background: rgba(0, 0, 0, 0.1);
}

/* Floating Menu - Fixed to viewport */
.floating-menu-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--color-vivid-orange);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    /* Above panel */
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.5rem;
    color: white;
}

/* Only hover scale when NOT open */
.floating-menu-btn:not(.open):hover {
    transform: scale(1.1);
}

/* When open, maybe subtle change or nothing */
.floating-menu-btn.open {
    /* No scale */
    transform: scale(1);
    box-shadow: none;
    /* Optional: remove shadow to blend better */
}

/* Bubbled Menu Panel - MERGED STYLE, CSS TRANSITION */
.floating-menu-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-vivid-orange);

    padding: 1rem 1rem 80px 1rem;

    border-radius: 1.5rem;
    border-bottom-right-radius: 2.2rem;

    box-shadow: 0 10px 30px rgba(180, 100, 10, 0.3);
    z-index: 1000;
    list-style: none;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    color: white;

    /* Animation State: DEFAULT HIDDEN */
    opacity: 0;
    transform: scale(0.2);
    /* Origin at bottom right for 'growing/shrinking' effect */
    transform-origin: bottom right;
    pointer-events: none;
    /* Cannot click when hidden */

    /* Smooth Transition for Both Open and Close */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation State: OPEN */
.floating-menu-panel.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.floating-menu-panel a {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.floating-menu-panel a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.floating-menu-panel .home-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
}

.menu-link-icon {
    display: flex;
    align-items: center;
}

/* Ensure sticking to the bottom-right of the centered column on desktop */
@media (min-width: 450px) {

    .floating-menu-btn,
    .floating-menu-panel {
        right: calc(50% - 225px + 2rem);
    }
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #ffffe0;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Loading Spinner - Centered in Viewport */
#app {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-progress {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.loading-progress circle {
    fill: none;
    stroke: var(--color-hunyadi-yellow);
    stroke-width: 6px;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--color-vivid-orange);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.4), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    font-weight: bold;
    color: var(--color-vivid-orange);
    font-size: 0.9rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Initializing...");
}

/* Scrollbar styling */
.mobile-wrapper::-webkit-scrollbar {
    width: 6px;
}

.mobile-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* File Upload Styles */
.separator {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
    color: #999;
    font-size: 0.9rem;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #eee;
}

.separator::before {
    margin-right: 0.5rem;
}

.separator::after {
    margin-left: 0.5rem;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* --- MODULE: Barcode Scanner --- */
.result-card {
    background: var(--color-white);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
    overflow: hidden;
}

.camera-view {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1rem auto;
    border-radius: 1rem;
    overflow: hidden;
    background: black;
    aspect-ratio: 4/3;
}

.camera-view video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-vivid-orange);
    top: 0;
    animation: scanAnimation 2s linear infinite;
    box-shadow: 0 0 4px var(--color-vivid-orange);
}

@keyframes scanAnimation {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: #888;
}

.state-container.input-mode {
    gap: 1rem;
    align-items: stretch;
}

.icon-large {
    font-size: 4rem;
    color: var(--color-hunyadi-yellow);
}

.icon-centered {
    align-self: center;
}

.icon-success {
    font-size: 3rem;
}

.action-btn {
    background: var(--color-vivid-orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 159, 28, 0.3);
    transition: transform 0.2s;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--color-vivid-orange);
    color: var(--color-vivid-orange);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.code-type {
    background: var(--color-hunyadi-yellow);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: -1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-result {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: monospace;
    word-break: break-all;
    font-size: 1.2rem;
    color: var(--color-dark);
    border: 1px solid #eee;
    width: 100%;
}

.error-text {
    color: #e63946;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.scanning-text {
    font-weight: bold;
    color: var(--color-vivid-orange);
    margin-bottom: 1rem;
}

/* Modal System - Transistions */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Default Hidden State */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Open State */
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 320px;
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;

    /* Default Hidden State */
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Open State */
.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-title {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.modal-option-btn {
    background: var(--color-pale-peach);
    color: var(--color-dark);
    border: none;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-option-btn:hover {
    background: var(--color-hunyadi-yellow);
    color: white;
    transform: translateY(-2px);
}

.modal-option-btn.primary {
    background: var(--color-vivid-orange);
    color: white;
}

.modal-close {
    background: transparent;
    border: none;
    color: #999;
    margin-top: 1rem;
    cursor: pointer;
}

/* --- MODULE: Barcode Generator --- */
.mode-switch-container {
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: -1rem;
}

.mode-switch {
    background: none;
    border: none;
    color: var(--color-vivid-orange);
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.mode-switch:hover {
    text-decoration: underline;
}

.input-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 0.4rem;
    margin-left: 0.2rem;
}

.format-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    border: 2px solid #eee;
    background: white;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-dark);
    margin-bottom: 1rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.format-select:focus {
    border-color: var(--color-vivid-orange);
}

.barcode-input {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid #eee;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.barcode-input:focus {
    border-color: var(--color-vivid-orange);
}

.barcode-preview-container {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    margin: 1rem 0;
}

/* Ensure SVG preview is visible and scaled */
.barcode-preview-container svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* --- MODULE: Morse Decoder Additions --- */
.tool-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-toggle-wrapper {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    transition: filter 0.2s ease;
}

.feature-toggle-wrapper.transmitting {
    filter: drop-shadow(0 0 10px var(--color-vivid-orange));
}

.feature-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.35rem;
    border-radius: 2rem;
    width: fit-content;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 1.5rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: var(--color-vivid-orange);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.decoder-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.bg-success {
    background: #2ec4b6;
}

.bg-secondary {
    background: #999;
}

.bg-info {
    background: #3a86ff;
}

.camera-preview-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
    border-radius: 1.5rem;
    overflow: hidden;
    background: black;
    aspect-ratio: 4/3;
    border: 4px solid var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.audio-radar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-vivid-orange);
    transition: transform 0.05s ease-out, opacity 0.05s ease-out;
}

.audio-pulse-inner {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-vivid-orange);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.audio-pulse-inner svg {
    width: 40px;
    height: 40px;
}

.camera-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roi-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    border: 2px solid var(--color-vivid-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.morse-sequence {
    background: #000;
    color: var(--color-vivid-orange);
    padding: 1rem;
    border-radius: 1rem;
    font-family: monospace;
    font-size: 1.4rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    margin-bottom: 1rem;
}

.text-output {
    background: #f8f8f8;
    border: 2px dashed #eee;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
}

.mode-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.4rem;
    border-radius: 1.5rem;
}

.mode-btn {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.active {
    background: var(--color-vivid-orange);
    color: white;
}

.morse-icon.active svg {
    filter: drop-shadow(0 0 10px var(--color-vivid-orange));
    color: var(--color-vivid-orange);
}

/* Utilities */
.w-full {
    width: 100%;
}

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

.mb-05 {
    margin-bottom: 0.5rem;
}

.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

.text-small {
    font-size: 0.8rem;
}

.text-muted {
    color: #888;
}

.mt-05 {
    margin-top: 0.5rem;
}

.ls-2 {
    letter-spacing: 2px;
}

.ls-5 {
    letter-spacing: 5px;
}

.font-monospace {
    font-family: monospace;
}

.font-bold {
    font-weight: bold;
}

.bg-danger {
    background: #e63946 !important;
}

.tool-icon.white-text {
    color: white;
}

.text-centered {
    text-align: center;
}

.fs-15 {
    font-size: 1.5rem;
}

/* --- MODULE: Morse Tool --- */
.morse-icon {
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 5px;
    font-size: 5rem;
    transition: text-shadow 0.1s ease;
}

.morse-icon.transmitting {
    color: var(--color-vivid-orange);
    text-shadow: 0 0 20px var(--color-vivid-orange);
}

.morse-textarea {
    height: 80px;
}

.morse-display {
    font-size: 1.5rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: var(--color-vivid-orange);
    border: 4px solid #333;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-family: monospace;
    word-break: break-all;
}

.morse-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.morse-controls.centered-controls {
    display: flex;
    justify-content: center;
    grid-template-columns: none;
    gap: 0;
}

.morse-controls .secondary-btn {
    margin-top: 0;
}

.transmission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.05s;
}

.transmission-overlay.active {
    opacity: 0.8;
}

/* Premium Switch Styling */
.toggle-group-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: center;
}

.sound-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 2rem;
    width: 220px;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--color-vivid-orange);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- MODULE: NFC Scanner --- */
.nfc-status-card {
    background: var(--color-white);
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nfc-animation-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nfc-icon-wrapper {
    font-size: 4rem;
    color: var(--color-vivid-orange);
    z-index: 2;
}

.nfc-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-vivid-orange);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
}

.nfc-pulse.active {
    animation: nfcPulse 2s infinite ease-out;
}

@keyframes nfcPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.tag-info-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.tag-info-item {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 1rem;
    border-left: 4px solid var(--color-vivid-orange);
}

.tag-info-item .label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.tag-info-item .value {
    font-size: 1rem;
    color: var(--color-dark);
    word-break: break-all;
    font-weight: 500;
}

.tag-records-container {
    width: 100%;
    margin-top: 1rem;
}

.record-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #eee;
}

.record-type {
    font-size: 0.7rem;
    background: var(--color-hunyadi-yellow);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
}

.record-card .record-data {
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
    word-break: break-all;
}

/* Utilities */
.preview-img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
    margin: 0 auto;
}