@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Reset and Isolation for Plugin */
#bqs-platform-root,
#bqs-platform-root *,
#bqs-platform-root *::before,
#bqs-platform-root *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

#bqs-platform-root {
    /* CSS Variables */
    --bqs-bg-dark: #0a0f0d;
    --bqs-bg-card: rgba(15, 25, 20, 0.85);
    --bqs-bg-input: rgba(10, 20, 15, 0.9);
    --bqs-border: rgba(255, 255, 255, 0.08);
    --bqs-border-hover: rgba(255, 255, 255, 0.15);
    --bqs-primary: #10b981;
    --bqs-primary-light: #34d399;
    --bqs-accent: #22d3ee;
    --bqs-accent-orange: #f59e0b;
    --bqs-text: #f1f5f9;
    --bqs-text-muted: #64748b;
    --bqs-danger: #f43f5e;
    --bqs-glow: rgba(16, 185, 129, 0.4);
    --bqs-gradient: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #22d3ee 100%);
    --bqs-gradient-accent: linear-gradient(135deg, #22d3ee 0%, #10b981 100%);

    /* Main Container Styles */
    all: initial !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: var(--bqs-bg-dark) !important;
    background-image:
        radial-gradient(ellipse at top left, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(34, 211, 238, 0.08) 0%, transparent 50%) !important;
    color: var(--bqs-text) !important;
    min-height: 850px !important;
    height: auto !important;
    width: 100% !important;
    max-width: 1500px !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 80px -20px rgba(0, 0, 0, 0.8),
        0 0 100px -50px var(--bqs-glow) !important;
    margin: 2rem auto !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* ===================== HEADER ===================== */
#bqs-platform-root .bqs-topbar {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--bqs-border) !important;
    padding: 1.25rem 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#bqs-platform-root .bqs-brand {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    background: var(--bqs-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

#bqs-platform-root .bqs-brand i {
    color: var(--bqs-primary-light) !important;
    -webkit-text-fill-color: initial !important;
}

/* ===================== LAYOUT ===================== */
#bqs-platform-root .bqs-layout {
    display: flex !important;
    flex: 1 !important;
    min-height: 700px !important;
}

/* ===================== NAVIGATION ===================== */
#bqs-platform-root .bqs-nav {
    width: 240px !important;
    min-width: 240px !important;
    background: rgba(15, 15, 20, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-right: 1px solid var(--bqs-border) !important;
    padding: 1.5rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.bqs-nav-item {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: var(--bqs-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.bqs-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--bqs-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.bqs-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border-color: var(--bqs-border);
}

.bqs-nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: white;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px -5px var(--bqs-glow);
}

.bqs-nav-item.active::before {
    opacity: 1;
}

/* ===================== CONTENT ===================== */
.bqs-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: transparent;
}

/* ===================== VIEWS ===================== */
.bqs-view {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.bqs-view.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== GENERATOR LAYOUT ===================== */
.bqs-gen-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

@media (max-width: 1100px) {
    .bqs-gen-layout {
        grid-template-columns: 1fr;
    }
}

/* ===================== CARDS ===================== */
.bqs-card {
    background: var(--bqs-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bqs-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.bqs-card:hover {
    border-color: var(--bqs-border-hover);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.5);
}

.bqs-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--bqs-border);
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================== FORMS ===================== */
.bqs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bqs-control {
    margin-bottom: 1rem;
}

.bqs-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--bqs-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bqs-input,
.bqs-select,
.bqs-textarea {
    width: 100%;
    background: var(--bqs-bg-input);
    border: 1px solid var(--bqs-border);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.bqs-input:focus,
.bqs-select:focus,
.bqs-textarea:focus {
    border-color: var(--bqs-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px -5px var(--bqs-glow);
}

.bqs-input::placeholder {
    color: var(--bqs-text-muted);
}

.bqs-textarea {
    min-height: 90px;
    resize: vertical;
}

.bqs-color {
    height: 44px;
    padding: 4px;
    cursor: pointer;
    border-radius: 10px;
}

.bqs-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: var(--bqs-border);
    border-radius: 10px;
    cursor: pointer;
}

.bqs-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--bqs-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--bqs-glow);
}

/* ===================== BUTTONS ===================== */
.bqs-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: var(--bqs-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.bqs-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bqs-btn:hover::before {
    left: 100%;
}

.bqs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px var(--bqs-glow);
}

.bqs-btn:active {
    transform: translateY(0);
}

.bqs-btn-sm {
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid var(--bqs-border);
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.bqs-btn-sm:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--bqs-border-hover);
}

/* ===================== PREVIEW ===================== */
.bqs-preview-col {
    position: relative;
}

.bqs-preview-sticky {
    position: sticky;
    top: 2rem;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.5),
        0 0 80px -30px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient orbs */
.bqs-preview-sticky::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.bqs-preview-sticky::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Canvas container with white background */
.bqs-preview-sticky canvas {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 100%;
    height: auto;
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.bqs-frame-wrap {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Scan line animation */
.bqs-frame-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bqs-primary), transparent);
    animation: scanLine 2s ease-in-out infinite;
    opacity: 0.6;
    z-index: 2;
}

@keyframes scanLine {

    0%,
    100% {
        top: 0;
        opacity: 0;
    }

    50% {
        top: 100%;
        opacity: 0.8;
    }
}

/* Preview label */
.bqs-preview-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.bqs-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.bqs-error {
    color: var(--bqs-danger);
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
    display: none;
    padding: 0.75rem;
    background: rgba(244, 63, 94, 0.1);
    border-radius: 8px;
}

/* ===================== QR TYPE BUTTONS ===================== */
.bqs-qr-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.bqs-qr-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--bqs-bg-input);
    border: 2px solid var(--bqs-border);
    border-radius: 14px;
    color: var(--bqs-text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bqs-qr-type:hover {
    border-color: var(--bqs-primary);
    color: white;
    transform: translateY(-2px);
}

.bqs-qr-type.active {
    border-color: var(--bqs-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: white;
    box-shadow: 0 0 25px -5px var(--bqs-glow);
}

.bqs-qr-type i {
    transition: transform 0.3s;
}

.bqs-qr-type:hover i {
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .bqs-qr-types {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================== BULK GRID ===================== */
.bqs-bulk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.bqs-bulk-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1e293b;
    font-size: 0.7rem;
    text-align: center;
    word-break: break-all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.bqs-bulk-item:hover {
    transform: translateY(-3px);
}

.bqs-bulk-item canvas {
    max-width: 100%;
    height: auto;
}

/* ===================== PRESETS ===================== */
.bqs-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.bqs-preset-card {
    background: var(--bqs-bg-input);
    border: 1px solid var(--bqs-border);
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bqs-preset-card:hover {
    border-color: var(--bqs-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px var(--bqs-glow);
}

.bqs-preset-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bqs-preset-meta {
    font-size: 0.8rem;
    color: var(--bqs-text-muted);
}

/* ===================== DASHBOARD ===================== */
.bqs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.bqs-stat-card {
    background: var(--bqs-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bqs-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bqs-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bqs-gradient);
}

.bqs-stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bqs-primary-light);
}

.bqs-stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--bqs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bqs-stat-label {
    color: var(--bqs-text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ===================== TABLE ===================== */
.bqs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.bqs-table th,
.bqs-table td {
    padding: 1rem;
    text-align: left;
}

.bqs-table th {
    color: var(--bqs-text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--bqs-border);
}

.bqs-table td {
    color: white;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bqs-border);
}

.bqs-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ===================== FRAMES ===================== */
.bqs-frame-scan-me {
    border: 4px solid #1e293b;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    background: white;
}

.bqs-frame-scan-me::after {
    content: '📱 Beni Tara!';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bqs-frame-menu::after {
    content: '🍽️ Menü için Okut';
}

.bqs-frame-wifi::after {
    content: '📶 WiFi Bağlan';
}

.bqs-frame-payment::after {
    content: '💳 Ödeme Yap';
}

.bqs-frame-follow::after {
    content: '👍 Bizi Takip Et';
}

/* ===================== SCROLLBAR ===================== */
#bqs-platform-root ::-webkit-scrollbar {
    width: 8px;
}

#bqs-platform-root ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

#bqs-platform-root ::-webkit-scrollbar-thumb {
    background: var(--bqs-border);
    border-radius: 4px;
}

#bqs-platform-root ::-webkit-scrollbar-thumb:hover {
    background: var(--bqs-border-hover);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .bqs-nav {
        width: 200px;
    }

    .bqs-content {
        padding: 1.5rem;
    }

    .bqs-form-grid {
        grid-template-columns: 1fr;
    }
}