* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1f1f2b;
    --secondary-color: #7659ff;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.navbar {
    background-color: #14141c;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    height: 70px;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 80px;
    height: 30px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

.search-bar {
    position: relative;
    margin-right: 1rem;
}

.search-bar input {
    background-color: #2a2a36;
    border: none;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 20px;
    color: var(--text-color);
    width: 250px;
}

.search-bar i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.join-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.join-btn:hover {
    opacity: 0.9;
}

.icon-btn {
    color: var(--text-secondary);
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: var(--text-color);
}

/* Mobile Menu Button */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero-section {
    margin-top: 80px;
    padding: 2rem;
    text-align: center;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* Mobile-specific navigation styling */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #14141c;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav a {
    display: block;
    padding: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid #2a2a36;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
    background-color: #2a2a36;
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .search-bar input {
        width: 200px;
    }
}



/* Dropdown styling */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #14141c;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1001;
    margin-top: 10px;
}

.dropdown-content.active {
    display: block;
}

.user-profile-header {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #2a2a36;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    background-color: #2a2a36;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid #2a2a36;
}

.info-item {
    margin-bottom: 10px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-color);
}

.dropdown-actions {
    padding: 1rem;
}

.dropdown-actions button {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #2a2a36;
    border: none;
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-actions button:hover {
    background-color: var(--secondary-color);
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.upload-options {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.url-upload,
.file-upload {
    flex: 1;
    margin: 0 10px;
}

#imagePreview {
    margin-top: 20px;
    text-align: center;
}

#imagePreview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
}

.image-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

/* Notification styles */
.notification-dropdown {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 16px;
    text-align: center;
}

#notificationDropdown {
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-content {
    flex: 1;
}

.notification-message {
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: #666;
}

.notification-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.notification-action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 12px;
}

.notification-action-btn:hover {
    background: #e0e0e0;
}

.empty-notifications,
.loading-notifications {
    padding: 20px;
    text-align: center;
    color: #666;
}

.notification-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
}

#search-results {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    width: 200px;
    position: absolute;
    background-color: #fff;
    z-index: 1000;
    display: none;  /* Initially hidden */
}

#search-results li {
    padding: 5px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

#search-results li:hover {
    background-color: #f0f0f0;
}
