/* 
   StitchFlow - Custom Design System
   Vanilla CSS with CSS Variables, Flexbox, Grid, Glassmorphism, and Animations
*/

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

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-rgb: 99, 102, 241;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Light Mode */
    --bg-app: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Admin Dashboard Dark Theme Override Rules */
    --admin-bg: #090d16;
    --admin-card: #111827;
    --admin-border: #1f2937;
    --admin-text: #f9fafb;
    --admin-muted: #9ca3af;
    
    /* Layout Constants */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Base Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Common Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-app);
    border-color: #cbd5e1;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}
.btn-danger:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Card glassmorphism utility */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* --- PUBLIC NAVIGATION --- */
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 5%;
    transition: var(--transition-normal);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

header.main-header.scrolled {
    padding: 10px 5%;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    transition: var(--transition-normal);
}

.logo:hover img {
    transform: rotate(360deg);
}

.sidebar-logo img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary);
    box-shadow: 0 1px 5px rgba(99, 102, 241, 0.2);
    transition: var(--transition-normal);
}

.sidebar-logo:hover img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hamburger mobile menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- PUBLIC PAGES SECTIONS --- */
.section {
    padding: 100px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* HERO SECTION */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    padding-top: 150px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.hero-image-container:hover img {
    transform: scale(1.03);
}

.hero-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ABOUT & SERVICES */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CATALOG / PRICING SECTION */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.catalog-img-container {
    height: 220px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.catalog-img-container i {
    font-size: 5rem;
    color: #cbd5e1;
    transition: var(--transition-normal);
}

.catalog-card:hover .catalog-img-container i {
    transform: scale(1.1);
    color: var(--primary);
}

.catalog-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.catalog-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalog-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.catalog-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.catalog-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.catalog-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.catalog-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* CUSTOM ORDER FORM */
.order-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.order-form-container {
    padding: 40px;
}

.order-summary-container {
    background-color: #f8fafc;
    border-left: 1px solid var(--border-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: white;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.design-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    background-color: #fafbfc;
}

.design-upload-box:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.02);
}

.design-upload-box i {
    font-size: 2.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.order-summary-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1.5px dashed var(--border-color);
    padding-top: 15px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

/* TRACK ORDER SECTION */
.tracker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.tracker-search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.tracker-search-box input {
    flex-grow: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.05rem;
}

.tracker-search-box input:focus {
    border-color: var(--primary);
}

/* Timeline component */
.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background-color: #cbd5e1;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: 10px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e2e8f0;
    border: 4px solid var(--bg-card);
    transition: var(--transition-normal);
    box-shadow: 0 0 0 4px #cbd5e1;
}

.timeline-item.active .timeline-badge {
    background-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

.timeline-item.completed .timeline-badge {
    background-color: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
}

.timeline-content {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 25px;
}

.timeline-item.active .timeline-content {
    background-color: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.timeline-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-content .timestamp {
    font-size: 0.75rem;
    margin-top: 8px;
    font-weight: 600;
    display: inline-block;
}

/* --- AUTH LOGIN OVERLAY / MODAL --- */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.active {
    display: flex;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

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

.login-card-header i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.login-card-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.login-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.login-close:hover {
    color: var(--text-main);
}

/* --- ADMIN DASHBOARD LAYOUT --- */
.admin-container {
    display: none; /* Dynamic display toggle */
    min-height: 100vh;
    background-color: var(--admin-bg);
    color: var(--admin-text);
}

.admin-container.active {
    display: grid;
    grid-template-columns: 260px 1fr;
}

/* Admin Sidebar */
.admin-sidebar {
    background-color: #0f172a;
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    height: 100vh;
    position: sticky;
    top: 0;
}

.admin-sidebar .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 40px;
}

.admin-sidebar .sidebar-logo i {
    color: var(--primary);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: var(--admin-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-item:hover,
.sidebar-item.active {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--admin-text);
}

.sidebar-item.active {
    border-left: 4px solid var(--primary);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--admin-border);
}

/* Admin Main Content Panel */
.admin-main {
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--admin-border);
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 42px;
    height: 42px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* Admin Panels View Switching */
.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

/* Dashboard Analytics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    background-color: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.metric-info h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--admin-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-info p {
    font-size: 1.8rem;
    font-weight: 800;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.metric-icon.blue {
    background-color: rgba(14, 165, 233, 0.15);
    color: var(--secondary);
}

.metric-icon.green {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.metric-icon.amber {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.metric-icon.indigo {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

/* Dashboard Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
    margin-bottom: 40px;
}

.chart-card {
    background-color: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.chart-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ADMIN ORDER MANAGER TABLE */
.admin-card-table {
    background-color: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--admin-border);
}

.table-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.table-actions {
    display: flex;
    gap: 15px;
}

.table-search {
    background-color: #1f2937;
    border: 1px solid var(--admin-border);
    color: white;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 250px;
}

.responsive-table {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 16px 24px;
    color: var(--admin-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--admin-border);
}

.custom-table td {
    padding: 16px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--admin-border);
}

.custom-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Badges styling */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-progress { background-color: rgba(14, 165, 233, 0.15); color: var(--secondary); }
.badge-completed { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-cancelled { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); }

.badge-paid { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-unpaid { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-dp { background-color: rgba(99, 102, 241, 0.15); color: var(--primary); }

/* --- KANBAN BOARD / PRODUCTION PROCESS --- */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    min-height: 550px;
    align-items: start;
}

.kanban-column {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    padding: 20px 15px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.kanban-column-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.kanban-count {
    background-color: var(--admin-border);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.kanban-cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    min-height: 400px;
}

.kanban-card {
    background-color: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: var(--transition-fast);
}

.kanban-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kanban-card-id {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
}

.kanban-card-date {
    font-size: 0.75rem;
    color: var(--admin-muted);
}

.kanban-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.kanban-card-desc {
    font-size: 0.8rem;
    color: var(--admin-muted);
    margin-bottom: 15px;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kanban-qty {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--admin-muted);
}

.kanban-actions {
    display: flex;
    gap: 5px;
}

.btn-icon-sm {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background-color: #1f2937;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.btn-icon-sm:hover {
    background-color: var(--primary);
}

/* --- FINANCE PANEL LEDGER --- */
.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.finance-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.ledger-btn-group {
    display: flex;
    gap: 15px;
}

/* Modal form style for quick transactions */
.finance-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.finance-modal.active {
    display: flex;
}

/* --- CASHIER PORTAL LAYOUT --- */
.cashier-container {
    display: none; /* Toggle display active */
    min-height: 100vh;
    background-color: #0f172a;
    color: #f8fafc;
}

.cashier-container.active {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.cashier-main {
    padding: 30px;
    overflow-y: auto;
    height: 100vh;
}

.cashier-pos-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    height: calc(100vh - 150px);
}

/* Catalog selection in POS */
.pos-catalog-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.pos-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.pos-product-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.pos-product-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background-color: #1e293b;
}

.pos-product-card i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.pos-product-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.pos-product-card p {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
}

/* Bill / Active receipt cart */
.pos-cart-panel {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pos-cart-panel h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
}

.pos-cart-items {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding-right: 5px;
}

.pos-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f172a;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #334155;
}

.pos-item-details h5 {
    font-size: 0.9rem;
    font-weight: 700;
}

.pos-item-details p {
    font-size: 0.8rem;
    color: #94a3b8;
}

.pos-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pos-item-qty span {
    font-weight: 700;
    font-size: 0.9rem;
    width: 25px;
    text-align: center;
}

.btn-qty {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #334155;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty:hover {
    background-color: var(--primary);
}

.pos-cart-totals {
    border-top: 1.5px dashed #334155;
    padding-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pos-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.pos-total-row.grand-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
}

/* Receipt Modal Styles */
.receipt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.receipt-overlay.active {
    display: flex;
}

.receipt-paper {
    background-color: white;
    color: #000;
    width: 100%;
    max-width: 380px;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', Courier, monospace;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #000;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.receipt-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.receipt-header p {
    font-size: 0.8rem;
}

.receipt-details {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.receipt-details div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.receipt-items-table {
    border-bottom: 2px dashed #000;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.receipt-totals {
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.receipt-total-row.grand {
    font-weight: 800;
    font-size: 1rem;
    border-top: 1px dashed #000;
    padding-top: 5px;
}

.receipt-footer {
    text-align: center;
    font-size: 0.8rem;
    border-top: 2px dashed #000;
    padding-top: 15px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-card);
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    transform: translateX(120%);
    animation: slideIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.danger { border-left-color: var(--danger); }

@keyframes slideIn {
    to { transform: translateX(0); }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        margin: 0 auto 30px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .order-layout {
        grid-template-columns: 1fr;
    }
    .order-summary-container {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .cashier-pos-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .pos-cart-panel {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .nav-links, .auth-btn-group {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .admin-container.active {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        display: none;
    }
    .form-group-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
}

/* --- PUBLIC FOOTER SECTION --- */
.public-footer {
    background-color: #0f172a; /* Solid Slate-900 background */
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 40px 30px;
    margin-top: 80px;
    color: #94a3b8; /* Muted text */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc; /* Crisp white for brand name */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand h3 i {
    color: var(--primary);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1; /* Light gray for descriptions */
}

.footer-contact h4,
.footer-address h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc; /* Crisp white for column headers */
    margin-bottom: 20px;
}

.footer-contact p,
.footer-address p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1; /* Light gray for contact info */
}

.footer-contact p i,
.footer-address p i {
    color: var(--secondary);
    font-size: 1rem;
}

.footer-link {
    color: #ffffff; /* Bright white link */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: var(--secondary);
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand h3,
    .footer-contact p,
    .footer-address p {
        justify-content: center;
    }
}

