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

:root {
    --primary: #c2b280; /* Earth Beige */
    --primary-hover: #b0a070;
    --secondary: #b88d0b; /* Darker Yellow / Harvest Gold */
    --dark: #3e2723; /* Deep Umber */
    --light: #fdfaf5; /* Warm White */
    --border-color: #d7ccc8;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    color: var(--dark);
    min-height: 100vh;
}

/* Navbar Premium Styling */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.5rem;
}

/* Standard Solid Cards */
.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
}

/* Dashboard Color Cards — solid, no gradients */

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.5);
}

/* Inputs */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Sidebar & Layout Wrapper */
#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 280px;
    max-width: 280px;
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    position: sticky;
    top: 0;
}

#sidebar.collapsed {
    margin-left: -280px;
}

#content {
    width: 100%;
    transition: all 0.3s;
}

/* Sidebar Nav Customization */
.sidebar {
    background: #f5f5dc !important; /* Beige Sidebar */
    border-right: 1px solid var(--border-color);
}

.sidebar .nav-link {
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.2rem;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--secondary) !important; /* Brown text */
}

.sidebar .nav-link:hover {
    background: rgba(184, 141, 11, 0.08); /* Yellow hover tint */
}

.sidebar .nav-link.active {
    background: var(--secondary) !important; /* Yellow background */
    color: var(--light) !important; /* Beige text */
    box-shadow: 0 4px 6px -1px rgba(184, 141, 11, 0.4);
}

.sidebar .nav-link i {
    font-size: 1.1rem;
    width: 1.5rem;
}

/* Toggle Button */
#sidebarCollapse {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s;
}

#sidebarCollapse:hover {
    color: var(--dark);
}

/* Glassmorphism Sidebar (Warm Variant) */
.bg-dark {
    background: linear-gradient(180deg, #f5f5dc 0%, #e1d4c0 100%) !important;
}

.logo-text {
    color: var(--secondary) !important;
}

.sidebar hr {
    border-top: 1px solid var(--border-color);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -280px;
        position: fixed;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content.active {
        margin-left: 280px;
    }
}

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

.container-fluid {
    animation: fadeIn 0.6s ease-out forwards;
}
