body {
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.preview-container {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    transition: border-color 0.3s ease;
}

.preview-container.has-qr {
    border: none;
    background: transparent;
}

.preview-placeholder {
    text-align: center;
    color: #adb5bd;
}

.preview-placeholder i {
    font-size: 3rem;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input-wrapper input[type="color"] {
    width: 50px;
    height: 38px;
    padding: 2px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
}

.color-input-wrapper input[type="color"]:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.color-hex {
    font-family: monospace;
    font-size: 0.9rem;
    color: #6c757d;
}

.logo-preview {
    max-width: 80px;
    max-height: 80px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid #dee2e6;
}

.btn-generate {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    padding: 10px 28px;
    font-weight: 500;
}

.btn-generate:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
}

#qr-output canvas, #qr-output svg {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   Dynamisk QR-kod Manager — extra stilar
   ============================================================ */

/* Flikar / Tab-navigation */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.6rem 1.1rem;
    transition: color 0.2s, border-color 0.2s;
}

.nav-tabs .nav-link:hover:not(.active) {
    color: #0d6efd;
    border-bottom-color: #c6d8ff;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
    border-bottom: 2px solid #0d6efd;
    background: transparent;
}

/* Dynamisk QR — tabell */
#dyn-table-wrap .table th {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    white-space: nowrap;
}

#dyn-table-wrap .table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.dyn-url-cell {
    max-width: 220px;
}

/* Åtgärdsknappar i tabellen */
#dyn-table-wrap .btn-sm {
    padding: 0.2rem 0.45rem;
    font-size: 0.8rem;
}

/* Tom-läge ikon */
#dyn-empty i {
    font-size: 2.5rem;
    opacity: 0.4;
}

/* Redirect-URL-rad under förhandsgranskning */
#dyn-redirect-info {
    border-top: 1px solid #dee2e6;
    padding-top: 0.85rem;
}

#dyn-redirect-info code {
    font-size: 0.82rem;
    word-break: break-all;
}

/* Kopiera-knapp kompakt */
.copy-btn {
    line-height: 1;
}

/* Modal — info-ruta */
#edit-qr-info {
    font-size: 0.875rem;
}

/* QR-output div i dynamisk flik */
#dyn-qr-output canvas,
#dyn-qr-output svg {
    max-width: 100%;
    height: auto;
}
