/* QuiQR - page-specific styles */

.site-main {
    --page-top: 1.25rem;
    max-width: 1100px;
    margin: var(--page-top) auto;
    padding: 0 1rem;
    color: #e8ebf1;
}

.tool-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 900px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.hero {
    border: 1px solid rgba(255, 255, 255, .06);
    background-color: rgba(255, 255, 255, .02);
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.hero h1 {
    margin: .1rem 0 .4rem;
    font-size: 1.7rem;
}

.hero p {
    margin: 0;
    color: #97a6ba;
}

.row {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin: .6rem 0;
    flex-wrap: wrap;
}

.row label {
    min-width: 160px;
    color: #d7e2ee;
    font-weight: 600;
}

.row .grow {
    flex: 1 1 240px;
}

.input,
.select,
textarea.input {
    width: 100%;
    padding: .65rem .7rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: #0c101a;
    color: #e8ebf1;
    outline: none;
}

.input:focus,
.select:focus,
textarea.input:focus {
    border-color: #0e76bc;
    box-shadow: 0 0 0 4px rgba(14, 118, 188, .15);
}

.editor {
    display: grid;
    gap: .6rem;
}

.btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .16);
    background: #0f1320;
    color: #e8ebf1;
    border-radius: 10px;
    padding: .5rem .65rem;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.06);
}

.btn.primary {
    background: #0e76bc;
    color: #fff;
}

.btn.ghost {
    background: transparent;
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #0c101a;
    border: 1px solid rgba(255, 255, 255, .1);
    color: #e8ebf1;
    font-size: .95rem;
}

.chip[aria-selected="true"] {
    background: #0e76bc;
    color: #fff;
    border-color: transparent;
}

textarea.input {
    min-height: 120px;
    resize: vertical;
}

.preview {
    background: #0c101a;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: .8rem;
    min-height: 160px;
    white-space: pre-wrap;
    word-break: break-word;
}

.hint {
    color: #97a6ba;
    font-size: .85rem;
    margin-top: .25rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.toast {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 110;
    background: #0b0f19;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    padding: .6rem .75rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* inline control groups */
.inline-controls {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* big colour swatches */
.color-input {
    appearance: none;
    width: 140px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #0c101a;
    padding: 0;
    cursor: pointer;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 8px;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.color-input::-moz-color-swatch {
    border: none;
    border-radius: 8px;
}

/* tidy sliders */
.slider-line {
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* smaller, even colour swatches */
.color-input--sm {
    width: 110px;
    height: 28px;
    border-radius: 6px;
}

/* make labels a touch narrower so rows breathe */
.row label {
    min-width: 140px;
}

@media (max-width: 560px) {
    .row label {
        min-width: 120px;
    }
}

/* smaller, even colour swatches */
.color-input--sm {
    width: 110px;
    height: 28px;
    border-radius: 6px;
}

/* slightly narrower labels so rows breathe */
.row label {
    min-width: 140px;
}

@media (max-width: 560px) {
    .row label {
        min-width: 120px;
    }
}

/* keep inline groups tight */
.inline-controls {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}