/* Cụm chứa Đăng nhập góc trên bên phải */
.google-auth-wrapper {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 999;
    font-family: Arial, sans-serif;
}

/* Nút Avatar tròn (Hiệu ứng kính mờ xuyên thấu Basemap) */
.auth-avatar-trigger {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 5px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #28a745;
    outline: none;
    transition: all 0.2s ease;
}

.auth-avatar-trigger:hover {
    background: rgba(255, 255, 255, 0.9);
}

.header-avatar-circle {
    width: 28px;
    height: 28px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Dropdown Card hiển thị khi bấm Avatar */
.auth-dropdown-card {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 16px;
    box-sizing: border-box;
}

/* Form đăng nhập bên trong Dropdown */
.auth-form-title {
    font-weight: bold;
    margin-bottom: 12px;
    color: #28a745;
    text-align: center;
    font-size: 15px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form-input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.auth-btn-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 9px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
}

.auth-btn-submit:hover {
    background: #218838;
}

/* Thông tin người dùng khi đã đăng nhập */
.auth-user-card {
    text-align: center;
}

.card-avatar-circle {
    width: 50px;
    height: 50px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
}

.auth-user-name {
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

.auth-user-role {
    color: #6c757d;
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.auth-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 12px 0;
}

.btn-logout {
    width: 100%;
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
}

.btn-logout:hover {
    background: #c82333;
}

.hidden {
    display: none !important;
}