/**
 * Refactored Top Bar Styles for Shortcode-based Standalone components.
 */

/* Standalone Icon Wrappers */
.jobs-standalone-icon-wrap {
    display: inline-flex;
    align-items: center;
}

.top-bar-icon-item {
    cursor: pointer;
    color: var(--jobs-primary-color);
    position: relative;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.top-bar-icon-item:hover {
    background: rgba(29, 52, 105, 0.05);
}

.top-bar-icon-item .dashicons {
    font-size: 22px;
}

.notif-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f56565;
    color: white;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    border: 2px solid white;
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(29, 52, 105, 0.1);
}

.top-bar-user-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdowns positioning relative to standalone items */
.jobs-profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin-top: 15px;
    padding: 10px 0;
    z-index: 10000; /* Increased to stay above external headers */
}

.jobs-notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-radius: 24px;
    margin-top: 20px;
    z-index: 10000;
    max-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(29, 52, 105, 0.08);
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jobs-profile-dropdown.active,
.jobs-notif-dropdown.active {
    display: block;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.jobs-notif-dropdown .dropdown-header {
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.1em;
    color: #1d3469;
}

@media (max-width: 768px) {
    .jobs-notif-dropdown {
        width: 300px;
        right: -60px;
    }
}

.notif-list {
    padding: 0;
}

.notif-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9em;
    color: #475569;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    position: relative;
}

.notif-item:hover {
    background: #fdfdfd;
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.03);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}

.jobs-profile-dropdown .dropdown-header {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
}

.jobs-profile-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jobs-profile-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.2s;
}

.jobs-profile-dropdown li a .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #888;
}

.jobs-profile-dropdown li a:hover {
    background: #f8f9fa;
}

.jobs-profile-dropdown .divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

/* Remove old global header classes as they are no longer used by the plugin */
.jobs-header-system,
.jobs-header-transparent,
.jobs-header-minimal,
.top-bar-content {
    display: none !important;
}
