/* Base */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #254a00 0, #050b02 55%, #000000 100%);
    color: #111827;
}

/* Shell */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #163300, #4ade80);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f9fafb;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #d1fae5;
}

.header-badge {
    font-size: 0.8rem;
    color: #e5e7eb;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.5);
}

/* Main layout */
.app-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 1.5rem 2rem;
}

.layout {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1120px;
}

/* Panels */
.panel {
    background: #f9fafb;
    border-radius: 18px;
    padding: 1.6rem 1.6rem 1.5rem;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32);
}

.panel-form {
    border-top: 4px solid #163300;
}

.panel-preview {
    border-top: 4px solid #22c55e;
}

.panel-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
}

.panel-subtitle {
    margin: 0.3rem 0 1.2rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Form */
.cic-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.inline-row {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

select,
textarea,
input[type="text"],
input[type="search"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"] {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: #ffffff;
}

    select:focus,
    textarea:focus,
    input:focus {
        border-color: #163300;
        box-shadow: 0 0 0 1px rgba(22, 51, 0, 0.2);
        background: #ffffff;
    }

textarea {
    resize: vertical;
}

/* Data sections */
.data-section {
    display: none;
    padding: 0.1rem 0 0.2rem;
}

/* Colors */
.colors-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.color-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .color-input-group input[type="color"] {
        padding: 0;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid #d1d5db;
        background: transparent;
    }

    .color-input-group input[type="text"] {
        flex: 1;
    }

.background-color-wrapper.disabled {
    opacity: 0.5;
}

/* Buttons */
.btn-generate {
    margin-top: 0.4rem;
    align-self: flex-start;
    background: linear-gradient(135deg, #163300, #4ade80);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

    .btn-generate:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

    .btn-generate:active {
        transform: translateY(0);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
    }

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #16a34a;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #ecfdf3;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .btn-download:hover {
        background: #16a34a;
        color: #f9fafb;
        border-color: #15803d;
    }

/* Validation */
.validation {
    color: #b91c1c;
    font-size: 0.78rem;
}

.validation-summary {
    margin-top: 0.4rem;
    background: #fee2e2;
    color: #7f1d1d;
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
}

/* Checkboxes */
.checkbox-label {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

    .checkbox-label input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }

/* Preview side */
.qr-preview-shell {
    margin-top: 0.4rem;
}

.qr-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 0.9rem;
}

    .qr-preview img {
        max-width: 260px;
        width: 100%;
        height: auto;
        border-radius: 16px;
        background: #ffffff;
        padding: 0.9rem;
        box-shadow: 0 18px 30px rgba(15, 23, 42, 0.3);
    }

/* Placeholder */
.qr-placeholder {
    border-radius: 16px;
    border: 1px dashed #d1d5db;
    padding: 1.1rem;
    background: #f3f4f6;
}

.qr-placeholder-inner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.qr-placeholder-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px dashed #9ca3af;
}

.qr-placeholder-text {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Service notes */
.service-notes {
    margin-top: 1rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.83rem;
    color: #4b5563;
}

    .service-notes ul {
        margin: 0.35rem 0 0;
        padding-left: 1.1rem;
    }

    .service-notes li {
        margin-bottom: 0.2rem;
    }

.note-title {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel {
        padding: 1.3rem;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

@media (max-width: 640px) {
    .two-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .colors-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .qr-preview img {
        max-width: 220px;
    }
}
.visitor-counter {
    margin-top: 0.75rem;
    margin-left: 0.75rem;
    font-size: 1.2rem;
    color: lawngreen;
}

