/* Modern Glass 3D Design with Glowing Effects */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #000000);
    margin: 0;
    padding: 0;
    color: #ffffff;
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: linear-gradient(135deg, #f0f2f5, #e0e5ec);
    color: #000000;
}

/* Transparent Glass Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #007bff;
}

.theme-toggle,
.logout-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle:hover,
.logout-button:hover {
    color: #007bff;
}

.light-mode .navbar a,
.light-mode .theme-toggle,
.light-mode .logout-button {
    color: #000000;
}

.light-mode .navbar a:hover,
.light-mode .theme-toggle:hover,
.light-mode .logout-button:hover {
    color: #007bff;
}

/* Main Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 100px auto 20px;
    padding: 20px;
    background: rgba(18, 18, 18, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.light-mode .container {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Logo and Title */
.logo-title {
    text-align: center;
    margin-bottom: 40px;
}

.logo-title img {
    width: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.logo-title h1 {
    font-size: 36px;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.light-mode .logo-title h1 {
    color: #000000;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.8);
}

/* Rounded Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border: 1px solid #444;
    border-radius: 25px;
    background: #1e1e1e;
    color: #ffffff;
    transition: background 0.3s ease, color 0.3s ease;
}

.tab-button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.light-mode .tab-button {
    background: #f9f9f9;
    color: #000000;
    border-color: #ccc;
}

.light-mode .tab-button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Centered Search Container */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.search-container input[type="text"] {
    width: 60%;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 25px;
    background: rgba(30, 30, 30, 0.8);
    color: #ffffff;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, width 0.3s ease;
}

.search-container input[type="text"]:focus {
    transform: scale(1.02);
    width: 70%;
}

.light-mode .search-container input[type="text"] {
    background: rgba(255, 255, 255, 0.8);
    color: #000000;
    border-color: #ccc;
}

.search-container button {
    padding: 15px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-left: 10px;
}

.search-container button.visible {
    opacity: 1;
}

.search-container button:hover {
    background: #0056b3;
}

/* Results */
.results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 20px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px;
    display: none;
}

.light-mode .results {
    background: rgba(255, 255, 255, 0.8);
    border-color: #ccc;
}

.result-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 20px;
    background: #1e1e1e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.light-mode .result-item {
    background: #f9f9f9;
    border-color: #ccc;
}

.result-item:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.result-item img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 20px;
}

.result-item .details {
    flex: 1;
}

.result-item h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 20px;
}

.light-mode .result-item h3 {
    color: #000000;
}

.result-item .id {
    font-size: 14px;
    color: #b3b3b3;
    margin-bottom: 5px;
}

.light-mode .result-item .id {
    color: #666;
}

.result-item p {
    margin: 0;
    color: #b3b3b3;
    font-size: 14px;
}

.light-mode .result-item p {
    color: #666;
}

/* Trending Now Section */
.trending-section {
    margin-top: 40px;
    text-align: center;
}

.trending-section h2 {
    font-size: 24px;
    color: #ff6b6b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-section h2 i {
    margin-right: 10px;
    color: #ff6b6b;
    animation: flame 1.5s infinite alternate;
}

@keyframes flame {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

.trending-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.trending-item {
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 25px;
    overflow: hidden;
}

.trending-item:hover {
    transform: scale(1.1);
}

.trending-item img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 25px;
}

.trending-item h3 {
    margin: 10px 0 0;
    color: #007bff;
    font-size: 16px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright {
    font-size: 14px;
    color: #b3b3b3;
}

.light-mode .footer {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .footer .copyright {
    color: #666;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.success {
    background: #28a745; /* Green for success */
    color: #fff;
}

.notification.error {
    background: #dc3545; /* Red for error */
    color: #fff;
}

.notification.warning {
    background-color: #ffcc00; /* ???? ??? */
    color: #333;
}

.notification.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #007bff;
}

.theme-toggle,
.logout-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle:hover,
.logout-button:hover {
    color: #007bff;
}

.light-mode .navbar a,
.light-mode .theme-toggle,
.light-mode .logout-button {
    color: #000000;
}

.light-mode .navbar a:hover,
.light-mode .theme-toggle:hover,
.light-mode .logout-button:hover {
    color: #007bff;
}

/* Search Button Visibility */
#search-button {
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
}

#search-button.visible {
    opacity: 1; /* Visible when the class is added */
}

/* Bulk Import Button */
#bulk-import-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

#bulk-import-button:hover {
    background: #0056b3;
}