﻿.navbar { box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.footer, .navbar { background-image: linear-gradient(to right, blue, green); }
.navbar { padding: 4px 8px; }
.navbar-nav li a { color: #fff; font-size: 16px; font-weight: bold; }
.navbar-nav li a:hover { color: #FFF; }
.navbar-brand { color: #fff; font-size: 18px; font-weight: bold; }
.navbar .dropdown-menu { background-color: #3498db; }
.navbar .dropdown-item { color: #fff !important; }
.navbar .dropdown-item:hover { background-color: #ff9900; }
.navbar .nav-link:hover { color: #ff4081 !important; }
/* Active state for current report */
.navbar .dropdown-item.active { background: linear-gradient(135deg, #2ecc71, #27ae60); color: white; }

.dropdown-menu { border: 0; box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); border-radius: 0.375rem; }
.dropdown-submenu > a.dropdown-toggle::after { display: none; }
.dropdown-submenu > a.dropdown-toggle { cursor: pointer; -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1); }
@media (min-width: 992px) {
    .dropdown-submenu { position: relative; }
    .dropdown-submenu > .dropdown-menu { position: absolute; top: 0; left: 100%; margin-top: -8px; margin-left: 0; display: none; min-width: 220px; animation: fadeIn 0.15s ease-in-out; }
    .dropdown-submenu:hover > .dropdown-menu { display: block; }
    .dropdown-submenu > a.dropdown-toggle::before { content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; float: right; margin-left: 8px; font-size: 0.8rem; opacity: 0.6; }
    .dropdown-submenu.dropdown-left > .dropdown-menu { left: auto; right: 100%; margin-left: 0; margin-right: 2px; border-radius: 0.375rem 0 0.375rem 0.375rem; }
    .dropdown-submenu.dropdown-left > a.dropdown-toggle::before { content: "\f104"; float: left; margin-left: 0; margin-right: 8px; }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
@media (max-width: 991.98px) {
    .navbar-collapse { max-height: calc(100vh - 56px); overflow-y: auto; padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .navbar-nav .dropdown-menu { position: static !important; transform: none !important; float: none; width: 100%; margin: 0; padding: 0; background: transparent; box-shadow: none; border: none; }
    .dropdown-submenu > .dropdown-menu { display: none; padding-left: 1rem; background: rgba(255, 255, 255, 0.05); }
    .dropdown-submenu.show > .dropdown-menu { display: block !important; }
    .dropdown-item { padding: 0.75rem 1.25rem; color: rgba(255, 255, 255, 0.8); border-radius: 0; }
    .dropdown-item:hover,
    .dropdown-item:focus { color: #fff; background: rgba(255, 255, 255, 0.1); }
    .dropdown-divider { border-top-color: rgba(255, 255, 255, 0.1); margin: 0 1.25rem; }
    .dropdown-submenu > a.dropdown-toggle::before { content: "\f107"; font-family: "Font Awesome 5 Free"; font-weight: 900; float: right; font-size: 0.8rem; transition: transform 0.2s ease; opacity: 0.7; }
    .dropdown-submenu.show > a.dropdown-toggle::before { transform: rotate(180deg); }
    .nav-item.dropdown > .nav-link.dropdown-toggle::after { float: right; margin-top: 0.5rem; }
    .dropdown-submenu > a.dropdown-toggle:active { background: rgba(255, 255, 255, 0.15); }
}

/* Search Toggle Button - Stays in navbar */
.search-toggle-btn { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); color: white; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.search-toggle-btn:hover { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5); transform: scale(1.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }

/* Search Overlay - Appears above everything */
.search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: none; justify-content: center; align-items: flex-start; z-index: 9999; padding-top: 100px; }
.search-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

/* Search Container in Overlay */
.search-container-overlay { background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 20px; padding: 25px; width: 90%; max-width: 700px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.3); animation: slideDown 0.3s ease; position: relative; }

/* Search Category Dropdown */
.search-category-dropdown { border: 2px solid #e9ecef !important; border-radius: 12px !important; padding: 12px 15px !important; font-size: 14px !important; background: white !important; transition: all 0.3s ease !important; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important; min-width: 160px; margin-right: 10px; }
.search-category-dropdown:focus { border-color: #007bff !important; box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2) !important; }

/* Search Input in Overlay */
.search-input-overlay { border: 2px solid #e9ecef !important; border-radius: 12px !important; padding: 12px 20px !important; font-size: 16px !important; background: white !important; transition: all 0.3s ease !important; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important; flex: 1; }
.search-input-overlay:focus { border-color: #007bff !important; box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2) !important; }

/* Search Buttons in Overlay */
.search-submit-btn-overlay { background: linear-gradient(135deg, #007bff, #0056b3) !important; border: none !important; border-radius: 12px !important; padding: 12px 25px !important; color: white !important; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); white-space: nowrap; }
.search-submit-btn-overlay:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4); }
.search-close-btn-overlay { position: absolute; top: 15px; right: 15px; background: rgba(0, 0, 0, 0.1) !important; border: none !important; border-radius: 50% !important; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #6c757d !important; transition: all 0.3s ease; }
.search-close-btn-overlay:hover { background: rgba(0, 0, 0, 0.2) !important; transform: rotate(90deg); }

/* Input Group in Overlay */
.search-input-group-overlay { display: flex; gap: 10px; align-items: stretch; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); border-radius: 15px; padding: 5px; background: white; }

/* Category-specific badge colors */
.category-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-left: 10px; }

.badge-sales { background: linear-gradient(135deg, #28a745, #20c997); color: white; }
.badge-purchases { background: linear-gradient(135deg, #ff6b6b, #ff8787); color: white; }
.badge-inventory { background: linear-gradient(135deg, #17a2b8, #6f42c1); color: white; }
.badge-expenses { background: linear-gradient(135deg, #fd7e14, #e8590c); color: white; }
.badge-customers { background: linear-gradient(135deg, #6f42c1, #e83e8c); color: white; }
.badge-products { background: linear-gradient(135deg, #20c997, #28a745); color: white; }

/* Search Suggestions */
.search-suggestions { background: white; border-radius: 15px; margin-top: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); max-height: 300px; overflow-y: auto; display: none; border: 1px solid #e9ecef; }
.search-suggestions.active { display: block; }
.suggestion-item { padding: 12px 20px; border-bottom: 1px solid #f8f9fa; cursor: pointer; transition: all 0.2s ease; display: flex; justify-content: between; align-items: center; }
.suggestion-item:hover { background: #f8f9fa; transform: translateX(5px); }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-text { flex: 1; }

/* Recent Searches */
.recent-searches { margin-top: 20px; padding-top: 15px; border-top: 1px solid #e9ecef; }
.recent-search-tag { background: #e9ecef; border-radius: 15px; padding: 5px 12px; margin: 5px; font-size: 12px; cursor: pointer; display: inline-block; transition: all 0.2s ease; }
.recent-search-tag:hover { background: #007bff; color: white; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-input-group-overlay { flex-direction: column; }

    .search-category-dropdown { margin-right: 0; margin-bottom: 10px; min-width: 100%; }
}

/* Navigation Icon Buttons */
.nav-icon-btn { background: rgba(255, 255, 255, 0.15) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; color: white !important; border-radius: 50% !important; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-left: 8px; transition: all 0.3s ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none !important; }
.nav-icon-btn:hover { background: rgba(255, 255, 255, 0.25) !important; border-color: rgba(255, 255, 255, 0.4) !important; transform: scale(1.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); color: white !important; text-decoration: none !important; }
.nav-icon-btn:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) !important; color: white !important; }

/* Active state for current page */
.nav-icon-btn.active { background: rgba(255, 255, 255, 0.3) !important; border-color: rgba(255, 255, 255, 0.6) !important; }

/* Icon sizes */
.nav-icon-btn i { font-size: 16px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-icon-btn { width: 36px; height: 36px; margin-left: 5px; }
    .nav-icon-btn i { font-size: 14px; }
}

.status-online { background-color: #28a745; }
.status-offline { background-color: #6c757d; }
.status-warning { background-color: #ffc107; }
.status-danger { background-color: #dc3545; }