.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-image: linear-gradient(45deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: none;
    background-size: 150% 150%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
/* NEW: Google Button specific styles */
.btn .fa-google {
    margin-right: 8px; /* لتحريك الأيقونة قليلاً إلى اليمين قبل النص */
}

#googleSignInBtn:hover {
    background-color: #C1352A !important; /* لون أغمق عند التحويم */
}
/* END NEW */

.btn-secondary:hover {
    background-color: rgba(18, 140, 126, 0.1);
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.logo {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.app-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 10px;
    overflow: hidden;
    left: 0;
    top: 100%;
}

.dropdown-content.active {
    display: block;
}

.dropdown-content a {
    color: var(--black);
    padding: 12px 16px;
    text-decoration: none;
    display: flex; /* Changed to flex for alignment */
    justify-content: space-between; /* To space out text and badge */
    align-items: center; /* Vertical alignment */
    text-align: right;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.dropdown-item-badge {
    background-color: var(--notification-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-right: auto; /* Push badge to the left */
    margin-left: 8px;
}
.dropdown-item-badge.active {
    display: flex;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
}

.info-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.info-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.info-card-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--notification-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2px;
    line-height: 1;
}

.notification-badge.active {
    display: flex;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--white);
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow);
    position: relative;
}

.user-item:hover {
    background-color: #f5f5f5;
}

.user-avatar-container {
    position: relative;
    margin-left: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
    background-size: cover;
    background-position: center;
}

.user-notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background-color: var(--notification-color);
    border-radius: 50%;
    border: 2px solid white;
    display: none;
}

.user-notification-badge.active {
    display: block;
}

.user-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info-main {
    flex: 1;
}

.user-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.user-status {
    font-size: 0.8rem;
    color: var(--gray);
}

.online-status {
    color: var(--accent-color);
    font-weight: 500;
}

.offline-status {
    color: var(--gray);
}

.fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 50;
}

/* --- START: Notification Styles --- */
.notifications-container {
    padding: 15px;
}

.notification-item {
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f5f5f5;
}

.notification-item.unread {
    background-color: var(--light-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--gray);
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    margin-left: 10px;
    flex-shrink: 0;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[dir="ltr"] .notification-icon,
[dir="ltr"] .notification-avatar {
    margin-left: 0;
    margin-right: 10px;
}

/* --- START: Image Modal (Lightbox) Styles --- */
.image-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Must be on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-modal-overlay.active {
    display: flex; /* Show the modal */
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Add cursor pointer to images that can be opened */
.post-media img, .profile-page-avatar {
    cursor: pointer;
}
/* --- END: Image Modal (Lightbox) Styles --- */

/* --- END: Notification Styles --- */