/* Netfontes - criador de logo. */

.page-create-logo #content h1 {
    margin-bottom: 10px;
}

.create-logo-controls {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin: 12px 0 28px;
}

.create-logo-text-panel {
    width: 270px;
    max-width: 100%;
    padding: 14px;
    border: 1px solid #b9c9d7;
    border-radius: 8px;
    background: linear-gradient(180deg, #eef6fb 0%, #dbeaf5 100%);
}

.create-logo-title {
    display: block;
    font-weight: bold;
}

.create-logo-text-panel textarea {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 8px;
    resize: vertical;
}

.create-logo-max {
    margin-top: 4px;
    font-size: 9px;
}

.create-logo-size {
    display: block;
    padding: 10px 0;
    font-weight: bold;
}

.create-logo-size input {
    width: 62px;
    margin: 0 4px;
    text-align: center;
}

.create-logo-generate {
    min-width: 120px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #8aa8bc;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    font-weight: bold;
}

.create-logo-generate:hover,
.create-logo-generate:focus-visible {
    border-color: #005874;
    outline: none;
}

.create-logo-color-panels {
    display: flex;
    flex: 1 1 540px;
    min-width: 0;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.create-logo-color-card {
    flex: 1 1 250px;
    min-width: 230px;
    max-width: 360px;
    padding: 12px;
    border: 1px solid #d4dce2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.create-logo-color-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: bold;
}

.create-logo-color-heading .create-logo-hex {
    width: 78px;
    margin: 0;
    padding: 6px 7px;
    background: #fff;
    font-family: Consolas, "Courier New", monospace;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.modern-color-picker-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    color: #4b5563;
    font-size: 11px;
}

.modern-color-picker {
    width: 42px;
    height: 32px;
    padding: 2px;
    border: 1px solid #bfc8cf;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.modern-color-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(22px, 1fr));
    gap: 5px;
}

.modern-color-swatch {
    appearance: none;
    display: block;
    width: 100%;
    min-width: 22px;
    min-height: 22px;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .22);
    border-radius: 5px;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.modern-color-swatch:hover,
.modern-color-swatch:focus-visible {
    position: relative;
    z-index: 1;
    transform: scale(1.12);
    border-color: #005874;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 88, 116, .18);
}

.modern-color-swatch.is-selected {
    border-color: #111827;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #005874;
}

#create-logo-preview {
    min-height: 120px;
    margin: 18px 0 26px;
    padding: 14px;
    border: 1px solid #e0e5e9;
    border-radius: 8px;
    background: #fafbfc;
    text-align: left;
    overflow: auto;
}

#create-logo-preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

.page-create-logo #content .mf a.is-active {
    border-color: #c00;
    background: #fff;
    color: #c00;
}

.page-create-logo #content .pg .page {
    min-width: 240px;
}

.page-create-logo #content .pg .page.page_r {
    margin-left: 20px;
    text-align: right;
}

.create-logo-back {
    padding-left: 10px;
}

.create-logo-error {
    margin: 50px 0 40px;
    color: #333;
    font-size: 20px;
}

@media only screen and (max-width: 760px) {
    .create-logo-controls,
    .create-logo-color-panels {
        display: block;
    }

    .create-logo-text-panel,
    .create-logo-color-card {
        width: 100%;
        max-width: 100%;
    }

    .create-logo-color-panels {
        margin-top: 12px;
    }

    .create-logo-color-card + .create-logo-color-card {
        margin-top: 12px;
    }

    .modern-color-grid {
        grid-template-columns: repeat(8, minmax(28px, 1fr));
        gap: 6px;
    }

    .modern-color-swatch {
        min-width: 28px;
        min-height: 28px;
    }

    .page-create-logo #content .pg .page,
    .page-create-logo #content .pg .page.page_r {
        width: 100%;
        min-width: 0;
        margin: 6px 0 0;
        text-align: center;
    }
}

@media only screen and (max-width: 420px) {
    .modern-color-grid {
        grid-template-columns: repeat(4, minmax(36px, 1fr));
    }
}
