/* Custom Modern Glassmorphic Styles for QR Code Generator */

:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --primary-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --card-bg: rgba(255, 255, 255, 0.96);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    --border-radius: 1rem;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

.main-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary-gradient:hover:not(:disabled) {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary-gradient:active:not(:disabled) {
    transform: translateY(0);
}

.btn-outline-custom {
    border: 2px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.btn-outline-custom:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.form-control-custom {
    border-radius: 0.75rem;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* QR Code Preview Box */
.qr-preview-wrapper {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.qr-image-container img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.qr-image-container img:hover {
    transform: scale(1.02);
}

.placeholder-text {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Loading Spinner Animation */
.spinner-pulse {
    width: 3.5rem;
    height: 3.5rem;
    border: 4px solid rgba(99, 102, 241, 0.15);
    border-left-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Transition Utilities */
.fade-in {
    animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
