:root {
    --brand-primary: #4a90e2;
    --brand-secondary: #5cace2;
    --bg-gradient-start: #f0f4f8;
    --bg-gradient-end: #e2ebf0;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar-brand-gradient {
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Card Styles */
.card-custom {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.04), 0 3px 5px -2px rgba(0, 0, 0, 0.02);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Metric Cards Accent */
.card-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bg-indigo-light {
    background-color: rgba(74, 144, 226, 0.12);
    color: var(--brand-primary);
}

.bg-violet-light {
    background-color: rgba(92, 172, 226, 0.12);
    color: var(--brand-secondary);
}

/* Custom Button */
.btn-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
    font-size: 0.9rem;
}

.btn-gradient:hover {
    opacity: 0.95;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.35);
}

.btn-gradient:active {
    transform: translateY(1px);
}

.btn-outline-custom {
    border: 1.5px solid rgba(226, 232, 240, 1);
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-outline-custom:hover {
    background-color: rgba(241, 245, 249, 1);
    color: var(--text-main);
    border-color: rgba(203, 213, 225, 1);
}

/* Search input styling */
.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    padding-left: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 1);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: #ffffff;
}

/* Custom Table design */
.table-custom-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.table-custom {
    margin-bottom: 0;
}

.table-custom th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 1);
}

.table-custom td {
    padding: 10px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(241, 245, 249, 1);
}

.table-custom tbody tr {
    transition: background-color 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.8);
}

/* Badges styling */
.badge-dewey {
    background-color: rgba(74, 144, 226, 0.12);
    color: var(--brand-primary);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.badge-rak {
    background-color: rgba(92, 172, 226, 0.12);
    color: var(--brand-secondary);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Modal custom aesthetics */
.modal-content-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header-custom {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    padding: 18px 20px;
    border-bottom: none;
}

.modal-body-custom {
    padding: 20px;
    background-color: #ffffff;
}

.modal-footer-custom {
    padding: 14px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.form-label-custom {
    font-weight: 600;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 6px;
}

.form-control-custom {
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 1);
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Alerts Custom styling */
.alert-custom {
    border-radius: 16px;
    border: none;
    padding: 16px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.alert-custom i {
    font-size: 1.25rem;
    margin-right: 12px;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: rgba(203, 213, 225, 1);
    margin-bottom: 20px;
    display: inline-block;
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Custom Tabs & Lists overrides for Rack/Level Modals */
.nav-tabs .nav-link {
    border-bottom: 2px solid transparent !important;
    font-size: 0.85rem;
    padding: 10px 14px;
}
.nav-tabs .nav-link.active {
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid #ffffff !important;
    opacity: 1 !important;
}
.border-end {
    border-right: 1px solid rgba(226, 232, 240, 1) !important;
}
