﻿.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; }
.dropdown-menu { background-color: #3498db; }
.dropdown-item { color: #fff !important; }
.dropdown-item:hover { background-color: #ff9900; }
.nav-link:hover { color: #ff4081 !important; }

/* Reports Dropdown Styles */
.nav-dropdown { margin-left: 8px; }

.nav-dropdown-btn { background: rgba(255, 255, 255, 0.15) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; color: white !important; border-radius: 25px !important; padding: 8px 16px !important; transition: all 0.3s ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 500; }

.nav-dropdown-btn:hover, .nav-dropdown-btn:focus { background: rgba(255, 255, 255, 0.25) !important; border-color: rgba(255, 255, 255, 0.4) !important; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); color: white !important; }

.nav-dropdown-btn:after { color: rgba(255, 255, 255, 0.8); }

.dropdown-divider { margin: 8px 0; border-color: rgba(0, 0, 0, 0.1); }

/* Special dropdown items */
.dropdown-item-success { color: #27ae60 !important; font-weight: 600; }

.dropdown-item-success:hover { background: linear-gradient(135deg, #27ae60, #219653) !important; color: white !important; }

.dropdown-item-primary { color: #3498db !important; font-weight: 600; }

.dropdown-item-primary:hover { background: linear-gradient(135deg, #3498db, #2980b9) !important; color: white !important; }

/* Active state for current report */
.dropdown-item.active { background: linear-gradient(135deg, #2ecc71, #27ae60); color: white; }

/* Animation for dropdown */
.dropdown-menu { animation: dropdownFadeIn 0.3s ease; }

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-dropdown-btn span { display: none; }

    .nav-dropdown-btn { padding: 8px 12px !important; border-radius: 50% !important; width: 40px; height: 40px; }

    .dropdown-menu { min-width: 250px; transform: translateX(-50px) !important; }
}

@media (max-width: 576px) {
    .dropdown-menu { min-width: 220px; transform: translateX(-80px) !important; }
}

@media (max-width: 768px) {
    .navbar-nav li { padding: 10px 0; }
}

.navbar-nav .nav-item i { font-size: 20px; margin-right: 5px; }
.navbar-nav li a { transition: color 0.3s ease-in-out; }

@keyframes slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.navbar-nav li { animation: slide-in 0.5s ease-out; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.9) !important; }


/* 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; }
}



/* Compact List Group */
.compact-list-group { border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border: 1px solid #e9ecef; }

.compact-list-group .list-group-item { padding: 8px 12px; border: none; border-bottom: 1px solid #f8f9fa; font-size: 0.875rem; transition: all 0.2s ease; background-color: transparent; }

.compact-list-group .list-group-item:last-child { border-bottom: none; }

.compact-list-group .list-group-item:hover { background-color: #f8f9fa; transform: translateX(2px); }

.compact-list-group .list-group-item.active { background: linear-gradient(135deg, #007bff, #0056b3); border-color: #007bff; font-weight: 600; }

.compact-list-group .list-group-item:focus { outline: none; box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); }

/* With Icons */
.compact-list-group.with-icons .list-group-item { padding: 6px 12px; display: flex; align-items: center; }

.compact-list-group.with-icons .list-group-item i { width: 16px; margin-right: 8px; font-size: 0.75rem; opacity: 0.7; }

.compact-list-group.with-icons .list-group-item.active i { opacity: 1; color: white; }

/* Extra Compact Version */
.compact-list-group.extra-compact .list-group-item { padding: 4px 10px; font-size: 0.8rem; }

/* Bordered Version */
.compact-list-group.bordered .list-group-item { border: 1px solid #e9ecef; margin-bottom: 2px; border-radius: 4px; }

.compact-list-group.bordered .list-group-item:last-child { margin-bottom: 0; }

/* Sticky Header */
.compact-list-group .list-group-header { padding: 6px 12px; background: linear-gradient(135deg, #6c757d, #495057); color: white; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border: none; }

/* Badge Support */
.compact-list-group .list-group-item .badge { font-size: 0.7rem; padding: 2px 6px; margin-left: auto; }

/* Status Indicators */
.compact-list-group .status-indicator { width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; flex-shrink: 0; }

.status-online { background-color: #28a745; }
.status-offline { background-color: #6c757d; }
.status-warning { background-color: #ffc107; }
.status-danger { background-color: #dc3545; }

/* Hover Effects */
.compact-list-group.hover-lift .list-group-item:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }

/* Color Variants */
.compact-list-group.primary .list-group-item.active { background: linear-gradient(135deg, #007bff, #0056b3); }

.compact-list-group.success .list-group-item.active { background: linear-gradient(135deg, #28a745, #1e7e34); }

.compact-list-group.dark .list-group-item { background-color: #343a40; color: #f8f9fa; border-bottom-color: #495057; }

.compact-list-group.dark .list-group-item:hover { background-color: #495057; }

/* Scrollable Compact List */
.compact-list-group.scrollable { max-height: 300px; overflow-y: auto; }

.compact-list-group.scrollable::-webkit-scrollbar { width: 4px; }

.compact-list-group.scrollable::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }

.compact-list-group.scrollable::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 2px; }

.compact-list-group.scrollable::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }