/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #333;
}

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f9f9f9;  /* Dark grey-blue */
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar .logo img {
	 background-color: #f1f1f1;
    height: 44px;
    width: auto;
    filter: brightness(1.1); /* Makes dark logos pop on dark background */
}

.navbar .logo span {
    font-size: 24px;
    font-weight: 600;
    color: black;
}

/* Nav links */
.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar ul li a:hover {
    color: black;
}

/* Hover Border Animations */
.navbar ul li a::before,
.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #5ec8f2;
    transition: all 0.4s ease;
}

.navbar ul li a::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.navbar ul li a::after {
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
}

.navbar ul li a:hover::before,
.navbar ul li a:hover::after {
    width: 100%;
} 

/* Dropdown Menu */
.navbar ul li.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background-color: white;
    border-radius: 6px;
    min-width: 180px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.dropdown-menu li {
    border-bottom: 1px solid #3b414d;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    color: #d3d3d3;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    
    color: #5ec8f2;
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px;
    transition: 0.3s;
}

/* chat.css */

/* Floating Chat Icon */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #222;
    color: #fff;
    border-radius: 50%;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Chat Popup Box */
.chat-box {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #1e1e1e;
    color: white;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 9999;
}

.chat-box input,
.chat-box textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

.chat-box button {
    width: 100%;
    background-color: #00ff99;
    color: #000;
    border: none;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.chat-header {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Popups (Success/Error) */
.success-popup, .popup {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: top 0.5s ease-in-out;
    z-index: 9999;
    display: none;
}

.success-popup.show, .popup.show {
    top: 20px;
    display: block;
}

.success-popup {
    background-color: #28a745;
    color: white;
}

.error-popup {
    background-color: #dc3545;
    color: white;
}


/* Responsive Layout */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 14px 20px;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
        display: none;
        background-color: white;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }
}
