@charset "UTF-8";
/*!
 * QRcdr - php QR Code generator
 * Custom Design - Dark Purple Theme (passwort.inet.onl style)
 */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ===== CSS Variables - Dark Purple Theme ===== */
:root {
    --primary: #5B2D8E;
    --primary-light: #7C3AED;
    --primary-dark: #4C1D95;
    --primary-darker: #3B0F7A;
    --accent: #A78BFA;
    --accent-light: #C4B5FD;

    --bg: #F8F7FC;
    --bg-alt: #F0EDF7;
    --bg-dark: #1A0F2E;
    --bg-dark-light: #2D1B4E;

    --text: #1A1625;
    --text-light: #4A4458;
    --text-lighter: #716B80;
    --text-white: #F7F5FC;

    --border: #D4CCE5;
    --border-light: #E8E3F0;

    --shadow-sm: 0 1px 3px rgba(91, 45, 142, 0.08);
    --shadow-md: 0 4px 12px rgba(91, 45, 142, 0.1);
    --shadow-lg: 0 8px 30px rgba(91, 45, 142, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.25s ease;
}

/* ===== Base ===== */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: var(--bg) !important;
    color: var(--text);
    line-height: 1.7;
    padding-top: 70px !important;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif !important;
}

a:hover, a:focus, a:active {
    text-decoration: none;
}

hr {
    border-color: var(--border-light);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: rgba(124, 58, 237, 0.3);
    color: var(--primary-dark);
}

/* ===== Custom Navbar (passwort.inet.onl style) ===== */
.qrcdr-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 10px 0;
    background: rgba(248, 247, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.qrcdr-nav-container {
    display: flex;
    align-items: center;
}

.qrcdr-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.qrcdr-nav-logo:hover {
    color: var(--text);
    text-decoration: none;
}

.qrcdr-nav-logo img {
    height: 40px;
    width: auto;
}

/* Hide original Bootstrap navbar */
nav.navbar.bg-primary,
nav.navbar.bg-dark,
nav.navbar.navbar-dark {
    display: none !important;
}

/* ===== Custom Header (hidden) ===== */
.qrcdr-header {
    display: none;
}

/* ===== Bootstrap Overrides ===== */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-light {
    background-color: white !important;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg) !important;
}

.btn:disabled {
    opacity: 0.2;
}

.btn.focus, .btn:focus {
    box-shadow: none !important;
}

.btn-primary {
    background: var(--primary-dark) !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(91, 45, 142, 0.3) !important;
    transition: var(--transition) !important;
    padding: 10px 24px !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-darker) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(91, 45, 142, 0.4) !important;
}

.btn-primary:disabled {
    opacity: 0.4;
    transform: none;
}

.btn-outline-primary {
    color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    border-radius: 4px !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

.btn-secondary,
.btn-outline-secondary {
    border-radius: 4px !important;
}

.btn-light {
    border-radius: var(--radius-sm) !important;
}

.btn-group-toggle .btn {
    border-radius: 0;
}

.btn-check:active + .btn,
.btn-check:checked + .btn {
    background-color: var(--bg-alt) !important;
    border-color: var(--border) !important;
}

/* ===== Form Controls ===== */
.form-control {
    background-color: rgba(91, 45, 142, 0.02) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-sm) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: var(--transition) !important;
    padding: 10px 14px !important;
}

.form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}

.form-select {
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-sm) !important;
}

textarea.form-control {
    margin-bottom: 1rem;
}

.was-validated .form-control:valid {
    background-image: none;
    border-color: var(--border-light) !important;
}

.was-validated .custom-select:valid {
    border-color: var(--border-light) !important;
}

.custom-control-input.is-valid ~ .custom-control-label,
.was-validated .custom-control-input:valid ~ .custom-control-label {
    color: inherit;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control.no-validate:valid,
.form-control.no-validate:invalid {
    border-color: var(--border-light) !important;
    padding-right: .75rem;
    background: none;
}

/* ===== Nav Pills / Tabs ===== */
.nav-pills .nav-link,
.nav-pills .nav-link.rounded-pill {
    border-radius: 4px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 500;
    color: var(--text) !important;
    background: white !important;
    padding: 8px 18px;
    transition: var(--transition);
    border: 1px solid var(--border-light) !important;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.rounded-pill:hover {
    color: var(--primary-dark) !important;
    background: rgba(76, 29, 149, 0.06) !important;
    border-color: var(--border) !important;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link.active.rounded-pill,
.nav-pills .show > .nav-link {
    background: var(--primary-dark) !important;
    color: white !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 2px 8px rgba(76, 29, 149, 0.35);
}

.nav-pills > li > a span {
    font-size: .8em;
}

/* ===== Accordion ===== */
.accordion {
    --bs-accordion-border-width: 0;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(76, 29, 149, 0.08) !important;
    color: var(--primary-dark) !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(76, 29, 149, 0.12) !important;
}

/* ===== Dropdown ===== */
.dropdown-menu {
    z-index: 1022;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-lg) !important;
}

.navbar-dark .navbar-toggler {
    border-color: transparent;
}

/* ===== QR Code Placeholder ===== */
.wrapresult, .resultholder {
    position: relative;
    text-align: center;
}

.resultholder svg {
    max-width: 100%;
    height: auto;
}

.placeresult {
    float: left;
    width: 100%;
    padding: 16px;
    box-shadow: inset 0 2px 4px rgba(91, 45, 142, 0.08);
    position: relative;
    background: white !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-light);
}

.placeresult .linksholder .btn {
    font-size: 2.5rem;
}

.preloader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    font-size: 36px;
    display: none;
    box-shadow: inset 0 2px 4px rgba(91, 45, 142, 0.08);
    border-radius: var(--radius-lg);
}

.preloader .fa-cog {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -18px;
    margin-top: -18px;
    color: var(--primary);
}

.generate_qrcode {
    margin-top: 12px;
    font-size: 1rem !important;
}

/* ===== Watermarks & Logos ===== */
.logoselecta img, .hold-custom-watermark {
    min-height: 2em;
    min-width: 2em;
    max-width: 2em;
    max-height: 2em;
}

.hold-custom-watermark > * {
    max-width: 100%;
    height: auto;
}

.btn.custom-watermark {
    padding: 0;
}

.custom-watermark img {
    max-width: 100%;
    height: 2em;
    margin: .375rem .75rem;
}

.styleselecta img {
    width: 2.5em;
}

.styleselecta label {
    min-width: 2.5em;
}

.input-group > .sp-colorize-container {
    flex: 1 1 auto;
    width: 1%;
}

/* ===== Custom File Upload ===== */
.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    margin-bottom: 0;
}

.custom-file-label {
    border: none;
}

label.custom-file-label:after {
    content: "\f093" !important;
    font-family: 'FontAwesome';
    width: 100%;
    border: none;
    text-align: center;
    border-radius: .25rem;
}

.custom-file-label:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.5em + .75rem);
    padding: .375rem .75rem;
    line-height: 1.5;
}

/* ===== Google Maps ===== */
#map-canvas img {
    max-width: none;
}

#map-canvas {
    width: 100%;
    height: 350px;
    padding: 0;
    float: left;
    border-radius: var(--radius-md);
}

.controls {
    margin-top: 16px;
    border: 1px solid transparent;
    box-sizing: border-box;
    height: 32px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#pac-input, #latlong input {
    background-color: #fff;
    padding: 0 11px 0 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 300;
    text-overflow: ellipsis;
}

#pac-input {
    width: 50%;
}

#latbox, #lngbox {
    width: 20%;
}

#pac-input:focus, #latlong input:focus {
    border-color: var(--accent);
}

.venomap {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
}

/* ===== OL Controls ===== */
.ol-attribution * {
    font-size: 9px;
}

.ol-control {
    padding: 0;
}

.ol-control.ol-zoom,
.ol-control.ol-zoom:hover {
    background: none;
    z-index: 9;
}

.ol-control button,
.ol-control button:focus,
.ol-control button:hover {
    background-color: var(--primary-dark);
}

.ol-control button:focus,
.ol-control button:hover {
    opacity: .8;
}

/* ===== Toast Alert ===== */
.alert_placeholder {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1021;
    transition: visibility .15s linear;
    visibility: hidden;
}

.alert_placeholder.show {
    visibility: visible;
}

/* ===== Animations ===== */
.icon-spin {
    -webkit-animation: icon-spin 2s infinite linear;
    animation: icon-spin 2s infinite linear;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Range Slider ===== */
input[type=range].qrcdr-slider-input {
    -webkit-appearance: none;
    margin: 10px 0;
    width: 100%;
    opacity: 0.8;
}

input[type=range].qrcdr-slider-input:focus {
    outline: none;
}

input[type=range].qrcdr-slider-input::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: var(--bg-alt);
    border-radius: 50px;
    border: 0;
}

input[type=range].qrcdr-slider-input::-webkit-slider-thumb {
    box-shadow: 0 2px 8px rgba(91, 45, 142, 0.3);
    border: 3px solid white;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-dark);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
}

input[type=range].qrcdr-slider-input:focus::-webkit-slider-runnable-track {
    background: var(--bg-alt);
}

input[type=range].qrcdr-slider-input::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: var(--bg-alt);
    border-radius: 50px;
    border: 0;
}

input[type=range].qrcdr-slider-input::-moz-range-thumb {
    box-shadow: 0 2px 8px rgba(91, 45, 142, 0.3);
    border: 3px solid white;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-dark);
    cursor: pointer;
}

input[type=range].qrcdr-slider-input::-ms-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type=range].qrcdr-slider-input::-ms-fill-lower {
    background: var(--bg-alt);
    border-radius: 100px;
}

input[type=range].qrcdr-slider-input::-ms-fill-upper {
    background: var(--bg-alt);
    border-radius: 100px;
}

input[type=range].qrcdr-slider-input::-ms-thumb {
    box-shadow: 0 2px 8px rgba(91, 45, 142, 0.3);
    border: 3px solid white;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-dark);
    cursor: pointer;
}

input[type=range].qrcdr-slider-input:focus::-ms-fill-lower {
    background: var(--bg-alt);
}

input[type=range].qrcdr-slider-input:focus::-ms-fill-upper {
    background: var(--bg-alt);
}

/* ===== CropIt ===== */
.image-editor {
    width: 248px;
}

.cropit-preview img {
    max-width: none;
}

.cropit-preview {
    background-size: cover;
    width: 200px;
    height: 200px;
    margin: 25px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.cropit-preview-image-container {
    cursor: move;
}

input.cropit-image-input {
    visibility: hidden;
    display: none;
}

.cropit-preview-background {
    opacity: .2;
}

input.cropit-image-zoom-input {
    position: relative;
}

.cropit-image-zoom-input, .cropit-preview {
    display: none;
}

.cropit-preview.cropit-image-loaded {
    display: block;
}

.cropit-image-loaded.cropit-image-zoom-input:not([disabled]) {
    display: inline-block;
}

/* ===== Misc ===== */
.overlay-gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
}

.vertical-middle {
    vertical-align: middle;
}

#infomarker_admin {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 3em;
    background-color: var(--accent-light);
    opacity: 0.5;
    cursor: move;
}

.ltr {
    direction: ltr;
}

/* ===== Custom Footer (passwort.inet.onl style) ===== */
.qrcdr-footer {
    background: var(--bg-dark);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 60px;
}

.qrcdr-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.qrcdr-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
}

.qrcdr-footer-brand img {
    height: 32px;
    width: auto;
}

.qrcdr-footer-copy {
    font-size: 0.8rem;
    color: rgba(247, 245, 252, 0.4);
}

.qrcdr-footer-copy a {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition);
}

.qrcdr-footer-copy a:hover {
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .qrcdr-footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    body.qrcdr {
        padding-top: 60px;
    }
}
