/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(30, 41, 59, 0.7);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}
.nav-logo { font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary), white 30%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 2rem; }
.nav-link { font-weight: 500; color: var(--text-muted); }
.nav-link:hover { color: var(--primary); }

.burger { display: none; font-size: 1.5rem; background: none; border: none; color: var(--text-main); cursor: pointer; }

/* QR Generator Styles */
.form-container {
    margin-top: 1.5rem;
}

.input-group {
    display: none;
}

.input-group.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    margin-top: 0.8rem;
    font-weight: 500;
}

.input-group label:first-child {
    margin-top: 0;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Mobile Sidebar */
.sidebar {
    position: fixed; top: 0; right: 0; width: 280px; height: 100%;
    background: var(--bg-card);
    padding: 5rem 2rem;
    transform: translateX(100%);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    border-left: 1px solid var(--border);
}
.sidebar.active { transform: translateX(0); }
.sidebar .nav-links { flex-direction: column; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: 0.3s; z-index: 98; }
.overlay.active { opacity: 1; pointer-events: auto; }

/* Main Container */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 8rem 1.5rem 4rem; 
    flex: 1;
    width: 100%;
}

/* Header */
.hero { text-align: center; margin-bottom: 4rem; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero h1 span { color: var(--primary); }
.hero p { color: var(--text-muted); font-size: 1.25rem; max-width: 600px; margin: 0 auto; }

/* Generator Card */
.generator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.input-section h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.form-group { margin-bottom: 1rem; }
.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    text-align: center;
}
.btn:hover {
    background: var(--primary-hover);
}
.btn-block {
    display: block;
    width: 100%;
}

.btn-generate {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: 0.3s;
    display: flex; justify-content: center; align-items: center; gap: 0.5rem;
}
.btn-generate:hover { background: var(--primary-hover); }

/* QR Preview */
.preview-section {
    background: #ffffff; /* QR codes look best on white usually, or we can use a container */
    border-radius: var(--radius);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem;
    min-height: 400px;
    position: relative;
    color: #000;
}
.qr-placeholder { color: #ccc; font-size: 5rem; }
.qr-image { max-width: 100%; height: auto; display: none; margin-bottom: 2rem; }
.btn-download {
    background: #e2e8f0; color: #1e293b;
    padding: 0.8rem 2rem; border-radius: 8px;
    font-weight: 600; text-decoration: none;
    display: none;
}
.btn-download:hover { background: #cbd5e1; transform: translateY(-2px); }

/* Content Sections */
.content-section { max-width: 800px; margin: 0 auto 4rem; }
.content-section h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--text-main); }
.content-section p { margin-bottom: 1rem; color: var(--text-muted); }

/* Footer */
footer {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.copyright { color: var(--text-muted); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 768px) {
    .burger { display: block; }
    .navbar .nav-links { display: none; }
    .generator-card { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
}
