/* ============================================
   3D-Land Global Styles - Verbeterd contrast
   Voor een zachte, uitnodigende interieurcollectie
   ============================================ */

:root {
    /* Warm basiskleurenschema - Terracotta & Perzik */
    --primary: #e8b4a0;
    --primary-dark: #d49c86;
    --primary-light: #f5cebe;
    --primary-bg: rgba(232, 180, 160, 0.12);
    --primary-soft: #fff5f0;
    
    /* Secundaire warme tinten - Zachte mauve & roze */
    --secondary: #d4b8c4;
    --secondary-dark: #be9eac;
    --secondary-light: #e8d3dc;
    --secondary-bg: rgba(212, 184, 196, 0.1);
    
    /* Status kleuren - VERBETERD CONTRAST */
    --success: #2c6e3c;
    --success-dark: #1e552c;
    --success-light: #6b9c78;
    --success-bg: #e6f4ea;
    --warning: #b45f1b;
    --warning-dark: #9a4a12;
    --warning-light: #d48a4a;
    --warning-bg: #fff3e0;
    --danger: #bc4a2c;
    --danger-dark: #a03a1e;
    --danger-light: #d47a5a;
    --danger-bg: #fee9e6;
    --info: #5f8b9e;
    --info-dark: #4a6f82;
    --info-light: #8aafc2;
    --info-bg: #eef4f8;
    
    /* Zachte grijswaarden met warme ondertoon */
    --gray-50: #fefcfa;
    --gray-100: #faf7f2;
    --gray-200: #f3ede6;
    --gray-300: #e6dfd6;
    --gray-400: #d1c8bd;
    --gray-500: #b0a699;
    --gray-600: #8f8477;
    --gray-700: #6e6458;
    --gray-800: #4d443b;
    --gray-900: #2c2620;
    
    /* Warme gradienten */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-soft: linear-gradient(135deg, #fffbf7 0%, #fef7f0 100%);
    --gradient-warm: linear-gradient(135deg, #fff5ed 0%, #fef0e5 100%);
    --gradient-dark: linear-gradient(135deg, #5d5348 0%, #4a4137 100%);
    
    /* Zachte, warme shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03), 0 1px 1px 0 rgb(0 0 0 / 0.02);
    --shadow-md: 0 4px 8px -2px rgb(0 0 0 / 0.04), 0 2px 4px -1px rgb(0 0 0 / 0.02);
    --shadow-lg: 0 10px 20px -5px rgb(0 0 0 / 0.06), 0 4px 8px -2px rgb(0 0 0 / 0.02);
    --shadow-hover: 0 15px 30px -12px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 0 3px rgba(232, 180, 160, 0.2);
    
    /* Border radius - zacht en rond */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    
    /* Animatie */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBALE STIJLEN
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fefaf5 0%, #fcf5ec 100%);
    color: var(--gray-800);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Animatie */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content > * {
    animation: fadeIn var(--transition-normal) var(--easing);
}

/* ============================================
   NAVBAR STYLING
   ============================================ */
.navbar {
    background: rgba(255, 252, 248, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 180, 160, 0.2);
    padding: 0.75rem 0;
    z-index: 1060;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    opacity: 0.8;
}

/* Admin nav buttons */
.nav-admin-btn {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast) var(--easing);
    color: var(--gray-600) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-admin-btn i {
    font-size: 1.1rem;
}

.nav-admin-btn:hover {
    background-color: var(--gray-100);
    color: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.nav-admin-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gray-800) !important;
    box-shadow: var(--shadow-sm);
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--gray-800);
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   BOTTOM NAVIGATION BAR (ALLEEN OP MOBIEL)
   ============================================ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 252, 248, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(232, 180, 160, 0.2);
    z-index: 1050;
    padding: 0.5rem 0.75rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.02);
}

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

.bottom-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray-400);
    transition: all var(--transition-fast) var(--easing);
    padding: 0.5rem 0;
    border-radius: var(--radius-full);
    position: relative;
}

.bottom-nav-link i {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-link span {
    font-size: 0.65rem;
    font-weight: 500;
}

.bottom-nav-link:hover {
    color: var(--primary-dark);
    background: var(--gray-50);
}

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

.bottom-nav-link.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: 15%;
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--gray-800);
    border: 1.5px solid white;
}

.nav-badge-primary {
    background: var(--primary);
}

.nav-badge-success {
    background: var(--success);
}

/* Pulse animation */
@keyframes pulse-warm {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 180, 160, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(232, 180, 160, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 180, 160, 0); }
}

.animate-pulse {
    animation: pulse-warm 1.5s infinite;
}

/* ============================================
   HEADER COMPONENTEN
   ============================================ */
.page-header {
    background: var(--gradient-dark);
    border-radius: var(--radius-2xl);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success);
    border-left-color: var(--success);
}

.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert-warning {
    background-color: var(--warning-bg);
    color: var(--warning);
    border-left-color: var(--warning);
}

.alert-info {
    background-color: var(--info-bg);
    color: var(--info);
    border-left-color: var(--info);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    margin-top: auto;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    transition: all var(--transition-fast) var(--easing);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

/* ============================================
   FORMULIEREN
   ============================================ */
.form-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-fast) var(--easing);
}

.form-card:hover {
    box-shadow: var(--shadow-md);
}

.form-label-custom {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control-custom,
.form-select-custom {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    transition: all var(--transition-fast);
    width: 100%;
    background-color: white;
}

.form-control-custom:focus,
.form-select-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   KNOppen
   ============================================ */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem;
    font-weight: 700;
    transition: all var(--transition-fast);
    width: 100%;
    color: var(--gray-800);
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 180, 160, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--gray-900);
}

.btn-success-custom {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-weight: 700;
    transition: all var(--transition-fast);
    width: 100%;
    color: white;
}

.btn-success-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 110, 60, 0.4);
}

.btn-add-product {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.625rem 1.5rem;
    font-weight: 700;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(232, 180, 160, 0.2);
    color: var(--gray-800);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-product:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 180, 160, 0.3);
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* ============================================
   BADGES
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.status-stock {
    background: var(--success-bg);
    color: var(--success);
    border-left-color: var(--success);
}

.status-print {
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border-left-color: var(--warning);
}

.status-paid {
    background: var(--info-bg);
    color: var(--info);
    border-left-color: var(--info);
}

.status-completed {
    background: var(--success-bg);
    color: var(--success);
    border-left-color: var(--success);
}

.status-gift {
    background: var(--gray-100);
    color: var(--gray-700);
    border-left-color: var(--gray-400);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
    border: none;
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal) var(--easing);
    height: 100%;
    overflow: hidden;
    background: white;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gray-200);
}

.product-card-img-top {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal) var(--easing);
}

.product-card:hover .product-card-img-top {
    transform: scale(1.02);
}

.price-badge {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    background: var(--primary-bg);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.price-badge::before {
    content: "€";
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   TABELLEN
   ============================================ */
.table-container {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-custom {
    width: 100%;
    margin-bottom: 0;
}

.table-custom thead th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    padding: 1rem 1rem;
}

.table-custom tbody tr {
    transition: all var(--transition-fast);
}

.table-custom tbody tr:hover {
    background: var(--gray-50);
}

.table-custom tbody td {
    padding: 1rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

/* ============================================
   THUMBNAILS
   ============================================ */
.thumbnail-container {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.thumbnail-container:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 991px) {
    .navbar-toggler {
        display: none;
    }
    
    .bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        gap: 0.25rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 1rem 1.25rem;
        border-radius: var(--radius-xl);
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .product-card-img-top {
        height: 160px;
    }
    
    .thumbnail-container {
        width: 48px;
        height: 48px;
    }
    
    .status-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.65rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #5d5348 0%, #4a4137 100%);
}

.gradient-warm {
    background: linear-gradient(135deg, #fff5ed 0%, #fef0e5 100%);
}

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-hover:hover { box-shadow: var(--shadow-hover); }

.transition-fast { transition: all var(--transition-fast) var(--easing); }
.transition-normal { transition: all var(--transition-normal) var(--easing); }

.bg-primary-light { background-color: var(--primary-bg); }
.bg-success-light { background-color: var(--success-bg); }
.bg-warning-light { background-color: var(--warning-bg); }
.bg-danger-light { background-color: var(--danger-bg); }
.bg-info-light { background-color: var(--info-bg); }

.text-primary-dark { color: var(--primary-dark); }
.text-success-dark { color: var(--success-dark); }
.text-warning-dark { color: var(--warning-dark); }
.text-danger-dark { color: var(--danger-dark); }
.text-info-dark { color: var(--info-dark); }