/* 
   A-Zing Premium Design System
   Theme: Future Tech / Deep Space
*/

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

:root {
    /* Light Mode (Default) */
    --bg-dark: #f8fafc;
    /* actually light bg */
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);

    --accent-primary: #3b82f6;
    /* Blue */
    --accent-secondary: #8b5cf6;
    /* Purple */
    --accent-glow: #60a5fa;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-text: linear-gradient(90deg, #2563eb, #7c3aed);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;
    /* Reduced from 80px */
    --section-spacing: 60px;
    /* Reduced from 100px */

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --logo-filter: none;
    --nav-text: #334155;
    /* Darker slate for light mode nav */
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-light: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(5, 5, 7, 0.85);

    --gradient-text: linear-gradient(90deg, #60a5fa, #c084fc);

    --shadow-card: none;
    --logo-filter: brightness(0) invert(1);
    --nav-text: #e2e8f0;
    /* Lighter slate for dark mode nav */
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    /* Transition for theme switch */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    /* transition name conflict, handled in * or specific classes */
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

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

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
    filter: var(--logo-filter);
    transition: filter 0.3s ease;
}

.nav-center {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.nav-right {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--nav-text);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    /* Reduced from 100vh */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(5, 5, 7, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.2rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Features Grid */
.features-section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    /* Reduced from 60px */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    /* Reduced gap */
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 35px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
}

.card-title {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, var(--bg-dark) 60%);
    padding: 20px;
}

.auth-card {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: 0.3s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-btn {
    width: 100%;
    background: var(--gradient-main);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

.auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-link {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 50px 0 25px;
    background: var(--bg-dark);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    /* Fixed contrast */
    font-size: 0.9rem;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

/* Aurora Background Animation */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-dark);
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: aurora-move 20s infinite alternate;
}

/* Blob Colors & Positions */
.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    animation-duration: 25s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #06b6d4;
    /* Cyan */
    animation-duration: 22s;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes aurora-move {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(50px, 30px) rotate(20deg) scale(1.1);
    }
}



/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
}

/* Rest of Styles (Tables, Products) - Using Variables now */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

th,
td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: rgba(127, 127, 127, 0.05);
    /* Neutral table header */
    font-weight: 600;
    color: var(--text-muted);
}

tr:hover {
    background: rgba(127, 127, 127, 0.03);
}

.product-header {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, var(--bg-dark) 100%);
    padding: 100px 0 50px;
    text-align: center;
}

.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    margin-top: -30px;
    position: relative;
    backdrop-filter: blur(10px);
}

.mobile-menu-btn {
    display: none;
}