/* ===== 1. RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-image: #F8FAFC; /* Light gray background */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    
    background-image: #F8FAFC; /* Light gray background */
    width: 100%;
    max-width: 1400px; /* Corresponds to Tailwind's max-w-7xl with padding */
    margin: 0 auto;
    padding: 0 2rem; /* 32px padding */
}

.btn {
    padding: 0.75rem 1.5rem; /* 12px 24px */
    border: none;
    border-radius: 9999px; /* rounded-full */
    font-weight: 700;
    font-size: 1.125rem; /* 18px */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:hover {
    transform: scale(1.05);
}

.btn-orange {
    background-color: #F56513;
    color: white;
}
.btn-orange:hover {
    background-color: #E45C0F;
}

.btn-blue {
    background-color: #4A4EFC;
    color: white;
    font-size: 1rem; /* 16px */
    padding: 0.5rem 1.25rem; /* 8px 20px */
    border-radius: 0.5rem; /* 8px */
}
.btn-blue:hover {
    background-color: #3B3EEA;
}

/* ===== 2. HEADER & HERO SECTION ===== */
.header-blue {
    background-color: #0E172B;
    color: white;
    padding-top: 1.5rem;  /* 24px */
    padding-bottom: 3rem; /* 48px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between; /* Pushes logo and icons apart */
  align-items: center;         /* Vertically centers them */
  padding-top: 1rem;           /* Adds some space at the top */
  padding-bottom: 1rem;        /* Adds some space at the bottom */
}

.nav-icons {
    display: flex;
    /* This ensures the profile container aligns correctly */
    align-items: stretch; 
    gap: 1.5rem; /* 24px */
}

.nav-icon-btn {
    position: relative;
    background: none;
    border: none;
    color: #D1D5DB; /* gray-300 */
    font-size: 1.5rem; /* 24px */
    cursor: pointer;
    transition: color 0.2s ease;
}
.nav-icon-btn:hover {
    color: white;
}

.notification-dot {
    position: absolute;
    top: -0.25rem; /* -4px */
    right: -0.25rem; /* -4px */
    width: 0.75rem; /* 12px */
    height: 0.75rem; /* 12px */
    background-color: #EF4444; /* red-500 */
    border-radius: 50%;
    border: 2px solid #0E172B;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* 32px */
}

@media (min-width: 768px) { /* md breakpoint */
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.hero-text h2 {
    font-size: 3rem; /* 48px */
    font-weight: 800;
    line-height: 1.2;
}

.hero-text p {
    margin-top: 1rem; /* 16px */
    font-size: 1.125rem; /* 18px */
    color: #D1D5DB; /* gray-300 */
}

.hero-text .btn-orange {
    margin-top: 2rem; /* 32px */
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem; /* 16px */
    padding: 1.5rem; /* 24px */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.dashboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem; /* 18px */
    color: #D1D5DB; /* gray-300 */
}

.dashboard-value {
    font-size: 2.25rem; /* 36px */
    font-weight: 800;
    color: white;
}

.divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

.waste-alert-card {
    margin-top: 1rem; /* 16px */
    background-color: white;
    color: black;
    border-radius: 0.5rem; /* 8px */
    padding: 1rem; /* 16px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px */
}

.alert-icon {
    position: relative;
    font-size: 1.875rem; /* 30px */
    color: #EF4444; /* red-500 */
}

.alert-dot {
    position: absolute;
    top: -0.25rem;
    right: -0.5rem;
    width: 1rem; /* 16px */
    height: 1rem; /* 16px */
    background-color: #EF4444; /* red-500 */
    color: white;
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.alert-text h3 {
    font-weight: 700;
    color: #DC2626; /* red-600 */
}
.alert-text p {
    font-size: 0.875rem; /* 14px */
    color: #374151; /* gray-700 */
}

/* ===== 3. MAIN INVENTORY SECTION ===== */
main.container {
    flex-grow: 1;
    padding-top: 2rem; /* 32px */
    padding-bottom: 8rem; /* 128px - to leave space for footer */
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem; /* 24px */
}

.inventory-header h2 {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    color: #1F2937; /* gray-800 */
}

.mr-2 {
    margin-right: 0.5rem; /* 8px */
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    gap: 1.5rem; /* 24px */
}

/* Responsive grid columns */
@media (min-width: 640px) { /* sm breakpoint */
    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) { /* md breakpoint */
    .inventory-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1024px) { /* lg breakpoint */
    .inventory-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.product-card {
    background-color: white;
    border-radius: 1rem; /* 16px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB; /* gray-200 */
    overflow: hidden;
    transition: all 0.3s ease;
}
.product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-image-container {
    background-color: #F3F4F6; /* gray-100 */
    padding: 1rem;
}
.product-image-container img {
    width: 100%;
    height: 10rem; /* 160px */
    object-fit: contain;
    border-radius: 0.5rem; /* 8px */
}

.product-info {
    padding: 1rem; /* 16px */
}
.product-info h3 {
    font-weight: 700;
    font-size: 1.125rem; /* 18px */
    color: #1F2937; /* gray-800 */
}
.product-info .stock-text {
    color: #4B5563; /* gray-600 */
    font-size: 0.875rem; /* 14px */
    margin-top: 0.25rem; /* 4px */
}
.product-info .stock-text span {
    font-weight: 700;
    font-size: 1.125rem; /* 18px */
    color: #2563EB; /* blue-600 */
}

.product-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem; /* 16px */
    gap: 0.5rem; /* 8px */
}

.product-buttons .btn {
    width: 100%;
    padding: 0.5rem; /* 8px */
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    border-radius: 0.375rem; /* 6px */
}
.btn-card-add {
    background-color: #2563EB; /* blue-600 */
    color: white;
}
.btn-card-add:hover {
    background-color: #1D4ED8; /* blue-700 */
}
.btn-card-delete {
    background-color: #EF4444; /* red-500 */
    color: white;
}
.btn-card-delete:hover {
    background-color: #DC2626; /* red-600 */
}

.placeholder-card {
    border-style: dashed;
    border-width: 2px;
    border-color: #D1D5DB; /* gray-300 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9CA3AF; /* gray-400 */
    text-align: center;
    min-height: 318px; /* Same min-height as other cards */
    font-weight: 500;
}
.placeholder-card i {
    font-size: 2rem; /* 32px */
    margin-bottom: 0.75rem; /* 12px */
}

/* ===== 4. FOOTER / MIC BAR ===== */
.mic-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: #FADADD;
    padding: 1rem; /* 16px */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.mic-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#status-text {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #c08484;
    margin-bottom: 0.5rem; /* 8px */
}

.mic-button-inner {
    width: 5rem; /* 80px */
    height: 5rem; /* 80px */
    border-radius: 50%;
    background-color: #F0A0A0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.mic-button-inner:hover {
    transform: scale(1.1);
}

.mic-button-inner i {
    font-size: 2.25rem; /* 36px */
    color: white;
}

/* ===== 5. NEW: PROFILE DROPDOWN ===== */

/* This container holds the button and the dropdown */
.profile-menu-container {
    position: relative;
    display: flex; /* Helps align the button vertically */
    align-items: center;
}

.profile-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 100%; /* Position it right below the button's container */
    margin-top: 0.75rem; /* 12px spacing from icon */
    background-color: white;
    min-width: 220px; /* Set a min-width */
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    overflow: hidden; /* Ensures icons don't stick out of rounded corners */
}

/* This class will be toggled by JavaScript to show the menu */
.profile-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px gap between icon and text */
    padding: 0.75rem 1rem; /* 12px 16px */
    font-size: 1rem; /* 16px */
    color: #374151; /* gray-700 */
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* Prevents text wrapping */
}

.dropdown-item i {
    width: 20px; /* Gives icons a fixed width to align text */
    text-align: center;
    color: #6B7281; /* gray-500 */
}

.dropdown-item:hover {
    background-color: #F3F4F6; /* gray-100 */
}

/* ===================== */
/* NOTIFICATION DROPDOWN */
/* ===================== */

.notification-menu-container {
    position: relative;
}

.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: white;
    min-width: 240px;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 20;
    padding: 0.5rem 0;
}

.notification-dropdown.show {
    display: block;
}

.notif-title {
    font-weight: 700;
    padding: 0.75rem 1rem;
    color: #374151;
    border-bottom: 1px solid #E5E7EB;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
}

.notif-item i {
    color: #EF4444;
    font-size: 1.1rem;
}

.notif-item:hover {
    background: #F3F4F6;
}

/* ===================== */
/* 🔔 NOTIFICATION ANIMATION */
/* ===================== */

.notif-animate {
    animation: notifPulse 1.4s infinite ease-in-out;
}

@keyframes notifPulse {
    0% { transform: scale(1); color: #D1D5DB; }
    50% { transform: scale(1.2); color: #EF4444; }
    100% { transform: scale(1); color: #D1D5DB; }
}

/* HERE IS THE FIX:
  Changed ".logo" to ".logo-img" to match your HTML
*/
.logo-img {
  height: 70px; /* You can change this (e.g., 60px, 80px) */
  width: auto;
}