/* ================= BASE ================= */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    color: #1d1d1f;
}

/* ================= NAVBAR ================= */
.navbar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 20px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #eee;
}

/* left */
.logo {
    font-weight: 600;
    font-size: 18px;
}

/* right group */
.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* items */
.navitem {
    text-decoration: none;
    color: #404040;
    font-size: 14px;
    cursor: pointer;
}

/* ================= LAYOUT ================= */
.app {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    gap: 40px;

    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

/* ================= LEFT PANEL ================= */
.container {
    width: 380px;
}

/* ================= RIGHT PANEL ================= */
.preview {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: #7f7f7f;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 20px;

    overflow: hidden;
}

/* ================= PDF ================= */
.preview iframe {
    width: 420px;
    height: 594px;

    border: none;
    display: block;

    background: white;
}

/* ================= TEXT ================= */
h1 {
    font-size: 42px;
    margin: 0;
}

p {
    color: #666;
    margin-top: 10px;
}

/* ================= TEXTAREA ================= */
textarea {
    width: 90%;
    height: 90px;
    margin-top: 20px;

    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;

    font-size: 16px;
    resize: none;
}

textarea:focus {
    outline: none;
    border-color: #999;
}

/* ================= HINT ================= */
.hint {
    font-size: 13px;
    color: #ff3b30;
    margin-top: 16px;
    opacity: 0.9;
}

/* ================= OPTIONS ================= */
.options {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.options input {
    display: none;
}

/* ================= CARDS ================= */
.card {
    width: 80px;
    height: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    border: 1px solid transparent;

    color: #555;
    cursor: pointer;
    transition: 0.15s ease;
}

.card svg {
    width: 24px;
    height: 24px;

    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.card span {
    margin-top: 6px;
    font-size: 13px;
}

/* ================= SELECTED ================= */
.options input:checked+.card {
    background: #fff;
    border-color: #d2d2d7;
    color: #000;
}

/* ================= HOVER ================= */
.card:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ================= CONTROLS ================= */
.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

/* ================= CHECKBOX ================= */
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* hide native */
.checkbox input {
    display: none;
}

.checkbox .box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid #c7c7cc;
    background: white;
    position: relative;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* checkmark */
.checkbox input:checked+.box {
    background: #0a84ff;
    border-color: #0a84ff;
}

.checkbox input:checked+.box::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* ================= SELECT ================= */
.select {
    border: 1px solid #ccc;
    height: 26px;
    padding: 2px 8px;
    font-size: 13.5px;
    border-radius: 6px;
}

/* ================= ACTIONS ================= */
.actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

/* ================= BASE BUTTON ================= */
.print-btn,
.share-btn {
    height: 42px;
    border-radius: 10px;
    border: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    cursor: pointer;

    font-size: 14px;
}

/* ================= PRINT ================= */
.print-btn {
    background: #000;
    color: #fff;

    padding: 0 16px;
    /* horizontal only */
    gap: 6px;
}

.print-btn i {
    font-size: 14px;
    display: block;
}

/* ================= SHARE ================= */
.share-btn {
    background: #0271e3;
    color: #fff;

    width: 42px;
    padding: 0;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ================= HOVER ================= */
.print-btn:hover,
.share-btn:hover {
    opacity: 0.9;
}