
/* index.html */
:root {
    --primary-color: #000000;
    --primary-hover: #2b2b2b;
    --bg-color: #f7f7f7;
    --card-bg: #ffffff;
    --text-color: #111111;
    --text-secondary: rgba(17, 17, 17, 0.7);
    --border-color: rgba(17, 17, 17, 0.15);
    --border-radius: 0.8rem;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.1);
    --accent-color: #ffb300;
}

body {
    font-family: 'Fira Mono', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
}

.page-list,
.page-index,
.page-edit {
    position: relative;
}

.page-list::before,
.page-index::before,
.page-edit::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.055) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.18;
}

.page-index,
.page-edit {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    background: linear-gradient(-45deg, #f8f8f8, #ffffff, #fff8e1, #fff3cd);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.page-list {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-login {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(-45deg, #f8f8f8, #ffffff, #fff8e1, #fff3cd);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.page-login-main {
    flex: 1;
    display: flex;
    gap: 6rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-login footer {
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.page-404 {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 24px;
    background: linear-gradient(-45deg, #f8f8f8, #ffffff, #fff8e1, #fff3cd);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

h1 {
    text-align: left;
    color: var(--text-color);
    font-family: "BBH Bogle", sans-serif;
    font-weight: 700;
    margin: 0 0 1.5rem;
    font-size: 5rem;
    letter-spacing: .0025em;
    line-height: 5rem;
    font-style: italic;
}

h1.standard {
    font-family: 'Fira Mono', monospace;
    font-style: normal;
    font-size: 3rem;
    line-height: 4rem;
}

.welcome-container {
    flex: 0 0 40%;
    max-width: 540px;
}

.container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.page-list .container {
    padding: 28px;
}

.list-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.list-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.list-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 10px;
    width: min(360px, 100%);
}

.stat-card {
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 2px);
    background: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.stat-card strong {
    font-size: 32px;
    line-height: 1;
    font-family: 'Fira Mono', monospace;
}

.table-panel {
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 2px);
    background: rgba(255, 255, 255, 0.94);
}

.table-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.table-panel-header h2 {
    margin: 0;
    font-size: 16px;
}

.table-panel-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.table-scroll {
    overflow-x: auto;
}

.page-index .container {
    display: none; /* Dölj som standard för att förhindra blinkning innan auth-koll */
}

.page-login .container {
    width: 100%;
    max-width: 340px;
    position: relative;
    z-index: 1;
    margin: 20px;
}

.page-404 .container {
    position: relative;
    z-index: 1;
}

.qr-not-found-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 44px;
}

.qr-not-found-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 36px;
    line-height: 1.2;
}

.qr-not-found-subtitle {
    margin: 0 0 26px;
    color: var(--text-secondary);
    font-size: 16px;
}

.qr-not-found-cta {
    width: auto;
    max-width: 220px;
    padding: 12px 20px;
}

.qr-not-found-footer {
    margin-top: 28px;
    padding-top: 0;
}

.qr-not-found-footer .logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

input[type="text"], input[type="password"], input[type="email"], input[type="url"], select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 15px;
    background-color: #fff;
    color: var(--text-color);
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.25);
}

input:read-only, input:disabled {
    background-color: #f0f0f0;
    color: var(--text-secondary);
    cursor: not-allowed;
    border-color: var(--border-color);
}

button, .button {
    width: 100%;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-family: 'Fira Mono', monospace;
}

button:hover, .button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.page-login button {
    margin-top: 10px;
}

#result {
    margin-top: 40px;
    text-align: center;
    display: none;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

#qrImage {
    max-width: 240px;
    margin: 0 auto 24px;
    display: block;
    border: 1px solid var(--border-color);
    padding: 16px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.links {
    margin-top: 20px;
    word-break: break-all;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
}

.error {
    color: #d11124;
    margin-top: 10px;
    font-size: 14px;
    display: none;
    font-weight: 500;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.style-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.style-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.1rem;
}

input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    background: white;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background 0.2s;
    background: rgba(255, 179, 0, 0.18);
}

.nav-link:not(.nav-link-disabled):hover {
    background: rgba(255, 179, 0, 0.4);
}

.nav-link-disabled {
    opacity: 0.45;
    filter: grayscale(0.4);
}

.logout-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.logout-link:hover {
    color: #d11124;
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button-secondary:hover {
    background-color: rgba(255, 179, 0, 0.16);
    color: var(--primary-color);
}

.header-nav {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
    display: none; /* Dölj till auth-koll */
}

.header-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-premium {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-free {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Profile Modal Specifics */
.profile-modal-content {
    max-width: 450px;
}

.form-message {
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}


.status-badge i {
    font-size: 14px;
}

.header-logo {
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 1;
}

.header-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.header-nav-left a {
    margin-left: 0;
}

.header-nav div:not(.header-nav-left) a {
    margin-left: 20px;
}

footer {
    margin-top: 60px;
    padding-top: 30px;
    font-size: 0.8rem;
    text-align: center;
}

.footer-logo {
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-logo:hover {
    opacity: 1;
}

/* login.html */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 179, 0, 0.58);
    top: -150px;
    left: -100px;
}

.shape-2 {
    width: 450px;
    height: 450px;
    background: rgba(255, 152, 0, 0.45);
    bottom: -100px;
    right: -100px;
    animation-duration: 25s;
    animation-delay: -5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: rgba(255, 235, 59, 0.68);
    top: 20%;
    right: 15%;
    animation-duration: 30s;
    animation-direction: alternate-reverse;
}

@keyframes move {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(100px, 50px) rotate(180deg) scale(1.1);
    }
    100% {
        transform: translate(-50px, 100px) rotate(360deg) scale(1);
    }
}

.login-logo {
    display: block;
    margin: 0 auto 24px auto;
    height: 40px;
}

/* list.html */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

th {
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

td:first-child,
th:first-child {
    min-width: 110px;
}

.stats-column-header {
    width: 110px;
}

.stats-toggle-cell {
    vertical-align: middle;
}

.stats-toggle-btn {
    width: auto;
    min-width: 88px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}

.stats-toggle-btn:hover {
    border-color: var(--primary-color);
    color: #FFF;
}

.stats-toggle-btn i {
    font-size: 11px;
}

.qr-stats-row {
    display: none;
}

.qr-stats-row.open {
    display: table-row;
}

.qr-stats-cell {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.65);
}

.qr-stats-content {
    padding: 14px;
}

.stats-loading,
.stats-error,
.stats-empty {
    padding: 10px 12px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.8);
}

.stats-error {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.35);
    background: rgba(255, 240, 240, 0.9);
}

.stats-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.stats-summary-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-summary-card span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.stats-summary-card strong {
    font-size: 18px;
    line-height: 1.2;
    word-break: break-word;
}

.stats-export-card {
    justify-content: space-between;
}

.btn-stats-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--primary-color);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s;
    text-align: center;
}

.btn-stats-export:hover {
    background: var(--primary-hover);
}

.btn-stats-export i {
    font-size: 14px;
}

.stats-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.stats-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.stats-box h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.stats-box-full {
    grid-column: 1 / -1;
}

.stats-chart-wrap {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fafafa;
    padding: 8px;
}

.stats-chart-svg {
    width: 100%;
    height: 140px;
}

.stats-chart-axis {
    stroke: rgba(0, 0, 0, 0.2);
    stroke-width: 1;
}

.stats-chart-bar {
    fill: rgba(244, 158, 0, 0.75);
    transition: fill 0.2s;
}

.stats-chart-bar:hover {
    fill: rgba(244, 158, 0, 1);
}

.stats-chart-hitbox {
    fill: rgba(0, 0, 0, 0);
    cursor: pointer;
}

.stats-tooltip {
    position: fixed;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Fira Mono', monospace;
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -8px;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-align: center;
    line-height: 1.3;
}

.stats-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

.stats-chart-label {
    font-size: 9px;
    fill: var(--text-secondary);
}

.stats-table-wrap {
    max-height: 190px;
    overflow: auto;
}

.stats-mini-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
}

.stats-mini-table th,
.stats-mini-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.stats-mini-table th {
    font-size: 10px;
}

.target-url-cell {
    max-width: 360px;
    white-space: normal;
    word-break: break-word;
}

.redirect-count-cell {
    width: 110px;
    text-align: center;
    font-family: 'Fira Mono', monospace;
    font-weight: 700;
}

.latest-redirect-cell {
    min-width: 220px;
    font-size: 13px;
}

.actions {
    width: 84px;
    text-align: center;
}

@media (max-width: 700px) {
    .page-list {
        padding: 24px 14px;
    }

    .page-list .container {
        padding: 16px;
    }


    .table-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-summary-cards {
        grid-template-columns: 1fr;
    }

    .stats-details-grid {
        grid-template-columns: 1fr;
    }
}

.actions {
    position: relative;
}

.action-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    color: var(--text-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(19, 48, 55, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 16px;
    top: 45px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 100;
    min-width: 180px;
    padding: 8px 0;
    white-space: nowrap;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-color);
}

.dropdown-item.delete {
    color: #d11124;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-size: 18px;
}

code {
    background: var(--bg-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

code:hover {
    background: rgba(255, 179, 0, 0.22);
}

code:active {
    transform: scale(0.95);
}

.copy-success {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 2rem;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
    animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 450px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
}

.close-modal {
    color: var(--text-secondary);
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.close-modal:hover {
    color: var(--text-color);
}

/* edit.html */
.success {
    color: #27ae60;
    margin-top: 10px;
    font-size: 14px;
    display: none;
    font-weight: 500;
    text-align: center;
}

/* extracted inline styles */
.page-index #downloadOptions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.page-index #downloadPng {
    flex: 1;
    min-width: 150px;
    color: white;
}

.page-index #downloadSvg {
    flex: 1;
    min-width: 150px;
    background-color: rgba(255, 179, 0, 0.14);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.page-index #resetBtn {
    margin-top: 20px;
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.page-edit #saveBtn {
    margin-top: 20px;
}

.page-edit .edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.page-edit .edit-actions #saveBtn,
.page-edit .edit-actions .cancel-btn {
    margin-top: 0;
    flex: 1;
}

.page-edit .edit-actions .cancel-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.page-edit .edit-actions .cancel-btn:hover {
    background-color: #f5f5f5;
    color: var(--text-color);
    transform: translateY(-1px);
}

.page-list #emptyState {
    display: none;
}

.page-list .modal-center {
    text-align: center;
}

.page-list #modalQrImage {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-list #modalLinks {
    margin-top: 0;
    text-align: left;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.modal-actions .button {
    margin-top: 0;
    flex: 1;
}

.page-list .edit-modal-content {
    max-width: 560px;
}

.page-list .create-modal-content {
    max-width: 560px;
}

.page-list .create-modal-content h3 {
    margin-top: 0;
}

.page-list #createResult {
    display: none;
}

.page-list #createQrImage {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
}

.page-list #createDownloadOptions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.page-list #createDownloadPng,
.page-list #createDownloadSvg {
    flex: 1;
    min-width: 150px;
}

.page-list #createDownloadSvg {
    background-color: rgba(255, 179, 0, 0.14);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.page-list #createResetBtn {
    margin-top: 20px;
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.page-list .edit-modal-content h3 {
    margin-top: 0;
}


.page-list #editError,
.page-list #editSuccess {
    margin-top: 14px;
}

.page-list #editSuccess {
    text-align: left;
}

.page-list #modalDownloadSvg {
    background-color: rgba(255, 179, 0, 0.14);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.page-list .target-url-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-list .menu-icon {
    width: 18px;
    opacity: 0.75;
    text-align: center;
    flex-shrink: 0;
}

.page-list .action-label {
    line-height: 1.2;
}

.page-list .dropdown-divider {
    border-top: 1px solid var(--border-color);
    margin: 4px 0;
}




.static-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-color: rgba(0, 0, 0, 0.07);
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.12);
    margin-left: 6px;
    vertical-align: middle;
}
