:root {
    --primary: #D4A056; /* Honey Gold */
    --secondary: #2C3E50; /* Dark Blue */
    --bg: #F4F6F8;
    --font: 'Cairo', sans-serif;
}
body { background-color: var(--bg); font-family: var(--font); color: var(--secondary); direction: rtl; overflow-x: hidden; }

/* Login Styles */
.login-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(244, 246, 248, 0.8); 
    backdrop-filter: blur(15px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.login-box {
    background: white; border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08); 
    width: 90%; max-width: 380px;
    border: 1px solid rgba(255,255,255,0.8);
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.animate-shake { animation: shake 0.3s ease-in-out; }

/* Dashboard Elements */
.glass-header { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.03); padding: 10px 0; }
.btn-custom { 
    border: none; background: transparent; color: #7f8c8d; 
    font-weight: 700; border-radius: 8px; padding: 8px 15px; transition: 0.2s; 
    font-size: 0.9rem;
}
.btn-custom.active { background: white; color: var(--secondary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.btn-custom:hover:not(.active) { background: rgba(0,0,0,0.03); }

/* KPI Cards */
.kpi-card { 
    padding: 20px; border-radius: 16px; background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
    transition: transform 0.2s; border: 1px solid rgba(0,0,0,0.03); 
    position: relative; overflow: hidden;
}
.kpi-card:hover { transform: translateY(-3px); }
.border-gold { border-top: 4px solid var(--primary); }
.border-secondary { border-top: 4px solid #95a5a6; }
.icon-box { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.bg-gold-light { background: #FFF4E0; } .text-gold { color: #D4A056; }
.bg-gray-light { background: #f1f2f6; }

/* Charts Area */
.glass-panel { background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.02); }

/* Animation */
.page-section { display: none; }
.page-section.active { display: block; animation: fadeUp 0.4s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Inventory Grid */
.inv-card {
    background: white; border-radius: 14px; padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03); border: 1px solid transparent;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.inv-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); border-color: var(--primary); }
.inv-qty { font-size: 1.6rem; font-weight: 800; color: var(--secondary); }
.inv-badge { position: absolute; top: 12px; left: 12px; font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; }
.btn-edit-float {
    width: 38px; height: 38px; border-radius: 50%; background: #f8f9fa; 
    color: var(--primary); border: none; display: flex; align-items: center; 
    justify-content: center; transition: 0.3s;
}
.btn-edit-float:hover { background: var(--primary); color: white; }

/* Mobile Tweaks */
@media (max-width: 768px) {
    .navbar-brand img { width: 30px; }
    .navbar-brand div div:first-child { font-size: 0.9rem !important; }
    #dateFilters { width: 100%; margin-top: 10px; justify-content: space-between !important; }
    #dateFilters input { flex-grow: 1; }
}