:root {
    /* Color Palette - Elegant Brown & White */
    --fure-bg: #FCFBFA;
    --fure-primary: #4E342E; /* Deep Coffee */
    --fure-primary-light: #795548;
    --fure-secondary: #8D6E63;
    --fure-accent: #D7CCC8;
    --fure-text: #263238;
    --fure-text-muted: #78909C;
    --fure-surface: #FFFFFF;
    --fure-border: #E0E0E0;
    
    /* Spacing & Others */
    --fure-radius: 0px; /* Sharp edges as requested */
    --fure-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--fure-bg);
    color: var(--fure-text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: 0.9375rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fure-primary);
}

.playfair {
    font-family: 'Lora', serif !important;
}

.brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    text-transform: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--fure-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--fure-accent);
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--fure-secondary);
}

/* Utility Classes */
.bg-fure-primary { background-color: var(--fure-primary) !important; }
.text-fure-primary { color: var(--fure-primary) !important; }
.text-white { color: #ffffff !important; }
.border-fure { border-color: var(--fure-border) !important; }

/* Buttons */
.btn {
    border-radius: var(--fure-radius);
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8125rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--fure-primary);
    color: var(--fure-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--fure-primary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(78, 52, 46, 0.2);
}

.btn-outline-primary {
    color: var(--fure-primary);
    border: 1px solid var(--fure-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--fure-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Animations */
@keyframes flipIn {
    0% {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-flip {
    animation: flipIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Cards */
.card {
    background: var(--fure-surface);
    border: 1px solid var(--fure-border);
    border-radius: var(--fure-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: var(--fure-transition);
}

.card:hover {
    border-color: var(--fure-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Pre-loader Splash Screen */
#fure-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--fure-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#fure-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: scalePulse 1.5s infinite ease-in-out;
}

@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Stat Cards Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.stat-card-animated {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-card-animated:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(78, 52, 46, 0.12) !important;
}

.stat-card-animated .stat-number {
    transition: all 0.5s ease;
}

.stat-card-animated:hover .stat-number {
    transform: translateX(10px);
    color: var(--fure-primary-light);
}

.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Navbar - Solid White Background */
.navbar {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid rgba(78, 52, 46, 0.1);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 20px rgba(78, 52, 46, 0.08) !important;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-toggler {
    color: var(--fure-text) !important;
}

/* Hero Section */
.hero-section {
    padding: 160px 0;
    background: linear-gradient(rgba(252, 248, 245, 0.55), rgba(252, 248, 245, 0.55)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--fure-primary);
}

/* Feature Cards */
.feature-card {
    padding: 40px;
    border: 1px solid var(--fure-border);
    background: #fff;
    height: 100%;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--fure-primary);
    transition: var(--fure-transition);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
}

/* Sidebar redone */
#sidebar {
    background: var(--fure-surface);
    border-right: 1px solid var(--fure-border);
    padding-top: 20px;
}

#sidebar .nav-link {
    color: var(--fure-text);
    padding: 12px 24px;
    border-radius: 0;
    margin: 0;
    font-weight: 500;
    border-left: 4px solid transparent;
}

#sidebar .nav-link:hover {
    background: var(--fure-bg);
    color: var(--fure-primary);
    border-left-color: var(--fure-accent);
}

#sidebar .nav-link.active {
    background: var(--fure-bg);
    color: var(--fure-primary);
    border-left-color: var(--fure-primary);
    font-weight: 700;
}

/* Tables Redesign */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--fure-bg);
    color: var(--fure-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--fure-primary);
    padding: 16px;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--fure-border);
}

/* Enhanced Responsiveness */
@media (max-width: 991.98px) {
    #sidebar {
        position: fixed;
        left: -280px;
        height: 100vh;
        box-shadow: 20px 0 30px rgba(0,0,0,0.05);
        z-index: 1050;
    }
    #sidebar.active {
        left: 0;
    }
    #content {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .topbar {
        padding: 10px 20px;
    }
    
    .main-content {
        padding: 24px 15px;
    }

    .hero-section {
        padding: 80px 0;
        text-align: center;
        background-attachment: scroll; /* Better for mobile */
    }

    .hero-title {
        font-size: 2.25rem !important;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
        text-align: center;
        border: none;
        padding: 0;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .furniture-preview {
        height: 350px !important;
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .card-body {
        padding: 20px 15px;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: var(--fure-radius);
    background-color: var(--fure-surface);
}

.modal-header {
    border-bottom: 1px solid var(--fure-border);
}

.modal-footer {
    border-top: 1px solid var(--fure-border);
}

.form-control, .form-select {
    border-radius: var(--fure-radius);
    padding: 10px 15px;
    border: 1px solid var(--fure-border);
}

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

.tiny {
    font-size: 0.7rem;
}

.ls-wide {
    letter-spacing: 0.15em;
}

.object-fit-cover {
    object-fit: cover;
}

.bg-fure-bg {
    background-color: var(--fure-bg) !important;
}

/* =============================
   FURE Custom Pagination
   ============================= */
.fure-pagination-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.fure-pagination-info {
    font-size: 0.78rem;
    color: var(--fure-text-muted);
    letter-spacing: 0.02em;
}

.fure-pagination-info strong {
    color: var(--fure-primary);
    font-weight: 600;
}

/* Pagination list */
.fure-pagination {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

/* Each page item */
.fure-page-item {
    display: flex;
}

/* Page link base */
.fure-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fure-text);
    background: #fff;
    border: 1px solid var(--fure-border);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: 0;
    line-height: 1;
    user-select: none;
}

/* Hover state */
a.fure-page-link:hover {
    background: var(--fure-bg);
    border-color: var(--fure-primary);
    color: var(--fure-primary);
    transform: none;
    box-shadow: none;
}

/* Active (current page) */
.fure-page-item.active .fure-page-link {
    background: var(--fure-primary);
    border-color: var(--fure-primary);
    color: #fff;
    font-weight: 700;
    cursor: default;
}

/* Disabled state */
.fure-page-item.disabled .fure-page-link {
    color: var(--fure-border);
    background: var(--fure-bg);
    border-color: var(--fure-border);
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots (...) */
.fure-page-dots {
    background: transparent;
    border-color: transparent;
    color: var(--fure-text-muted);
    min-width: 24px;
    cursor: default;
    letter-spacing: 0.05em;
}

/* Arrow icons sizing fix */
.fure-page-link svg {
    display: block;
    flex-shrink: 0;
}

/* Responsive: stack info & pagination on mobile */
@media (max-width: 576px) {
    .fure-pagination-nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
