/**
 * Custom Stylesheet for JewelApp
 */

/* --- General Layout & Body --- */
body {
    background-color: #f8f9fc;
}

#wrapper {
    display: flex;
    width: 100%;
}

#content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

#content {
    flex: 1 0 auto;
}

/* --- NEW Gradient Sidebar Theme --- */
.sidebar {
    width: 250px;
    min-height: 100vh;
    /* NEW: Diagonal linear gradient for a deeper look */
    background: linear-gradient(170deg, #2d2d2d 0%, #1c1c1c 100%);
    color: #fff;
    transition: all 0.3s;
    border-right: 1px solid #000;
    /* Sharp edge */
}

.sidebar-brand {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.sidebar-brand a {
    color: #D4AF37;
    /* Muted gold color */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.sidebar-brand a:hover {
    color: #FFFFFF;
}

.sidebar-brand a .fa-gem {
    transform: rotate(-15deg);
}

.sidebar hr {
    border-top: 1px solid #444;
    margin: 1rem;
}

.sidebar .nav-item {
    margin: 0 0.5rem;
}

.sidebar .nav-link {
    color: #adb5bd;
    /* Light grey for inactive text */
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 0.35rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    border-left: 4px solid transparent;
    /* Placeholder for the fold effect */
}

.sidebar .nav-link .fa-fw {
    margin-right: 0.5rem;
}

.sidebar .nav-item.active>.nav-link,
.sidebar .nav-link:hover {
    background-color: #343a40;
    color: #FFFFFF;
    /* NEW: Golden "fold" or "edge" effect on hover/active */
    border-left: 4px solid #D4AF37;
}

/* Styles for the sub-menu */
.sidebar .sub-menu {
    padding-left: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.35rem;
    margin: 0.25rem 0 0.5rem 0;
    list-style: none;
}

.sidebar .sub-menu .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-left: none;
    /* Sub-menu items don't need the main fold effect */
}

.sidebar .sub-menu .nav-link:hover {
    background-color: rgba(212, 175, 55, 0.1);
    /* Faint gold hover for sub-items */
}


/* --- Login Page Styles --- */
.login-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f8f9fa;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

/* --- Utility Classes for Dashboard/Order Tiles --- */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}