:root {
    --navy: #1a4a7a;
    --navy-base: #1a4a7a;
    --bg: #f8fafd;
    --text-main: #1a1a1a;
    --text-sub: #666;
    --card-bg: #ffffff;
    --green: #2e7d32;
}

* { box-sizing: border-box; }
body { 
    margin: 0; 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg); 
    color: var(--text-main);
}

/* Global Animation Utilities */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Header Styling */
.main-header {
    background-color: var(--navy);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-group { color: white; display: flex; align-items: center; gap: 10px; font-weight: bold; letter-spacing: 1px; }
.user-avatar img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid white; }
/* Navigation */
.bottom-menu {
    position: fixed; bottom: 0; width: 100%;
    background: white; display: flex; justify-content: space-around;
    padding: 10px 0; border-top: 1px solid #eee;
}
.menu-item { text-align: center; font-size: 9px; color: #999; }
.menu-item i { display: block; font-size: 18px; margin-bottom: 4px; }
.menu-item.active i { transform: scale(1.1); /* Slightly enlarges the icon */transition: transform 0.2s ease; color: var(--navy); }

/* Dashboard Styling */
.dashboard-content { padding: 20px; animation: fadeIn 0.5s ease-out; }
.welcome-text { font-size: 24px; font-weight: 700; color: var(--text-main); margin-bottom: 5px; animation: fadeIn 0.5s ease-out 0.1s both; }
.stats-overview { color: var(--text-sub); animation: fadeIn 0.5s ease-out 0.2s both; }
.section-label { font-size: 0.85rem; font-weight: 600; color: var(--text-sub); display: block; margin: 25px 0 12px; text-transform: uppercase; letter-spacing: 0.5px; animation: fadeIn 0.5s ease-out 0.3s both; }
.shop-cards-container { display: grid; gap: 15px; animation: fadeIn 0.6s ease-out 0.4s both; }
.shop-card { 
    background: var(--card-bg); 
    display: flex; align-items: center; 
    padding: 15px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.shop-card:active {
    transform: scale(0.96);
    background-color: #ffffff;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
    border-color: var(--navy);
}
.shop-icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: white; }
.shop-icon.green { color: var(--green); background: #2e7d3244; }
.shop-icon.brown { color: #8a6500; background: #8a650036; }
.shop-icon.gold { color: #ffbb00; background: #ffee0028; }
.shop-details { margin: 0 auto 0 15px; }
.shop-details .label { font-size: 12px; color: var(--text-sub); }
.shop-details .name { font-weight: 700; color: var(--text-main); font-size: 1rem; }
.arrow { color: #ccc; }

.stats-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
    margin-top: 20px; 
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.stat-box { 
    background: var(--card-bg); 
    padding: 18px; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
}

.stat-box h3 { 
    font-size: 12px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: var(--text-sub); 
    margin: 0 0 12px; 
    font-weight: 600;
}

.chart-mini { 
    text-align: center; 
    font-size: 32px; 
    color: #e2e8f0; 
    padding: 10px 0;
}

.alert-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #dc2626; 
    font-size: 13px; 
    font-weight: 500;
}

.fab-add {
    position: fixed; bottom: 80px; right: 20px;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--navy); color: white;
    border: none; font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Professional Search Bar Styling */
.search-container {
    background-color: var(--navy); /* Match the header */
    padding: 0 20px 20px 20px;     /* Bottom padding creates space for the "overlap" */
    margin-bottom: 10px;
}

.search-bar {
    background: white;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;           /* Modern rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    gap: 12px;
}

.search-bar i {
    color: #999;                   /* Muted icon color */
    font-size: 16px;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
}

.search-bar input::placeholder {
    color: #bbb;                   /* Light placeholder text */
}

/* Optional: Add a focus effect */
.search-bar:focus-within {
    box-shadow: 0 0 0 2px rgba(14, 36, 77, 0.2);
    border: 1px solid var(--navy);
}
