/* QR Boost - Premium Static Generator Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    background: #f0f2f5;
    background-image: radial-gradient(#667eea11 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

/* Navigation */
.navbar {
    background: transparent !important;
    padding: 1.5rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #667eea !important;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards & Components */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 1.5rem !important;
}

.card-header h5 {
    font-weight: 700;
    font-size: 1.25rem;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.form-control,
.form-select {
    border: 2px solid #eef1f4;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* QR Preview Area */
#qrPreviewContainer {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

#qrPreviewContainer::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: var(--secondary-gradient);
    opacity: 0.2;
    z-index: 0;
}

#qrcode,
#qrPlaceholder {
    position: relative;
    z-index: 1;
}

#qrcode canvas,
#qrcode img {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto !important;
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 20px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    box-shadow: 0 8px 15px rgba(56, 239, 125, 0.2);
}

.btn-success:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 20px rgba(56, 239, 125, 0.3);
}

/* Type Select Icons */
.type-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-gradient);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #667eea;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Animations Delay */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 4rem 0 2rem;
    }

    #qrPreviewContainer {
        min-height: 300px;
        padding: 1.5rem;
    }
}

/* Glass Header Styling */
.navbar-glass {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Design Presets Gallery */
.preset-gallery {
    padding-top: 10px;
}

.preset-item {
    min-width: 45px;
    height: 45px;
    border-radius: 12px;
    padding: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.preset-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(67, 97, 238, 0.3);
}

.preset-preview {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.preset-item.active {
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.15);
}

.bg-primary-soft {
    background-color: rgba(67, 97, 238, 0.1);
}