/* Header Topbar Styles */
.header-topbar {
    background: transparent; /* Transparent to inherit parent gradient */
    max-height: 40px;
    min-height: 40px;
    position: relative;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 15px;
    margin: 0;
}

.topbar-left {
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.topbar-widget {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Social Icons Widget */
.social-icons-widget {
    height: 100%;
    display: flex;
    align-items: center;
}

.social-icons-list {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.social-icon-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1); /* Yellowish background */
    color: #FFD700; /* Gold text */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 12px;
}

.social-icon-link:hover {
    background: var(--social-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.social-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.social-icon-link:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -25px;
}

/* Date Greeter Widget */
.date-greeter-widget {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFD700; /* Yellowish text */
    font-size: 12px;
    line-height: 1.2;
}

.greeting-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.greeting-text {
    font-weight: 600;
    color: #FFF8DC; /* Lighter yellowish */
}

.date-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #FFD700;
}

.day-name {
    font-weight: 500;
}

.date-separator {
    opacity: 0.6;
}

.full-date {
    opacity: 0.9;
}

.time-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #FFF8DC;
    font-size: 13px;
    min-width: 60px;
    text-align: center;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Who's Logged In Widget */
.whos-logged-in-widget {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Logged In User Styles */
.logged-in-user {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    position: relative;
}

.user-avatar {
    position: relative;
    width: 26px;
    height: 26px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFD700;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 12px;
    border: 2px solid #FFD700;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #00FF00;
    border-radius: 50%;
    border: 1px solid #1a1a2e;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.welcome-text {
    font-size: 10px;
    color: #FFD700;
    opacity: 0.8;
}

.user-name {
    font-size: 12px;
    color: #FFF8DC;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown .dropdown-toggle {
    background: none;
    border: none;
    color: #FFD700;
    padding: 2px 4px;
    font-size: 10px;
    transition: color 0.3s ease;
}

.user-dropdown .dropdown-toggle:hover {
    color: #FFF8DC;
}

.user-dropdown .dropdown-menu {
    background: #1a1a2e;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    margin-top: 5px;
}

.user-dropdown .dropdown-header {
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 8px 12px;
}

.user-details strong {
    color: #FFF8DC;
    font-size: 14px;
}

.user-details small {
    color: #FFD700;
    opacity: 0.8;
}

.user-dropdown .dropdown-item {
    color: #FFD700;
    padding: 8px 12px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFF8DC;
}

.user-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
}

.user-dropdown .dropdown-item.text-danger {
    color: #ff6b6b !important;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252 !important;
}

/* Guest User Styles */
.guest-user {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.guest-message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.guest-message .greeting-text {
    font-size: 12px;
    color: #FFF8DC;
    font-weight: 600;
}

.login-prompt {
    font-size: 10px;
    color: #FFD700;
    opacity: 0.8;
}

.auth-buttons {
    display: flex;
    gap: 6px;
}

.btn-login,
.btn-register {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-login {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.3);
}

.btn-login:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #FFF8DC;
    transform: translateY(-1px);
}

.btn-register {
    background: rgba(255, 215, 0, 0.2);
    color: #FFF8DC;
    border-color: rgba(255, 215, 0, 0.4);
}

.btn-register:hover {
    background: rgba(255, 215, 0, 0.3);
    color: white;
    transform: translateY(-1px);
}

.btn-login i,
.btn-register i {
    font-size: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .topbar-right {
        gap: 12px;
    }

    .social-icons-list {
        gap: 6px;
    }

    .social-icon-link {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .date-greeter-widget {
        gap: 8px;
        font-size: 11px;
    }

    .greeting-content {
        display: none; /* Hide greeting text on mobile */
    }

    .time-display {
        font-size: 11px;
        min-width: 50px;
    }

    .user-name {
        max-width: 80px;
    }

    .guest-message .greeting-text {
        font-size: 11px;
    }

    .auth-buttons {
        gap: 4px;
    }

    .btn-login span,
    .btn-register span {
        display: none; /* Show only icons on mobile */
    }
}

@media (max-width: 480px) {
    .topbar-right {
        gap: 8px;
    }

    .date-info {
        display: none; /* Hide date info on very small screens */
    }

    .social-icons-list {
        gap: 4px;
    }

    .social-icon-link {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}
