/* 
  MeoowZMart Premium CSS Design System
  Vibrant dark/glassmorphic look with modern HSL color tokens
*/

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

:root {
    --bg-dark: #0f111a;
    --bg-card: rgba(30, 41, 59, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #c084fc; /* soft purple */
    --primary-hover: #a855f7;
    --accent: #22d3ee; /* light cyan */
    --accent-hover: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #34d399;
    --danger: #f87171;
    --font-outfit: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-outfit);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Main Container Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 132, 252, 0.3);
    box-shadow: 0 12px 40px 0 rgba(192, 132, 252, 0.15);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    font-family: var(--font-outfit);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

/* Grid Systems */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card Styling */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
}

/* Header & Navbar Styling */
.navbar {
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

.nav-link.active {
    color: var(--primary);
}

/* Badges */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

/* Dashboard Sidebar & Core Grid */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    gap: 0.75rem;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(192, 132, 252, 0.1);
    color: var(--primary);
}

/* Light / Bright Mode Styles */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 17, 26, 0.08);
    --primary: #9333ea;
    --primary-hover: #7e22ce;
    --accent: #0891b2;
    --accent-hover: #0369a1;
    --text-main: #0f111a;
    --text-muted: #475569;
}

body.light-mode .navbar {
    background: rgba(248, 250, 252, 0.85);
}

body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    background: rgba(15, 17, 26, 0.03) !important;
    color: #0f111a !important;
    border-color: rgba(15, 17, 26, 0.12) !important;
}

body.light-mode select {
    background-color: #ffffff !important;
}

body.light-mode .btn-secondary {
    background: rgba(15, 17, 26, 0.05);
    color: #0f111a;
}

body.light-mode .btn-secondary:hover {
    background: rgba(15, 17, 26, 0.08);
}

body.light-mode #lang-dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(15, 17, 26, 0.1) !important;
}

body.light-mode .lang-opt {
    color: #0f111a !important;
}

body.light-mode .lang-opt:hover {
    background: rgba(15, 17, 26, 0.05);
}
