/* QIKR stylesheet — edit this file in Dreamweaver.
   Section 2 contains brand colors and the icon/underline thickness controls. */

/* 1. Local Manrope fonts */
@font-face {
    font-family: Manrope;
    src: url("../assets/fonts/manrope-400.ttf");
}
@font-face {
    font-family: Manrope;
    src: url("../assets/fonts/manrope-600.ttf");
    font-weight: 600;
}
@font-face {
    font-family: Manrope;
    src: url("../assets/fonts/manrope-700.ttf");
    font-weight: 700;
}
/* 2. Brand colors and editable stroke weights */
:root {
    --none-stroke: 3px;
    --tab-underline: 3px;
    --dark: #194b4b;
    --teal: #48bea0;
    --coral: #f06b4f;
    --ink: #39686b;
    --paper: #f1f1f1;
}

/* 3. Base styles */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--dark);
    font-family: Manrope, Arial, sans-serif;
    color: var(--ink);
    font-size: 14px;
}
button,
input,
textarea,
select {
    font: inherit;
}
button {
    cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
}
button {
    color: inherit;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
[hidden] {
    display: none !important;
}

/* 4. Header and page shell */
.app {
    width: min(1068px, calc(100% - 48px));
    margin: 24px auto 24px;
}
header {
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 30px 10px 20px;
}
.brand {
    width: 112px;
    height: 49px;
    object-fit: contain;
}
header nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
}
header button,
header nav a {
    background: none;
    border: 0;
    color: #fff;
    padding: 0;
}
.menu {
    background: white;
    color: #666;
    font-size: 24px;
    line-height: 25px;
    border-radius: 1px;
    margin-left: 13px;
}
.shell {
    background: #416969;
    border-radius: 25px;
    padding: 0 8px 8px;
}
.types {
    height: 62px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 20px;
}
.types button,
.types a {
    background: none;
    color: white;
    border: 0;
    min-width: 102px;
    padding: 8px 14px;
    border-radius: 2px;
}
.types .active {
    background: var(--dark);
}
.workspace {
    background: var(--paper);
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.83fr) minmax(0, 1fr);
    gap: 16px;
    border-radius: 18px;
}
.card {
    background: white;
    border: 1px solid #bbb;
    box-shadow: 0 0 1px #bbb;
    border-radius: 5px;
}

/* 5. QR content fields */
.content {
    height: 333px;
    padding: 14px 22px;
    position: relative;
}
h1,
h2,
p {
    margin: 0;
}
h1,
h2 {
    font-size: 16px;
    font-weight: 400;
}
h1 {
    margin-bottom: 6px;
}
.content label {
    display: block;
    font-size: 13px;
    margin-bottom: 18px;
}
.content textarea {
    display: block;
    width: 100%;
    height: 119px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    resize: none;
    color: var(--dark);
}
#text {
    height: 199px;
}
.content .fields label {
    margin-bottom: 9px;
}
.fields input,
.fields select,
.fields textarea {
    background: var(--paper);
    border: 0;
    border-radius: 2px;
    width: 100%;
    height: 43px;
    padding: 8px 10px;
    color: var(--dark);
    margin-bottom: 16px;
}
.fields textarea {
    height: 67px;
}
.fields h1 {
    margin-bottom: 9px;
}
.fields h1 + label {
    margin-bottom: 10px;
}
.feedback {
    font-size: 11px;
    line-height: 1.5;
    min-height: 16px;
}
.content > .feedback {
    position: absolute;
    bottom: 5px;
    left: 22px;
    right: 22px;
    color: #a2452e;
}

/* 6. Customization tabs and choices */
.customize {
    min-height: 330px;
    padding: 30px 16px 10px;
}
.customize h2 span {
    opacity: 0.85;
}
.custom-tabs {
    display: flex;
    justify-content: space-between;
    margin: 28px 6px 24px;
}
.custom-tabs button {
    width: 107px;
    padding: 12px 0 10px;
    border: 0;
    border-bottom: var(--tab-underline) solid transparent;
    background: none;
}
.custom-tabs .active {
    border-bottom-color: var(--coral);
}
.custom-panel {
    padding: 0 15px;
}
.tiles {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-content: start;
}
.tile {
    position: relative;
    margin-bottom: 20px;
    width: 55px;
    height: 55px;
    padding: 6px;
    border: 1px solid var(--teal);
    border-radius: 2px;
    background: transparent;
    display: grid;
    place-items: center;
}
.tile.active {
    border: 3px solid var(--coral);
    padding: 4px;
}
.tile img,
.tile svg {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.none {
    color: var(--coral);
    width: 25px;
    height: 25px;
    border: var(--none-stroke) solid var(--coral);
    border-radius: 50%;
    position: relative;
}
.none:after {
    content: "";
    width: 22px;
    height: var(--none-stroke);
    background: var(--coral);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.logo-panel {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-right: 0;
}
.upload {
    width: 177px;
    flex-shrink: 0;
}
.primary {
    background: var(--coral);
    border: 1px solid var(--coral);
    color: white;
    border-radius: 4px;
    font-weight: 600;
}
.upload .primary {
    height: 46px;
    width: 100%;
}
.upload p {
    font-size: 12px;
    margin-top: 7px;
    line-height: 1.5;
}
#remove-logo {
    background: none;
    border: 0;
    color: var(--teal);
    font-weight: 700;
    display: block;
    margin: 9px 0 0 auto;
    padding: 0;
}
#logo-message {
    font-size: 10px;
    color: #a2452e;
}

/* 7. Color controls */
.color-fields {
    display: flex;
    gap: 28px;
    padding: 0 12px;
}
.color-fields label {
    font-size: 13px;
}
.color-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--ink);
    border-radius: 2px;
    height: 44px;
    width: 190px;
}
.color-input input:not([type="color"]) {
    width: 145px;
    min-width: 0;
    border: 0;
    background: none;
    padding: 12px 14px;
    font-size: 13px;
}
.color-input input[type="color"] {
    padding: 0;
    border: 0;
    width: 26px;
    height: 27px;
    background: none;
}
.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 13px;
}
.swatches button {
    width: 54px;
    height: 54px;
    border: 1px solid #b6c4c2;
    border-radius: 2px;
}

/* 8. Pattern and corner controls */
.shape-panel {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-right: 0;
}
.shape-panel > #pattern-options {
    max-width: 184px;
}
.corner-options {
    display: grid;
    gap: 10px;
}
.corner-options .tiles {
    gap: 9px;
    flex-wrap: nowrap;
}
.corner-options .tile {
    width: 55px;
}

/* 9. Live preview and downloads */
.preview {
    padding: 14px 12px;
    min-height: 648px;
}
.subtitle {
    font-size: 13px;
    margin: 6px 0 10px;
}
#preview {
    height: 290px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin: 0 20px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#preview > svg {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 260px;
}
.size-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 13px 3px;
    font-size: 15px;
}
.size-label output {
    font-size: 10px;
}
#size {
    display: block;
    width: calc(100% - 26px);
    margin: 0 13px;
    height: 16px;
    accent-color: var(--teal);
    cursor: pointer;
}
.ticks {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin: 0 13px 22px;
}
.download {
    width: calc(100% - 26px);
    margin: 0 13px;
    height: 47px;
    font-size: 14px;
}
.separate {
    display: flex;
    gap: 5px;
    margin: 6px 13px;
}
.separate button {
    flex: 1;
    border: 1px solid var(--teal);
    background: white;
    border-radius: 4px;
    height: 47px;
    font-size: 15px;
    padding: 2px;
}
small {
    display: block;
    font-size: 11px;
    font-weight: 400;
}
.preview > .feedback {
    margin: 12px 13px;
}
.preview .feedback:empty {
    display: none;
}

/* 10. Future-feature dialogs (About and Help use separate pages) */
dialog {
    color: var(--ink);
    border: 0;
    border-radius: 12px;
    width: min(460px, 90vw);
    padding: 30px;
    line-height: 1.7;
}
dialog::backdrop {
    background: #092b2bab;
}
dialog h2 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
}
#close-info {
    float: right;
    border: 0;
    background: none;
    font-size: 25px;
}
dialog p {
    white-space: pre-line;
}
.tile img,
.tile svg {
    min-width: 0;
    min-height: 0;
    display: block;
}
#size {
    appearance: none;
    background: transparent;
}
#size::-webkit-slider-runnable-track {
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
}
#size::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--teal);
    margin-top: -5.5px;
}
#size::-moz-range-track {
    height: 3px;
    background: var(--dark);
}
#size::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: var(--teal);
}

/* 11. Readable labels, color target, and text pages */
a {
    color: inherit;
}
a:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 4px;
}
header nav a,
.types a {
    text-decoration: none;
}
header nav a:hover,
header nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.types a {
    text-align: center;
}
.custom-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.text-button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--ink);
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tile-caption {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    line-height: 14px;
    white-space: nowrap;
    font-weight: 400;
}
.color-target {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 11px;
}
.color-target button {
    border: 1px solid var(--teal);
    border-radius: 3px;
    background: transparent;
    padding: 3px 7px;
}
.color-target button[aria-pressed="true"] {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}
.selected-color .color-input {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}
.scan-reminder {
    margin: 14px 13px 0;
    font-size: 11px;
    line-height: 1.6;
}
.reading-area {
    background: var(--paper);
    border-radius: 18px;
    padding: 38px 40px 48px;
    min-height: 600px;
}
.page-copy {
    max-width: 760px;
    color: var(--dark);
    font-size: 15px;
    line-height: 1.85;
}
.page-copy h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 18px;
}
.page-copy h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 8px;
}
.page-copy p {
    margin-bottom: 16px;
}
.page-copy .lead {
    font-size: 19px;
}
.return-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    text-underline-offset: 4px;
}

/* Advanced QR settings: collapsed by default to keep the download panel compact. */
.advanced-options {
    margin: 16px 13px 0;
    font-size: 12px;
}
.advanced-options summary {
    cursor: pointer;
    font-weight: 600;
}
.advanced-options label {
    display: block;
    margin: 12px 0 6px;
}
.advanced-options select {
    width: 100%;
    padding: 8px;
    color: var(--dark);
    background: white;
    border: 1px solid var(--teal);
    border-radius: 4px;
    font-size: 11px;
}
.advanced-options p {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
}
.advanced-options summary:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
}

/* 12. Responsive adjustments */
@media (max-width: 1000px) {
    .app {
        width: calc(100% - 32px);
        margin-top: 40px;
    }
    .custom-panel {
        padding: 0;
    }
    .tile {
        width: 45px;
        height: 45px;
    }
    .corner-options .tile {
        width: 38px;
        height: 45px;
    }
    .shape-panel {
        gap: 10px;
    }
    .shape-panel > #pattern-options {
        max-width: 154px;
    }
    .color-fields {
        gap: 12px;
        padding: 0;
    }
    .color-input {
        width: 170px;
    }
    .color-input input:not([type="color"]) {
        width: 130px;
    }
    .logo-panel {
        flex-wrap: wrap;
    }
    .upload {
        width: 165px;
    }
    #preview {
        margin-inline: 4px;
        padding: 16px;
    }
    .custom-tabs {
        margin-bottom: 30px;
    }
}
@media (max-width: 740px) {
    .app {
        width: calc(100% - 20px);
        margin-top: 25px;
    }
    header {
        padding-inline: 10px;
    }
    .workspace {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .types {
        padding: 0 3px;
        gap: 0;
    }
    .types button {
        min-width: 0;
        flex: 1;
        font-size: 11px;
        padding-inline: 5px;
    }
    .customize {
        height: auto;
        min-height: 290px;
        padding: 25px 5px;
    }
    .preview {
        min-height: 0;
        padding-bottom: 20px;
    }
    #preview {
        height: 290px;
    }
    .shape-panel > #pattern-options {
        max-width: 150px;
    }
    .corner-options .tile {
        width: 35px;
        height: 40px;
    }
    .color-input {
        width: 150px;
    }
    .color-input input:not([type="color"]) {
        width: 115px;
    }
    .upload {
        margin-top: 12px;
    }
    .logo-panel {
        gap: 10px;
    }
    .custom-tabs {
        margin-top: 20px;
    }
    .content {
        padding-inline: 15px;
    }
    header nav {
        gap: 10px;
    }
}

@media (max-width: 740px) {
    .types a {
        min-width: 0;
        flex: 1;
        font-size: 11px;
        padding-inline: 5px;
    }
    .reading-area {
        padding: 25px 20px;
        min-height: 0;
    }
    .custom-heading {
        gap: 8px;
    }
    .text-button {
        font-size: 10px;
    }
    .swatches {
        gap: 8px;
    }
    .swatches button {
        width: 36px;
        height: 36px;
    }
    .color-target {
        flex-wrap: wrap;
    }
    .tile-caption {
        font-size: 9px;
    }
}

/* Keep the URL entry area visible before it receives focus. */
.content #website, .content #text { background: var(--paper); border: 1px solid #718f8f; }
.content #website::placeholder, .content #text::placeholder { color: #526f6f; opacity: 1; }
